mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
strings: replace_each([]); orm: update
This commit is contained in:
@@ -1764,7 +1764,11 @@ fn (p mut Parser) var_expr(v Var) string {
|
||||
name := p.tokens[p.token_idx].lit
|
||||
if !name.contains('exec') && !name.starts_with('q_') {
|
||||
p.next()
|
||||
p.insert_query(fn_ph)
|
||||
if name == 'insert' {
|
||||
p.insert_query(fn_ph)
|
||||
} else if name == 'update' {
|
||||
p.update_query(fn_ph)
|
||||
}
|
||||
return 'void'
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user