Re: Function call

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Function call
Date: 2009-01-24 15:38:48
Message-ID: 20090124153848.GA12460@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Nico Callewaert <callewaert(dot)nico(at)telenet(dot)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°

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Rodrigo E. De León Plicet 2009-01-24 16:16:31 Re: SQL Question: Averages of intervals.
Previous Message Nico Callewaert 2009-01-24 14:29:31 Re: Function call