Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
SafeToSql util fn
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaiba committed Mar 13, 2024
1 parent 818b79f commit b1d7646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func (c *ContextValidator) visitActions(actions []Action) error {
if err != nil {
return fmt.Errorf("%w: %s", err, statement)
}
if _, err := astTree.ToSQL(); err != nil {
if _, err := tree.SafeToSQL(astTree); err != nil {
return fmt.Errorf("%w: %s", err, statement)
}
// TODO: validate reference in SQL statement
Expand Down

0 comments on commit b1d7646

Please sign in to comment.