Make UPDATE use expression, not literal
This allows for things like UPDATE x SET a = a + 1
This commit is contained in:
parent
8a50ef7a52
commit
68e4d1b207
File diff suppressed because it is too large
Load Diff
|
@ -521,7 +521,7 @@ update_clause_commalist:
|
||||||
;
|
;
|
||||||
|
|
||||||
update_clause:
|
update_clause:
|
||||||
IDENTIFIER '=' literal {
|
IDENTIFIER '=' expr {
|
||||||
$$ = new UpdateClause();
|
$$ = new UpdateClause();
|
||||||
$$->column = $1;
|
$$->column = $1;
|
||||||
$$->value = $3;
|
$$->value = $3;
|
||||||
|
|
Loading…
Reference in New Issue