Re: Some problems with (my?) PlSQL

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Some problems with (my?) PlSQL
Дата
Msg-id 20020604151623.Y6858-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Some problems with (my?) PlSQL  ("Rui Pacheco" <rep@devdomain.com>)
Список 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 по дате отправления:

Предыдущее
От: "Rui Pacheco"
Дата:
Сообщение: Some problems with (my?) PlSQL
Следующее
От: "Tom Haddon"
Дата:
Сообщение: alter column - NOT NULL