Skip to content

Commit

Permalink
fix: fixed TableColumnsQuery scanning for pg 11
Browse files Browse the repository at this point in the history
  • Loading branch information
wwoytenko committed May 6, 2024
1 parent b54a298 commit 4d2bdfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/postgres/context/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func getColumnsConfig(ctx context.Context, tx pgx.Tx, oid toolkit.Oid, version i
&column.NotNull, &column.Length, &column.Num, &column.TypeLength, &column.IsGenerated)
} else {
err = rows.Scan(&column.Name, &column.TypeOid, &column.TypeName,
&column.NotNull, &column.Length, &column.Num)
&column.NotNull, &column.Length, &column.Num, &column.TypeLength)
}
if err != nil {
return nil, fmt.Errorf("cannot scan tableColumnQuery: %w", err)
Expand Down

0 comments on commit 4d2bdfc

Please sign in to comment.