small sql fix

pull/1584/head
Alexander Medvednikov 2019-08-12 12:06:17 +03:00
parent 8a2714b35a
commit 32754e3b4c
1 changed files with 3 additions and 3 deletions

View File

@ -1703,10 +1703,10 @@ fn (p mut Parser) var_expr(v Var) string {
p.next()
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.insert_query(fn_ph)
return 'void'
return 'void'
}
// println('dot #$dc')
typ = p.dot(typ, fn_ph)