Re: [SQL] How to get CURRENT_DATE in a pl/pgSQL function

2010-05-18 Thread Brian Modra
; What's wrong with Pavel's correct and to-the-point answer? No need actually to cast... just use current_date without the quotes. Its not a string. > > Tim > > > -- > Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) > To make changes to your subscription: &

Re: [SQL] Function Syntax Help

2009-10-30 Thread Brian Modra
calls.sql | psql holly > > ERROR: "$1" is declared CONSTANT > > CONTEXT: compilation of PL/pgSQL function "gen_simultaneous_calls" near > line 7 > > mystart and mystop are constants... you could declare variables and copy those into them, and the mo

Re: [SQL] Function Syntax Help

2009-10-30 Thread Brian Modra
tribution or use of the contents of this information > is prohibited. * > > * * > > *If you have received this electronic transmission in error, please notify > the sender immediately by a "reply to sender only" message and destroy all > electronic and hard copies of the communication, including attachments.* > -- Brian Modra Land line: +27 23 5411 462 Mobile: +27 79 69 77 082 5 Jan Louw Str, Prince Albert, 6930 Postal: P.O. Box 2, Prince Albert 6930 South Africa http://www.zwartberg.com/

Re: [SQL] Table Valued Parameters

2009-10-24 Thread Brian Modra
t;> >     INTO >> >> > users >> >> >    ( >> >> > aur_id >> >> >    , aur_username >> >> >    , aur_is_account_enabled >> >> >    , aur_created_by >> >> >    , au

Re: FW: [SQL] Table Valued Parameters

2009-10-23 Thread Brian Modra
>> > My motivation for doing this is to reduce network round trips, instead >> > of >> > having 1 call per record to be sent to the db, I can have 1 call passing >> > all >> > values which I wish to store in the database. >> > >> &g