mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 08:26:29 +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',
|
pureName: 't1',
|
||||||
columns: [
|
columns: [
|
||||||
{ columnName: 'id', dataType: 'int', notNull: true, autoIncrement: true },
|
{ columnName: 'id', dataType: 'int', notNull: true, autoIncrement: true },
|
||||||
{ columnName: 'val', dataType: 'varchar(50)' },
|
{ columnName: 'val', dataType: engine.useTextTypeForStrings ? 'text' : 'varchar(50)' },
|
||||||
],
|
],
|
||||||
primaryKey: {
|
primaryKey: {
|
||||||
columns: [{ columnName: 'id' }],
|
columns: [{ columnName: 'id' }],
|
||||||
|
|||||||
@@ -623,6 +623,8 @@ const cassandraEngine = {
|
|||||||
skipUnique: true,
|
skipUnique: true,
|
||||||
skipIndexes: true,
|
skipIndexes: true,
|
||||||
skipOrderBy: true,
|
skipOrderBy: true,
|
||||||
|
|
||||||
|
useTextTypeForStrings: true,
|
||||||
// objects: [],
|
// 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;
|
dbSnapshotBySeconds?: boolean;
|
||||||
setNullDefaultInsteadOfDrop?: boolean;
|
setNullDefaultInsteadOfDrop?: boolean;
|
||||||
|
|
||||||
|
useTextTypeForStrings?: boolean;
|
||||||
|
|
||||||
supportRenameSqlObject?: boolean;
|
supportRenameSqlObject?: boolean;
|
||||||
supportSchemas?: boolean;
|
supportSchemas?: boolean;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user