Skip to content

Commit

Permalink
more quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoy-googly-moogly committed Nov 29, 2024
1 parent cc279c8 commit 11a25e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/malloy/src/dialect/snowflake/snowflake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,9 @@ export class SnowflakeDialect extends Dialect {
sqlSelectAliasAsStruct(alias: string): string {
return `OBJECT_CONSTRUCT_KEEP_NULL(${alias}.*)`;
}

sqlMaybeQuoteIdentifier(identifier: string): string {
return `"${identifier}"`;
return '"' + identifier.replace(/"/g, '""') + '"';
}

sqlCreateTableAsSelect(tableName: string, sql: string): string {
Expand Down

0 comments on commit 11a25e8

Please sign in to comment.