Postgres mystery

Поиск
Список
Период
Сортировка
От Shaun Clements
Тема Postgres mystery
Дата
Msg-id 100F78F2B203444BB161BBA7077FF6131CD9A4@srldbexc003.relyant.co.za
обсуждение исходный текст
Ответы Re: Postgres mystery  (Klint Gore <kg@kgb.une.edu.au>)
Re: Postgres mystery  (Richard Huxton <dev@archonet.com>)
Re: Postgres mystery  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general

Can anyone tell me what the problem is here:
I am inserting into a table via a stored procedure, to a few columns within the table and postgres is throwing a
CANNOT EXECUTE NULL QUERY.

<code snip>
EXECUTE ''INSERT INTO table (column1, column2, column3, ''||quote_ident(column4)||'') values (''||quote_literal(RECORDNAME.column1)||'',''||quote_literal(RECORDNAME.column2)||'',''''stringvalue'''',''||quote_literal(RECORDNAME.column2)||'')'';

</code snip>

Is this a bug, as I am ensuring that the NOT NULL columns are supplied, as well as one other.

Kind Regards,
Shaun Clements

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

Предыдущее
От: "Sim Zacks"
Дата:
Сообщение: Re: How to return a record and sets of record in plpython
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Zombie processes