Skip to content

Commit 11a25e8

Browse files
more quoting
1 parent cc279c8 commit 11a25e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/malloy/src/dialect/snowflake/snowflake.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,9 @@ export class SnowflakeDialect extends Dialect {
310310
sqlSelectAliasAsStruct(alias: string): string {
311311
return `OBJECT_CONSTRUCT_KEEP_NULL(${alias}.*)`;
312312
}
313+
313314
sqlMaybeQuoteIdentifier(identifier: string): string {
314-
return `"${identifier}"`;
315+
return '"' + identifier.replace(/"/g, '""') + '"';
315316
}
316317

317318
sqlCreateTableAsSelect(tableName: string, sql: string): string {

0 commit comments

Comments
 (0)