From 3774ae0d912160aff03e54a918733d32010b4993 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 22 Jun 2020 20:05:07 +0200 Subject: [PATCH] orm: fix = --- vlib/v/gen/sql.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/gen/sql.v b/vlib/v/gen/sql.v index 0f0d5e67e3..2f342c6957 100644 --- a/vlib/v/gen/sql.v +++ b/vlib/v/gen/sql.v @@ -137,9 +137,9 @@ fn (mut g Gen) sql_select_expr(node ast.SqlExpr) { // g.writeln('int _step_res$tmp = sqlite3_step($g.sql_stmt_name);') if node.is_array { - //g.writeln('\tprintf("step res=%d\\n", _step_res$tmp);') + g.writeln('\tprintf("step res=%d\\n", _step_res$tmp);') g.writeln('\tif (_step_res$tmp == SQLITE_DONE) break;') - g.writeln('\tif (_step_res$tmp = SQLITE_ROW) ;') // another row + g.writeln('\tif (_step_res$tmp == SQLITE_ROW) ;') // another row g.writeln('\telse if (_step_res$tmp != SQLITE_OK) break;') } for i, field in node.fields {