mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-03 11:40:39 -06:00
Fix constraints handling in ddl2cpp (#437)
Constraints got interpreted as (unknown) data types. This change should fix this most cases (simple test case added).
This commit is contained in:
@@ -259,7 +259,7 @@ ddlCreateTable = pp.Group(
|
||||
+ pp.Suppress(pp.Optional(ddlIfNotExists))
|
||||
+ ddlName.setResultsName("tableName")
|
||||
+ ddlLeft
|
||||
+ pp.Group(pp.delimitedList(ddlColumn | pp.Suppress(ddlConstraint))).setResultsName(
|
||||
+ pp.Group(pp.delimitedList(pp.Suppress(ddlConstraint) | ddlColumn)).setResultsName(
|
||||
"columns"
|
||||
)
|
||||
+ ddlRight
|
||||
|
||||
Reference in New Issue
Block a user