Skip to content

Commit

Permalink
we shouldn't be escaping the sql statement (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskuchin authored Jun 3, 2020
1 parent bcb850c commit a4c5c84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/snowflake/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (tb *TaskBuilder) Create() string {
}

if tb.sql_statement != "" {
q.WriteString(fmt.Sprintf(` AS %v`, EscapeString(tb.sql_statement)))
q.WriteString(fmt.Sprintf(` AS %v`, tb.sql_statement))
}

return q.String()
Expand Down Expand Up @@ -238,7 +238,7 @@ func (tb *TaskBuilder) ChangeCondition(newCondition string) string {

// ChangeSqlStatement returns the sql that will update the sql the task executes.
func (tb *TaskBuilder) ChangeSqlStatement(newStatement string) string {
return fmt.Sprintf(`ALTER TASK %v MODIFY AS %v`, tb.QualifiedName(), EscapeString(newStatement))
return fmt.Sprintf(`ALTER TASK %v MODIFY AS %v`, tb.QualifiedName(), newStatement)
}

// Suspend returns the sql that will suspend the task.
Expand Down

0 comments on commit a4c5c84

Please sign in to comment.