1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

small sql fix

This commit is contained in:
Alexander Medvednikov 2019-08-12 12:06:17 +03:00
parent 8a2714b35a
commit 32754e3b4c

View File

@ -1703,10 +1703,10 @@ fn (p mut Parser) var_expr(v Var) string {
p.next() p.next()
return p.select_query(fn_ph) return p.select_query(fn_ph)
} }
if typ == 'pg__DB' && !p.fileis('pg.v') { if typ == 'pg__DB' && !p.fileis('pg.v') && p.peek() == .name {
p.next() p.next()
p.insert_query(fn_ph) p.insert_query(fn_ph)
return 'void' return 'void'
} }
// println('dot #$dc') // println('dot #$dc')
typ = p.dot(typ, fn_ph) typ = p.dot(typ, fn_ph)