mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
strings: replace_each([]); orm: update
This commit is contained in:
parent
4e69c40e12
commit
cdfbb2978d
5 changed files with 177 additions and 1 deletions
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue