Re: Variadic polymorpic functions
От | Vincenzo Romano |
---|---|
Тема | Re: Variadic polymorpic functions |
Дата | |
Msg-id | 3eff28921001221048v79918843v3350f493e0d74fe5@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Variadic polymorpic functions (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Variadic polymorpic functions
|
Список | pgsql-general |
2010/1/22 Tom Lane <tgl@sss.pgh.pa.us>: > Vincenzo Romano <vincenzo.romano@notorand.it> writes: >>> I think "variadic any" is exactly it, but too lazy to go look. > >> I fear there's no way! > >> tmp1=# CREATE FUNCTION q( fmt text, variadic args any ) > > More like this: > > regression=# CREATE FUNCTION q( fmt text, variadic args "any" ) > regression-# RETURNS void > regression-# LANGUAGE plpgsql > regression-# AS $function$ > regression$# declare > regression$# begin > regression$# end; > regression$# $function$; > ERROR: PL/pgSQL functions cannot accept type "any" > > ANY without quotes is a reserved word ... > And this would allow for a stdarg-like argument list? -- Vincenzo Romano NotOrAnd Information Technologies NON QVIETIS MARIBVS NAVTA PERITVS
В списке pgsql-general по дате отправления: