Browse Source

Merge pull request #505 from ejose19/ej/pgNumeric

refactor: add numeric type to more pg column types
pull/524/head
Pranav C 3 years ago committed by GitHub
parent
commit
1f1bb5da5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      packages/nc-gui/helpers/sqlUi/PgUi.js

21
packages/nc-gui/helpers/sqlUi/PgUi.js

@ -1760,14 +1760,16 @@ export class PgUi {
'float4', 'float4',
'float8', 'float8',
'smallint', 'smallint',
'smallserial' 'smallserial',
'numeric',
] ]
case 'Decimal': case 'Decimal':
return [ return [
'double precision', 'double precision',
'float4', 'float4',
'float8' 'float8',
'numeric',
] ]
case 'Currency': case 'Currency':
@ -1784,7 +1786,9 @@ export class PgUi {
'serial8', 'serial8',
'double precision', 'double precision',
'money', 'float4', 'money', 'float4',
'float8'] 'float8',
'numeric',
]
case 'Percent': case 'Percent':
return [ return [
@ -1802,7 +1806,8 @@ export class PgUi {
'float4', 'float4',
'float8', 'float8',
'smallint', 'smallint',
'smallserial' 'smallserial',
'numeric',
] ]
case 'Duration': case 'Duration':
@ -1821,7 +1826,9 @@ export class PgUi {
'float4', 'float4',
'float8', 'float8',
'smallint', 'smallint',
'smallserial'] 'smallserial',
'numeric',
]
case 'Rating': case 'Rating':
return [ return [
@ -1839,7 +1846,9 @@ export class PgUi {
'float4', 'float4',
'float8', 'float8',
'smallint', 'smallint',
'smallserial'] 'smallserial',
'numeric',
]
case 'Formula': case 'Formula':
return [ return [

Loading…
Cancel
Save