[Fwd: plpgsql and booleans?]

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема [Fwd: plpgsql and booleans?]
Дата
Msg-id 400CCA84.1050602@familyhealth.com.au
обсуждение исходный текст
Ответы Re: [Fwd: plpgsql and booleans?]  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi guys,

When writing a PL/pgSQL trigger function how do you handle the case :

EXECUTE ''UPDATE test_table SET test_col '' || 
quote_literal(NEW.test_col2) || '';'';

where test_col and test_col2 are boolean fields?

The case above gives :
ERROR:  function quote_literal(boolean) does not exist

And without the quote_literal() gives :
ERROR:  operator does not exist: text || boolean

Is there supposed to be a quote_literal() for booleans?

Chris



В списке pgsql-hackers по дате отправления:

Предыдущее
От: David Garamond
Дата:
Сообщение: Re: What's planned for 7.5?
Следующее
От: Brian Moore
Дата:
Сообщение: Allow backend to output result sets in XML