Make UPDATE use expression, not literal

This allows for things like UPDATE x SET a = a + 1
This commit is contained in:
Markus Dreseler 2017-09-12 19:50:34 +02:00
parent 8a50ef7a52
commit 68e4d1b207
2 changed files with 403 additions and 395 deletions

File diff suppressed because it is too large Load Diff

View File

@ -521,7 +521,7 @@ update_clause_commalist:
;
update_clause:
IDENTIFIER '=' literal {
IDENTIFIER '=' expr {
$$ = new UpdateClause();
$$->column = $1;
$$->value = $3;