Skip to content

Commit

Permalink
fix: Take the maximum array dimensions (#3034)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleconroy committed Dec 4, 2023
1 parent 564f67d commit caaaacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/engine/postgresql/analyzer/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (a *Analyzer) Analyze(ctx context.Context, n ast.Node, query string, migrat
DataType: dt,
NotNull: notNull,
IsArray: isArray,
ArrayDims: int32(dims),
ArrayDims: int32(max(col.ArrayDims, dims)),
Table: &core.Identifier{
Schema: tbl.SchemaName,
Name: tbl.TableName,
Expand Down

0 comments on commit caaaacc

Please sign in to comment.