mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 22:36:01 +00:00
feat: force usage of text type for strings in cassandra tests
This commit is contained in:
@@ -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' }],
|
||||
|
||||
@@ -623,6 +623,8 @@ const cassandraEngine = {
|
||||
skipUnique: true,
|
||||
skipIndexes: true,
|
||||
skipOrderBy: true,
|
||||
|
||||
useTextTypeForStrings: true,
|
||||
// objects: [],
|
||||
};
|
||||
|
||||
|
||||
2
packages/types/test-engines.d.ts
vendored
2
packages/types/test-engines.d.ts
vendored
@@ -43,6 +43,8 @@ export type TestEngineInfo = {
|
||||
dbSnapshotBySeconds?: boolean;
|
||||
setNullDefaultInsteadOfDrop?: boolean;
|
||||
|
||||
useTextTypeForStrings?: boolean;
|
||||
|
||||
supportRenameSqlObject?: boolean;
|
||||
supportSchemas?: boolean;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user