Skip to content

Commit 7123ce3

Browse files
authored
Fix column data type parsing to support UserDataTypeReference (#33)
1 parent 5990c29 commit 7123ce3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

parser/marshal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2391,7 +2391,7 @@ func (p *Parser) parseColumnDefinition() (*ast.ColumnDefinition, error) {
23912391
col.ColumnIdentifier = p.parseIdentifier()
23922392

23932393
// Parse data type - be lenient if no data type is provided
2394-
dataType, err := p.parseDataType()
2394+
dataType, err := p.parseDataTypeReference()
23952395
if err != nil {
23962396
// Lenient: return column definition without data type
23972397
return col, nil
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"todo": true}
1+
{}

0 commit comments

Comments
 (0)