a stored procedure ..with integer as the parameter

Поиск
Список
Период
Сортировка
От surabhi.ahuja
Тема a stored procedure ..with integer as the parameter
Дата
Msg-id 967CFC4343BF2A4DAFACD026D33DC85118EC7F@jal.iiitb.ac.in
обсуждение исходный текст
Ответы Re: a stored procedure ..with integer as the parameter  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-general
 i have a stored procedure
 
insert_table(integer)
 which does "insert into table (x) value ($1)";
 
now in my client i call the stored procedure as
 
select insert_table("3");
 
it works fine and inserts 3 into the table
 
but suppose i give
 
select insert_table("");
 
it gives an error ...saying "  invalid input syntax for integer: "
 
please suggest a solution to this problem
 
thanks,
reagrds
surabhi

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

Предыдущее
От: "Dean Gibson (DB Administrator)"
Дата:
Сообщение: Re: PSQL suggested enhancement
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: a stored procedure ..with integer as the parameter