Support autoincrement columns
This commit is contained in:
parent
a937424514
commit
c997e3196c
4 changed files with 19 additions and 6 deletions
tools/Language/SQL/SimpleSQL
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue