Browse Source

fix: use decimal for Percent

test/percent
Wing-Kam Wong 2 years ago
parent
commit
ac1e8be0c4
  1. 2
      packages/nocodb-sdk/src/lib/sqlUi/MssqlUi.ts
  2. 2
      packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts
  3. 2
      packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts
  4. 2
      packages/nocodb-sdk/src/lib/sqlUi/SqliteUi.ts

2
packages/nocodb-sdk/src/lib/sqlUi/MssqlUi.ts

@ -1144,7 +1144,7 @@ export class MssqlUi {
};
break;
case 'Percent':
colProp.dt = 'double';
colProp.dt = 'decimal';
break;
case 'Duration':
colProp.dt = 'decimal';

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

@ -1033,7 +1033,7 @@ export class MysqlUi {
};
break;
case 'Percent':
colProp.dt = 'double';
colProp.dt = 'decimal';
break;
case 'Duration':
colProp.dt = 'decimal';

2
packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts

@ -1657,7 +1657,7 @@ export class PgUi {
};
break;
case 'Percent':
colProp.dt = 'double precision';
colProp.dt = 'decimal';
break;
case 'Duration':
colProp.dt = 'decimal';

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

@ -850,7 +850,7 @@ export class SqliteUi {
};
break;
case 'Percent':
colProp.dt = 'double';
colProp.dt = 'decimal';
break;
case 'Duration':
colProp.dt = 'decimal';

Loading…
Cancel
Save