Fix invalid update sql bug

This commit is contained in:
Vikram Rangnekar 2020-01-17 00:48:17 -05:00
parent e3c94d17d1
commit 3eb5b83070
1 changed files with 2 additions and 1 deletions

View File

@ -335,10 +335,11 @@ func (c *compilerContext) renderUnionStmt(w io.Writer, item renitem) error {
}
io.WriteString(w, ` RETURNING `)
quoted(w, item.ti.Name)
io.WriteString(w, `.*), `)
io.WriteString(w, `.*)`)
}
if connect && disconnect {
io.WriteString(w, `, `)
quoted(w, item.ti.Name)
io.WriteString(w, ` AS (`)
io.WriteString(w, `SELECT * FROM `)