Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Dec 29, 2023
1 parent 83eb9f6 commit 5e35513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow/connectors/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,8 @@ func (c *PostgresConnector) getTableSchemaForTable(
defer rows.Close()

fields := rows.FieldDescriptions()
columnNames := make([]string, len(fields))
columnTypes := make([]string, len(fields))
columnNames := make([]string, 0, len(fields))
columnTypes := make([]string, 0, len(fields))
for _, fieldDescription := range fields {
genericColType := postgresOIDToQValueKind(fieldDescription.DataTypeOID)
if genericColType == qvalue.QValueKindInvalid {
Expand Down

0 comments on commit 5e35513

Please sign in to comment.