Re: Function call

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: Function call
Дата
Msg-id 20090124153848.GA12460@tux
обсуждение исходный текст
Ответ на Re: Function call  ("Nico Callewaert" <callewaert.nico@telenet.be>)
Список pgsql-novice
Nico Callewaert <callewaert.nico@telenet.be> schrieb:
> Hello again,
>
> This is working ! Thanks...
> Is it better to use varchar as parameter, or just "text" ?  The colmuns
> I'm updating through this function are varchars.

It's puny.


> I'm still surprised about 1 thing : it seems PostgreSQL is not checking
> for existing tables or columns.
>
> Like this :         UPDATE tbl_table_last_change
>            SET last_user = current_user,
>
> Table tbl_table_last_change doesn't exist yet, but still postgreSQL is
> acception the function definition...

Right, the code is syntactically correct.


> So, I guess, there is no early checking on tables/fields ?

Right.



Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

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

Предыдущее
От: "Nico Callewaert"
Дата:
Сообщение: Re: Function call
Следующее
От: Rodrigo E. De León Plicet
Дата:
Сообщение: Re: SQL Question: Averages of intervals.