Firebird 4 Beta 1 rejects SQL 2003 compliant CREATE TRIGGER syntax
------------------------------------------------------------------

                 Key: CORE-6243
                 URL: http://tracker.firebirdsql.org/browse/CORE-6243
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 4.0 Beta 1
         Environment: Linux Mint 19.3 64-bit
Firebird binary installed from firebirdsql.org
            Reporter: Tony Whyman


In a simple test of the Firebird 4 engine, I dumped the example employee 
database (from a Firebird 3 source) and edited the first CREATE TRIGGER to:

CREATE TRIGGER SET_CUST_NO  
ACTIVE BEFORE INSERT POSITION 0
ON CUSTOMER
AS
BEGIN
    if (new.cust_no is null) then
    new.cust_no = gen_id(cust_no_gen, 1);
END ^

so that it was SQL 2003 compliant.

When feeding the SQL back in to create a new database using the Firebird 4 
isql, this caused the following error message:

Statement failed, SQLSTATE = 42000
Dynamic SQL Error
-SQL error code = -104
-Token unknown - line 2, column 22
-POSITION

I also fed exactly the same script back to a Firebird 3 Server/isql and the 
script completed with no errors.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to