From 4c639df91d9db95f673e3166bd407ad7f542eba1 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Fri, 3 Mar 2023 07:05:30 +0100 Subject: [PATCH] Add some more types --- src/procrusql/parser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/procrusql/parser.py b/src/procrusql/parser.py index 5ee3a44..e30a127 100755 --- a/src/procrusql/parser.py +++ b/src/procrusql/parser.py @@ -286,11 +286,13 @@ def parse_column_definition(ps): ps2.ast = [] ps2.skip_whitespace_and_comments() sqltypes = ( - "int", "integer", "serial", + "integer", "int", "serial", "bigint", "boolean", "text", "character varying", "date", "timestamp with time zone", "timestamptz", "time", + "inet", + "double precision", "float8", "real", "float4", ) pattern = "(" + "|".join(sqltypes) + ")" + r"([ \t]+(default .*|not null\b|primary key\b|unique\b|references \w+\b))*" m = ps2.match(pattern)