Re: Some problems with (my?) PlSQL - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: Some problems with (my?) PlSQL
Date
Msg-id 20020604151623.Y6858-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Some problems with (my?) PlSQL  ("Rui Pacheco" <rep@devdomain.com>)
List pgsql-sql
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.



pgsql-sql by date:

Previous
From: "Rui Pacheco"
Date:
Subject: Some problems with (my?) PlSQL
Next
From: "Tom Haddon"
Date:
Subject: alter column - NOT NULL