Fix invalid update sql bug
This commit is contained in:
parent
e3c94d17d1
commit
3eb5b83070
|
@ -335,10 +335,11 @@ func (c *compilerContext) renderUnionStmt(w io.Writer, item renitem) error {
|
||||||
}
|
}
|
||||||
io.WriteString(w, ` RETURNING `)
|
io.WriteString(w, ` RETURNING `)
|
||||||
quoted(w, item.ti.Name)
|
quoted(w, item.ti.Name)
|
||||||
io.WriteString(w, `.*), `)
|
io.WriteString(w, `.*)`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if connect && disconnect {
|
if connect && disconnect {
|
||||||
|
io.WriteString(w, `, `)
|
||||||
quoted(w, item.ti.Name)
|
quoted(w, item.ti.Name)
|
||||||
io.WriteString(w, ` AS (`)
|
io.WriteString(w, ` AS (`)
|
||||||
io.WriteString(w, `SELECT * FROM `)
|
io.WriteString(w, `SELECT * FROM `)
|
||||||
|
|
Loading…
Reference in New Issue