From e90a988a697ae2f1c69c5cfc2de760de7358883d Mon Sep 17 00:00:00 2001 From: rbock Date: Tue, 7 Nov 2017 13:00:33 +0100 Subject: [PATCH] Remove some commented lines --- scripts/ddl2cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/ddl2cpp b/scripts/ddl2cpp index dab403cc..1bae60fc 100755 --- a/scripts/ddl2cpp +++ b/scripts/ddl2cpp @@ -231,10 +231,6 @@ types = { 'bigint unsigned': 'bigint_unsigned', #MYSQL } -# ddlColumn = Group(Optional(ddlConstraint).setResultsName("isConstraint") + OneOrMore(MatchFirst([ddlUnsigned, ddlNotNull, ddlAutoValue, ddlDefaultValue, ddlFunctionWord("NOW"), ddlTerm, ddlNum, ddlColumnComment, ddlString, ddlArguments]))) -#createTable = Group(ddlWord("CREATE") + ddlWord("TABLE") + ddlIfNotExists + ddlName.setResultsName("tableName") + "(" + Group(delimitedList(ddlColumn)).setResultsName("columns") + ")").setResultsName("create") -#ddlComment = oneOf(["--", "#"]) + restOfLine - if failOnParse: ddl = OneOrMore(Suppress(SkipTo(createTable, False)) + createTable) ddl.ignore(ddlComment)