Skip to content

Commit

Permalink
Merge pull request #8353 from maheshdhoran/fix/pg-abstract-type
Browse files Browse the repository at this point in the history
fix: map PostgreSQL 'double precision' correctly as 'float'
  • Loading branch information
mertmit committed Apr 28, 2024
2 parents 02226a6 + df260a0 commit ba338d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1435,13 +1435,12 @@ export class PgUi {
return 'date';
case 'daterange':
return 'string';
case 'double precision':
return 'string';

case 'event_trigger':
case 'fdw_handler':
return 'string';

case 'double precision':
case 'float4':
case 'float8':
return 'float';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,12 @@ class ModelXcMetaPg extends BaseModelXcMeta {
return 'date';
case 'daterange':
return 'string';
case 'double precision':
return 'string';

case 'event_trigger':
case 'fdw_handler':
return dt;

case 'double precision':
case 'float4':
case 'float8':
return 'float';
Expand Down

0 comments on commit ba338d3

Please sign in to comment.