Skip to content

Commit

Permalink
don't quote table name in snowflake dialect
Browse files Browse the repository at this point in the history
  • Loading branch information
Horatiu Ion committed Jul 16, 2020
1 parent 52704f4 commit 7386481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/dialect/snowflake.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ func (d SnowflakeDialect) QuoteField(f string) string {

func (d SnowflakeDialect) QuotedTableForQuery(schema string, table string) string {
if strings.TrimSpace(schema) == "" {
return d.QuoteField(table)
return table
}

return schema + "." + d.QuoteField(table)
return schema + "." + table
}

func (d SnowflakeDialect) IfSchemaNotExists(command, schema string) string {
Expand Down

0 comments on commit 7386481

Please sign in to comment.