Skip to content

Commit f96386d

Browse files
Format sqlite tablename as an identifier in Update statements
1 parent ecc6178 commit f96386d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/engine/sqlite/convert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ func (c *cc) convertUpdate_stmtContext(n Update_stmt) ast.Node {
10351035
}
10361036

10371037
relations := &ast.List{}
1038-
tableName := n.Qualified_table_name().GetText()
1038+
tableName := identifier(n.Qualified_table_name().GetText())
10391039
rel := ast.RangeVar{
10401040
Relname: &tableName,
10411041
Location: n.GetStart().GetStart(),

0 commit comments

Comments
 (0)