Skip to content

Commit 995b115

Browse files
committed
fix: TypeError: Cannot read property 'startsWith' of undefined at tableDefinition.filter.column: support uppercase databases
1 parent 0b573bb commit 995b115

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/cubejs-query-orchestrator/driver/BaseDriver.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ const DbTypeToGenericType = {
2828
class BaseDriver {
2929
informationSchemaQuery() {
3030
return `
31-
SELECT columns.column_name,
32-
columns.table_name,
33-
columns.table_schema,
34-
columns.data_type
31+
SELECT columns.column_name as ${this.quoteIdentifier('column_name')},
32+
columns.table_name as ${this.quoteIdentifier('table_name')},
33+
columns.table_schema as ${this.quoteIdentifier('table_schema')},
34+
columns.data_type as ${this.quoteIdentifier('data_type')}
3535
FROM information_schema.columns
3636
WHERE columns.table_schema NOT IN ('information_schema', 'mysql', 'performance_schema', 'sys')
3737
`;

0 commit comments

Comments
 (0)