feat: force usage of text type for strings in cassandra tests

This commit is contained in:
Nybkox
2025-02-04 00:30:35 +01:00
parent de4cea86da
commit f63b61681f
3 changed files with 5 additions and 1 deletions

View File

@@ -196,7 +196,7 @@ describe('Query', () => {
pureName: 't1',
columns: [
{ columnName: 'id', dataType: 'int', notNull: true, autoIncrement: true },
{ columnName: 'val', dataType: 'varchar(50)' },
{ columnName: 'val', dataType: engine.useTextTypeForStrings ? 'text' : 'varchar(50)' },
],
primaryKey: {
columns: [{ columnName: 'id' }],

View File

@@ -623,6 +623,8 @@ const cassandraEngine = {
skipUnique: true,
skipIndexes: true,
skipOrderBy: true,
useTextTypeForStrings: true,
// objects: [],
};

View File

@@ -43,6 +43,8 @@ export type TestEngineInfo = {
dbSnapshotBySeconds?: boolean;
setNullDefaultInsteadOfDrop?: boolean;
useTextTypeForStrings?: boolean;
supportRenameSqlObject?: boolean;
supportSchemas?: boolean;