Skip to content

Commit 164b783

Browse files
authored
feat(snowflake-driver): set QUOTED_IDENTIFIERS_IGNORE_CASE=FALSE by default (#9172)
1 parent 57bcbc4 commit 164b783

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/cubejs-snowflake-driver/src/SnowflakeDriver.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -453,12 +453,7 @@ export class SnowflakeDriver extends BaseDriver implements DriverInterface {
453453

454454
await this.execute(connection, 'ALTER SESSION SET TIMEZONE = \'UTC\'', [], false);
455455
await this.execute(connection, `ALTER SESSION SET STATEMENT_TIMEOUT_IN_SECONDS = ${this.config.executionTimeout}`, [], false);
456-
457-
// We only want to ignore the case if someone sets the value to true explicitly
458-
// since the default assumption is that casing matters
459-
if (this.config.identIgnoreCase) {
460-
await this.execute(connection, 'ALTER SESSION SET QUOTED_IDENTIFIERS_IGNORE_CASE = TRUE', [], false);
461-
}
456+
await this.execute(connection, `ALTER SESSION SET QUOTED_IDENTIFIERS_IGNORE_CASE = ${this.config.identIgnoreCase}`, [], false);
462457
return connection;
463458
} catch (e) {
464459
this.connection = null;

0 commit comments

Comments
 (0)