Wrong syntax with CREATE TRIGGER ... ON <table> used with POSITION [CORE5545] #5813
Submitted by: @asfernandes
I understand that "ON <table>" is complement part to BEFORE INSERT, so POSITION must be after both, not in the middle.
recreate table t (n integer);
-- don't work
The text was updated successfully, but these errors were encountered:
Commented by: @asfernandes
Clauses could be made to be anywhere, but definitelly it would be wrong to have POSITION in the middle of something.
My opinion is to fix the error in v4. People should test their applications when migrating major versions and DDL is more flexible to changes.
Commented by: @pavel-zotov
It seems that now one can NOT to use old syntax of [re]create trigger DDL.
This is what i see in the build of 24-may-2017:
C:\MIX\firebird\QA\fbt-repo\tmp>C:\MIX\firebird\FB40Cs\isql /:e40 -z -i c5545.sql
-- did NOT work before fix core-5545, must work now:
(and this is expected on THAT build)
But on current build (19-jun-2017) we have:
C:\MIX\firebird\QA\fbt-repo\tmp>C:\MIX\firebird\FB40\isql /:e40 -z -i c5545.sql
Statement failed, SQLSTATE = 42000