| От | Mario Alberto Soto Cordones |
|---|---|
| Тема | PROBLEM WITH FUNCTIONS |
| Дата | |
| Msg-id | 1848.192.168.1.100.1050961085.squirrel@www.compuall.cl обсуждение |
| Ответы |
Re: PROBLEM WITH FUNCTIONS
|
| Список | pgsql-sql |
Hi. i have a problem with a function. i create a type unidades CREATE TYPE unidades AS (codigo numeric(3,0), descripcion text); and i create a function get_unidades CREATE FUNCTION get_unidades(int4, int4, int4, int4) RETURNS typeof unidades AS ' SELECT cucoduni, cudesuni FROM cumauni WHERE cuempuni = $1 and cuseduni = $2 and cucaruni = $3 and cuasiuni= $4 ; ' LANGUAGE 'sql'; and at this moment´s it´s all ok BUT when execute this function select get_unidades(10,1,15,17) say "cannot display a value of type RECORD" any idea, PLEASE HELP MY saludos
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера