Skip to content

Commit

Permalink
fix(postgres): Fixed a problem with array dimensions disappearing whe…
Browse files Browse the repository at this point in the history
…n using "ALTER TABLE ADD COLUMN".

close sqlc-dev#2571
  • Loading branch information
orisano committed Aug 3, 2023
1 parent 2c5fbdd commit 336aae5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/sql/catalog/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func (table *Table) addColumn(cmd *ast.AlterTableCmd) error {
IsNotNull: cmd.Def.IsNotNull,
IsUnsigned: cmd.Def.IsUnsigned,
IsArray: cmd.Def.IsArray,
ArrayDims: cmd.Def.ArrayDims,
Length: cmd.Def.Length,
})
return nil
Expand Down

0 comments on commit 336aae5

Please sign in to comment.