Re: Passing an argument to a trigger function using tg_argv

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Passing an argument to a trigger function using tg_argv
Дата
Msg-id CAKFQuwbkVKnvB56gw=s45k0FBs0NbWys56LFNRFtqXJzby=A6g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Passing an argument to a trigger function using tg_argv  (Simon Connah <simon.n.connah@protonmail.com>)
Ответы Re: Passing an argument to a trigger function using tg_argv  (Simon Connah <simon.n.connah@protonmail.com>)
Список pgsql-novice
On Wednesday, March 31, 2021, Simon Connah <simon.n.connah@protonmail.com> wrote:
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

error: invalid input syntax for type bigint: "blog_user_id"

You should read the “arguments” description under the create trigger syntax.   It explains why when you wrote the column name blog_user_id is tried to interpret that as a bigint (since that is the parameter type for the trigger function).

David J.

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

Предыдущее
От: Simon Connah
Дата:
Сообщение: Re: Passing an argument to a trigger function using tg_argv
Следующее
От: Simon Connah
Дата:
Сообщение: Re: Passing an argument to a trigger function using tg_argv