andialbrecht / sqlparse

A non-validating SQL parser module for Python
BSD 3-Clause "New" or "Revised" License
3.63k stars 685 forks source link

example column_defs_lowlevel bug #731

Open wylsgame opened 11 months ago

wylsgame commented 11 months ago

when column type is decimal(30,8) like: SQL = """CREATE TABLE foo ( id decimal(30,8) primary key, title varchar(200) not null, description text);""" result is : NAME: id DEFINITION: decimal 30 NAME: 8 DEFINITION: primary key NAME: title DEFINITION: varchar 200 not null NAME: description DEFINITION: text so how to fix this?