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)