Hi, Is there an operator to test if a value is contained into an array? What I'm trying to do is create a function to check is a certain user belongs to a certain group. I want to check is the userid is contained in the pg_grouip.grolist array. How would I do that? Thanks in advance David Ouellet
Never mind, I found the answer. For those interested, look at contrib/array it adds a whole bunch of operators that iterates over an array. David Ouellet David Ouellet wrote: > Hi, > Is there an operator to test if a value is contained into an array? > > What I'm trying to do is create a function to check is a certain user > belongs to a certain group. > I want to check is the userid is contained in the pg_grouip.grolist > array. > > How would I do that? > > Thanks in advance > David Ouellet
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера