add generation clause support to create table
This commit is contained in:
parent
e495e240c0
commit
4f80ec96d4
4 changed files with 16 additions and 1 deletions
tools/Language/SQL/SimpleSQL
|
@ -356,6 +356,16 @@ generated always (valueexpr)
|
|||
<generation expression> ::=
|
||||
<left paren> <value expression> <right paren>
|
||||
|
||||
> ,(TestStatement SQL2011
|
||||
> "create table t (a int, \
|
||||
> \ a2 int generated always as (a * 2));"
|
||||
> $ CreateTable [Name "t"]
|
||||
> [ColumnDef (Name "a") (TypeName [Name "int"]) Nothing
|
||||
> ,ColumnDef (Name "a2") (TypeName [Name "int"])
|
||||
> (Just $ GenerationClause
|
||||
> (BinOp (Iden [Name "a"]) [Name "*"] (NumLit "2")))])
|
||||
|
||||
|
||||
|
||||
11.5 <default clause>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue