From 8797dfd79e783aa26653c31a4a0d29be4d26783c Mon Sep 17 00:00:00 2001 From: MeanSquaredError <35379301+MeanSquaredError@users.noreply.github.com> Date: Tue, 11 Jun 2024 03:56:50 +0300 Subject: [PATCH] Recognize serial2, serial4 and serial8 types when parsing SQL definitions in the ddl2cpp script. --- scripts/ddl2cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/ddl2cpp b/scripts/ddl2cpp index 4108cd8b..74f60184 100755 --- a/scripts/ddl2cpp +++ b/scripts/ddl2cpp @@ -92,6 +92,9 @@ ddlIntegerTypes = [ ddlSerialTypes = [ "bigserial", # PostgreSQL "serial", # PostgreSQL + "serial2", # PostgreSQL + "serial4", # PostgreSQL + "serial8", # PostgreSQL "smallserial", # PostgreSQL ] @@ -233,6 +236,9 @@ def initDllParser(): "AUTOINCREMENT", "SMALLSERIAL", "SERIAL", + "SERIAL2", + "SERIAL4", + "SERIAL8", "BIGSERIAL", "GENERATED", ]