Browse Source

fix: display bigint in string format

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1156/head
Wing-Kam Wong 3 years ago
parent
commit
8480271e35
  1. 4
      packages/nc-gui/helpers/sqlUi/MssqlUi.js
  2. 2
      packages/nc-gui/helpers/sqlUi/MysqlUi.js
  3. 2
      packages/nc-gui/helpers/sqlUi/SqliteUi.js
  4. 4
      packages/nocodb/src/lib/sqlUi/MssqlUi.ts
  5. 2
      packages/nocodb/src/lib/sqlUi/MysqlUi.ts
  6. 2
      packages/nocodb/src/lib/sqlUi/SqliteUi.ts

4
packages/nc-gui/helpers/sqlUi/MssqlUi.js

@ -921,16 +921,14 @@ export class MssqlUi {
static getAbstractType(col) {
switch ((col.dt || col.dt).toLowerCase()) {
case 'bigint':
case 'smallint':
case 'bit':
case 'tinyint':
case 'int':
return 'integer'
case 'bigint':
case 'binary':
return 'string'
case 'char':
return 'string'

2
packages/nc-gui/helpers/sqlUi/MysqlUi.js

@ -842,7 +842,6 @@ export class MysqlUi {
case 'int':
case 'smallint':
case 'mediumint':
case 'bigint':
case 'bit':
return 'integer'
@ -897,6 +896,7 @@ export class MysqlUi {
case 'set':
return 'set'
case 'bigint':
case 'geometry':
case 'point':
case 'linestring':

2
packages/nc-gui/helpers/sqlUi/SqliteUi.js

@ -683,7 +683,6 @@ export class SqliteUi {
case 'tinyint':
case 'smallint':
case 'mediumint':
case 'bigint':
case 'int2':
case 'int8':
return 'integer'
@ -702,6 +701,7 @@ export class SqliteUi {
case 'blob':
return 'blob'
case 'bigint':
case 'character':
case 'varchar':
return 'string'

4
packages/nocodb/src/lib/sqlUi/MssqlUi.ts

@ -937,16 +937,14 @@ export class MssqlUi {
static getAbstractType(col): any {
switch ((col.dt || col.dt).toLowerCase()) {
case 'bigint':
case 'smallint':
case 'bit':
case 'tinyint':
case 'int':
return 'integer';
case 'bigint':
case 'binary':
return 'string';
case 'char':
return 'string';

2
packages/nocodb/src/lib/sqlUi/MysqlUi.ts

@ -868,7 +868,6 @@ export class MysqlUi {
case 'int':
case 'smallint':
case 'mediumint':
case 'bigint':
case 'bit':
return 'integer';
@ -922,6 +921,7 @@ export class MysqlUi {
case 'set':
return 'set';
case 'bigint':
case 'geometry':
case 'point':
case 'linestring':

2
packages/nocodb/src/lib/sqlUi/SqliteUi.ts

@ -694,7 +694,6 @@ export class SqliteUi {
case 'tinyint':
case 'smallint':
case 'mediumint':
case 'bigint':
case 'int2':
case 'int8':
return 'integer';
@ -713,6 +712,7 @@ export class SqliteUi {
case 'blob':
return 'blob';
case 'bigint':
case 'character':
case 'varchar':
return 'string';

Loading…
Cancel
Save