diff --git a/packages/nocodb/src/lib/db/sql-mgr/code/models/xc/ModelXcMetaSqlite.ts b/packages/nocodb/src/lib/db/sql-mgr/code/models/xc/ModelXcMetaSqlite.ts index 670a01db5a..99c5761b69 100644 --- a/packages/nocodb/src/lib/db/sql-mgr/code/models/xc/ModelXcMetaSqlite.ts +++ b/packages/nocodb/src/lib/db/sql-mgr/code/models/xc/ModelXcMetaSqlite.ts @@ -559,7 +559,8 @@ class ModelXcMetaSqlite extends BaseModelXcMeta { } private getAbstractType(col): any { - switch ((col.dt || col.dt).toLowerCase()) { + // remove length value from datatype (for ex. varchar(45) => varchar) + switch (col.dt?.replace(/\(\d+\)$/, '').toLowerCase()) { case 'date': return 'date'; case 'datetime':