Re: failed to execute the psql case statement which has the function call.

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: failed to execute the psql case statement which has the function call.
Дата
Msg-id CAKFQuwYugnug1o+zbdLv27pJQWZs+pHOwwvW5W6KsTONJz7pNA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: failed to execute the psql case statement which has the function call.  (sagar jadhav <sagarjdhv5@gmail.com>)
Ответы Re: failed to execute the psql case statement which has the function call.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
On Tue, Apr 5, 2022 at 6:47 AM sagar jadhav <sagarjdhv5@gmail.com> wrote:
Use single quotes ('attribute') for variable in function.

That just produces the literal variable - it doesn't cause a substitution of the variable's value into the query.  And if the position of usage does need a column identifier it still will produce a syntax error.

But the error fragment shown suggests that the query shouldn't be expecting a column name (contrary to my earlier point), so we are back to having to see the entire function definition (or a reproducible example) to provide an answer.  Spelling typo comes to mind.

David J.

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

Предыдущее
От: sagar jadhav
Дата:
Сообщение: Re: failed to execute the psql case statement which has the function call.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: failed to execute the psql case statement which has the function call.