Subject | Re: [firebird-support] Timestamp - trigger |
---|---|
Author | Ann W. Harrison |
Post date | 2006-02-05T22:50:47Z |
Dion wrote:
after the assignment
The second problem is that in Dialect 3, double
quotes indicate that the string is a delimited
identifier - the name of a table or field. Use
single quotes.
New.receivedate = cast('NOW' as timestamp);
Regards,
Ann
>The first problem is that you need a semicolon
> I get an “Unknow token – end” here.
>
>
> CREATE TRIGGER SMSQ_RecDateIns FOR SMSQ
> ACTIVE AFTER INSERT POSITION 0
> AS
> begin
> /* Trigger text */
>
> New.receivedate = cast("NOW" as timestamp)
>
> end
after the assignment
The second problem is that in Dialect 3, double
quotes indicate that the string is a delimited
identifier - the name of a table or field. Use
single quotes.
New.receivedate = cast('NOW' as timestamp);
Regards,
Ann