New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing syntax for autogenerated keys [CORE894] #1291
Comments
Commented by: @cincuranet Why it should work? Firebird has for "autoinc" fields morepowerful instrument called generators. |
Commented by: Manoel (mp) Not so. autoinc in the docs is a trigger. This is MUCH MORE VERBOSE ... besides 'default' means default so if a value is provided the sequence won't be used. The semantics seems different. I agree triggers powerful but <literal> in the <create table> syntax chart should be made general. For example: an expression mixing sequences over some conditons. Perhaps the actual request is substituting <literal> for <expression> |
Modified by: @pcisarWorkflow: jira [ 11138 ] => Firebird [ 15289 ] |
Commented by: @dyemanov The IDENTITY feature has been implemented instead. |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Submitted by: Manoel (mp)
Is replaced by CORE1385
This syntax should work
create sequence s;
create table t (
i integer default next value for s not null,
constraint pk primary key(i)
);
The text was updated successfully, but these errors were encountered: