1
Fork 0

Support autoincrement columns

This commit is contained in:
Matei Adriel 2024-01-06 19:57:28 +01:00
parent a937424514
commit c997e3196c
No known key found for this signature in database
4 changed files with 19 additions and 6 deletions
tools/Language/SQL/SimpleSQL

View file

@ -332,7 +332,13 @@ todo: constraint characteristics
> "create table t (a int primary key);"
> $ CreateTable [Name Nothing "t"]
> [TableColumnDef $ ColumnDef (Name Nothing "a") (TypeName [Name Nothing "int"]) Nothing
> [ColConstraintDef Nothing ColPrimaryKeyConstraint]])
> [ColConstraintDef Nothing (ColPrimaryKeyConstraint False)]])
> ,(TestStatement ansi2011
> "create table t (a int primary key autoincrement);"
> $ CreateTable [Name Nothing "t"]
> [TableColumnDef $ ColumnDef (Name Nothing "a") (TypeName [Name Nothing "int"]) Nothing
> [ColConstraintDef Nothing (ColPrimaryKeyConstraint True)]])
references t(a,b)
[ Full |partial| simepl]