Skip to content

Commit

Permalink
driver-adapters: support JSON columns (#4309)
Browse files Browse the repository at this point in the history
Fixes the "unsupported column type 141" error.
  • Loading branch information
aqrln authored Oct 3, 2023
1 parent 7df3663 commit 06e0f08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export function fieldToColumnType(fieldTypeId: number): ColumnType {
case NeonColumnType['NUMERIC']:
case NeonColumnType['MONEY']:
return ColumnTypeEnum.Numeric
case NeonColumnType['JSON']:
case NeonColumnType['JSONB']:
return ColumnTypeEnum.Json
case NeonColumnType['UUID']:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export function fieldToColumnType(fieldTypeId: number): ColumnType {
case PgColumnType['NUMERIC']:
case PgColumnType['MONEY']:
return ColumnTypeEnum.Numeric
case PgColumnType['JSON']:
case PgColumnType['JSONB']:
return ColumnTypeEnum.Json
case PgColumnType['UUID']:
Expand Down

0 comments on commit 06e0f08

Please sign in to comment.