[tarantool-patches] Re: [PATCH v2 06/11] sql: refactor sql_expr_compile to return AST

Kirill Shcherbatov kshcherbatov at tarantool.org
Thu Jun 14 19:12:44 MSK 2018


> Why not just diag_set(ClientError, ER_SQL, sql_error); ?
+       char *sql_error;
+       if (sqlite3RunParser(&parser, stmt, &sql_error) != SQLITE_OK &&
+               parser.rc != SQL_TARANTOOL_ERROR)
+               diag_set(ClientError, ER_SQL, sql_error);
+       else
+               expression = parser.parsed_expr;




More information about the Tarantool-patches mailing list