Browse Source

refactor: exclude unsupported functions

pull/7019/head
Pranav C 1 year ago
parent
commit
74823830e9
  1. 12
      packages/nocodb-sdk/src/lib/sqlUi/MssqlUi.ts
  2. 2
      packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts
  3. 14
      packages/nocodb-sdk/src/lib/sqlUi/OracleUi.ts
  4. 10
      packages/nocodb-sdk/src/lib/sqlUi/SnowflakeUi.ts
  5. 5
      packages/nocodb-sdk/src/lib/sqlUi/SqliteUi.ts

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

@ -909,6 +909,16 @@ export class MssqlUi {
} }
static getUnsupportedFnList() { static getUnsupportedFnList() {
return ['XOR', 'REGEX_MATCH', 'REGEX_EXTRACT', 'REGEX_REPLACE', 'VALUE']; return [
'XOR',
'REGEX_MATCH',
'REGEX_EXTRACT',
'REGEX_REPLACE',
'VALUE',
'COUNTA',
'COUNT',
'ROUNDDOWN',
'ROUNDUP',
];
} }
} }

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

@ -1289,6 +1289,6 @@ export class MysqlUi {
} }
static getUnsupportedFnList() { static getUnsupportedFnList() {
return []; return ['COUNTA', 'COUNT'];
} }
} }

14
packages/nocodb-sdk/src/lib/sqlUi/OracleUi.ts

@ -183,8 +183,8 @@ export class OracleUi {
// return ''; // return '';
// break; // break;
// case "longtext": // case "longtext":
// return ''
// break; // break;
// return ''
// case "binary": // case "binary":
// return 255; // return 255;
// break; // break;
@ -938,7 +938,17 @@ export class OracleUi {
} }
static getUnsupportedFnList() { static getUnsupportedFnList() {
return ['XOR', 'REGEX_MATCH', 'REGEX_EXTRACT', 'REGEX_REPLACE', 'VALUE']; return [
'XOR',
'REGEX_MATCH',
'REGEX_EXTRACT',
'REGEX_REPLACE',
'VALUE',
'COUNTA',
'COUNT',
'ROUNDDOWN',
'ROUNDUP',
];
} }
} }

10
packages/nocodb-sdk/src/lib/sqlUi/SnowflakeUi.ts

@ -972,7 +972,15 @@ export class SnowflakeUi {
} }
static getUnsupportedFnList() { static getUnsupportedFnList() {
return ['XOR', 'REGEX_MATCH', 'REGEX_EXTRACT', 'REGEX_REPLACE', 'VALUE']; return [
'XOR',
'REGEX_MATCH',
'REGEX_EXTRACT',
'REGEX_REPLACE',
'VALUE',
'COUNTA',
'COUNT',
];
} }
} }

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

@ -878,6 +878,11 @@ export class SqliteUi {
'REGEX_EXTRACT', 'REGEX_EXTRACT',
'REGEX_REPLACE', 'REGEX_REPLACE',
'VALUE', 'VALUE',
'COUNTA',
'COUNT',
'ROUNDDOWN',
'ROUNDUP',
]; ];
} }
} }

Loading…
Cancel
Save