From 32754e3b4c46576422c5eab7f4b5928b0977dd74 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 12 Aug 2019 12:06:17 +0300 Subject: [PATCH] small sql fix --- compiler/parser.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/parser.v b/compiler/parser.v index 53ae078eb2..d9a5c3cdc1 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -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' + p.insert_query(fn_ph) + return 'void' } // println('dot #$dc') typ = p.dot(typ, fn_ph)