From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Rui Pacheco <rep@devdomain.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Some problems with (my?) PlSQL
Date: Tue, 4 Jun 2002 15:18:19 -0700 (PDT)
Message-ID: <20020604151623.Y6858-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <034601c20c13$755ce790$1601a8c0@devdomain.com>
On Tue, 4 Jun 2002, Rui Pacheco wrote:
> BEGIN
>
> UPDATE TS_USERS SET
> LOGIN = strLogin, EMAIL = strEmail, TITLE = strTitle, FIRST_NAME =
> strFirstName,
> LAST_NAME = strLastName, DATE_CREATION = TIMESTAMP (strDateCreation),
> DATE_LAST_ACCESS = TIMESTAMP (strDateLastAccess), ACC_LOCKED =
> strAccLocked,
> ACC_DISABLED = strAccDisabled, PASSWD_CHALLENGE = strPasswdChallenge,
> PASSWD_CHALLENGE_RESPONSE = strPasswdChallengeResponse
> WHERE ID = intId;
>
> RETURN 1;
> END;
> ' LANGUAGE 'plpgsql';
> -------
>
> While not reaching the limit of arguments, this function, when called, gives
> me this error:
>
> Query error [SELECT devUsersUpdate ('1', 'root', '', 'root@somehost.com',
> '', 'Super', 'User', '0001-01-01', '0001-01-01', 'N', 'N', '', '')]: ERROR:
> parser: parse error at or near "$6"
Wierd that it would say $6. You might be getting bitten by the changes to
timestamp. Maybe using "timestamp"(strDateCreation) and
"timestamp"(strDateLastAccess) would make it work.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, rep@devdomain.com
Subject: Re: Some problems with (my?) PlSQL
In-Reply-To: <20020604151623.Y6858-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox