From 31ef4f2e547ef14c9839b6a5a14e09414c17620b Mon Sep 17 00:00:00 2001 From: Carlitxxx86 <104036996+Carlitxxx86@users.noreply.github.com> Date: Tue, 19 Apr 2022 18:45:46 -0400 Subject: [PATCH] Added MariaDB keywords GENERATED and PERIOD Both keywords are used for System Versioned tables. GENERATED marks a column as auto generated. PERIOD is ignored fro the script. --- scripts/ddl2cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/ddl2cpp b/scripts/ddl2cpp index 503721f6..31b22b33 100755 --- a/scripts/ddl2cpp +++ b/scripts/ddl2cpp @@ -217,6 +217,7 @@ ddlAutoKeywords = [ "SMALLSERIAL", "SERIAL", "BIGSERIAL", + "GENERATED", ] ddlAutoValue = pp.Or(map(pp.CaselessLiteral, sorted(ddlAutoKeywords, reverse=True))) @@ -244,6 +245,7 @@ ddlConstraintKeywords = [ "INDEX", "UNIQUE", "CHECK", + "PERIOD", ] ddlConstraint = pp.Group( pp.Or(map(pp.CaselessLiteral, sorted(ddlConstraintKeywords, reverse=True)))