diff --git a/packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts b/packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts index 5bea5252e1..79dc5a25cc 100644 --- a/packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts +++ b/packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts @@ -944,7 +944,7 @@ export class MysqlUi { } } - static getDataTypeForUiType(col: { uidt: UITypes }, idType?: IDType) { + static getDataTypeForUiType(col: { uidt: UITypes, dtxp?: string, colOptions?: any }, idType?: IDType) { const colProp: any = {}; switch (col.uidt) { case 'ID': @@ -977,6 +977,9 @@ export class MysqlUi { break; case 'MultiSelect': colProp.dt = 'set'; + if (col.colOptions?.options.length > 64 || col.dtxp?.split(',').length > 64) { + colProp.dt = 'text'; + } break; case 'SingleSelect': colProp.dt = 'enum';