mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Added instructions to ignore OR REPLACE clause
This commit is contained in:
parent
92fa9d365d
commit
0c3c09dc2f
@ -256,8 +256,12 @@ ddlConstraint = pp.Group(
|
||||
ddlIfNotExists = pp.Group(
|
||||
pp.CaselessLiteral("IF") + pp.CaselessLiteral("NOT") + pp.CaselessLiteral("EXISTS")
|
||||
).setResultsName("ifNotExists")
|
||||
ddlOrReplace = pp.Group(
|
||||
pp.CaselessLiteral("OR") + pp.CaselessLiteral("REPLACE")
|
||||
).setResultsName("orReplace")
|
||||
ddlCreateTable = pp.Group(
|
||||
pp.CaselessLiteral("CREATE")
|
||||
+ pp.Suppress(pp.Optional(ddlOrReplace))
|
||||
+ pp.CaselessLiteral("TABLE")
|
||||
+ pp.Suppress(pp.Optional(ddlIfNotExists))
|
||||
+ ddlName.setResultsName("tableName")
|
||||
|
Loading…
Reference in New Issue
Block a user