Re: Passing TEXT variable to a function

Поиск
Список
Период
Сортировка
Искать
От
Betsy Barker
Тема
Re: Passing TEXT variable to a function
Дата
Msg-id
20040824172859.62ccaf9c.betsy.barker@supportservicesinc.com
Ответ на
Список
Дерево обсуждения
Passing TEXT variable to a function Betsy Barker <betsy.barker@supportservicesinc.com>
Re: Passing TEXT variable to a function Tom Lane <tgl@sss.pgh.pa.us>
Re: Passing TEXT variable to a function Josh Berkus <josh@agliodbs.com>
Re: Passing TEXT variable to a function Tom Lane <tgl@sss.pgh.pa.us>
Re: Passing TEXT variable to a function Betsy Barker <betsy.barker@supportservicesinc.com>
quote_literal() worked. Thank you both!

On Tue, 24 Aug 2004 17:33:08 -0400
Tom Lane  wrote:

> Josh Berkus  writes:
> > Aha, syntax error, you forgot the nested quotes:
> 
> > FOR getpercentiles IN EXECUTE ''SELECT * FROM get_facility_percentiles('''''' 
> > || wagerateid_list || '''''')'' LOOP 
> 
> She really wants quote_literal(), instead, so that the function doesn't
> break if someone passes a value that contains quotes ...
> 
> 			regards, tom lane
> 


-- 
Betsy Barker
IT Manager
Support Services, Inc
(720)489-1630 X 38
В списке pgsql-novice по дате отправления
От: Josh Berkus
Дата:
Сообщение: Re: PGSQL and XML
От: William Yu
Дата:
Сообщение: Re: DISTINCT ordering
FAQ