From b6faf82911c4e347f4acf3ab9f5898f97c43c6ce Mon Sep 17 00:00:00 2001 From: yuyi Date: Sat, 22 Oct 2022 17:11:45 +0800 Subject: [PATCH] parser: minor optimization in sql_expr() (#16145) --- vlib/v/parser/sql.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/parser/sql.v b/vlib/v/parser/sql.v index df8bf3dd23..ebd36cfc6f 100644 --- a/vlib/v/parser/sql.v +++ b/vlib/v/parser/sql.v @@ -40,7 +40,7 @@ fn (mut p Parser) sql_expr() ast.Expr { } if mut where_expr.right is ast.Ident { if !p.scope.known_var(where_expr.right.name) { - p.check_undefined_variables([where_expr.left].map(it.str()), where_expr.right) or { + p.check_undefined_variables([where_expr.left.str()], where_expr.right) or { return p.error_with_pos(err.msg(), where_expr.right.pos) } }