Skip to content

Commit caaaacc

Browse files
authored
fix: Take the maximum array dimensions (#3034)
1 parent 564f67d commit caaaacc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/engine/postgresql/analyzer/analyze.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func (a *Analyzer) Analyze(ctx context.Context, n ast.Node, query string, migrat
262262
DataType: dt,
263263
NotNull: notNull,
264264
IsArray: isArray,
265-
ArrayDims: int32(dims),
265+
ArrayDims: int32(max(col.ArrayDims, dims)),
266266
Table: &core.Identifier{
267267
Schema: tbl.SchemaName,
268268
Name: tbl.TableName,

0 commit comments

Comments
 (0)