[tarantool-patches] Re: [PATCH v7 6/7] sql: export funcs defined on Expr, ExprList to sql.h

Konstantin Osipov kostja at tarantool.org
Wed May 23 21:15:28 MSK 2018


* Kirill Shcherbatov <kshcherbatov at tarantool.org> [18/05/23 20:33]:
> As we would like work with check in server, we need to export
> - sqlite3ExprListAppend as sql_expr_list_append
> - sqlite3ExprListDelete as sql_expr_list_delete
> - sqlite3ExprListDup as sql_expr_list_dup.

I don't understand why we need to use internal parser API calls in
the server. It seems all the server should need to know is how to
invoke the parser with a string fragment, and how to convert the
resulting AST to vdbe, and then how to execute the vdbe/free the
resources. 

Perhaps there should be a method to reset the vdbe for subsequent
execution.

Why do we need to use low-level parser calls in the server?

-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov




More information about the Tarantool-patches mailing list