diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-09 14:27:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-09 15:27:32 +0100 |
commit | 084dc96bc564b814b7d8850958613cfae835dc77 (patch) | |
tree | a33bbbb6dac6c4277389478b154f2b4306eacb34 /src/lua/lua_sqlite3.c | |
parent | 0ebcb5c9fb90363a2afff95f3f1af827fcf9b287 (diff) | |
download | rspamd-084dc96bc564b814b7d8850958613cfae835dc77.tar.gz rspamd-084dc96bc564b814b7d8850958613cfae835dc77.zip |
[Feature] Add support for Lua API tracing
Diffstat (limited to 'src/lua/lua_sqlite3.c')
-rw-r--r-- | src/lua/lua_sqlite3.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua/lua_sqlite3.c b/src/lua/lua_sqlite3.c index 2a451dc31..87d798666 100644 --- a/src/lua/lua_sqlite3.c +++ b/src/lua/lua_sqlite3.c @@ -168,6 +168,7 @@ lua_sqlite3_bind_statements (lua_State *L, gint start, gint end, static gint lua_sqlite3_sql (lua_State *L) { + LUA_TRACE_POINT; sqlite3 *db = lua_check_sqlite3 (L, 1); const gchar *query = luaL_checkstring (L, 2); sqlite3_stmt *stmt; @@ -262,6 +263,7 @@ lua_sqlite3_push_row (lua_State *L, sqlite3_stmt *stmt) static gint lua_sqlite3_next_row (lua_State *L) { + LUA_TRACE_POINT; sqlite3_stmt *stmt = *(sqlite3_stmt **)lua_touserdata (L, lua_upvalueindex (1)); gint rc; @@ -295,6 +297,7 @@ end static gint lua_sqlite3_rows (lua_State *L) { + LUA_TRACE_POINT; sqlite3 *db = lua_check_sqlite3 (L, 1); const gchar *query = luaL_checkstring (L, 2); sqlite3_stmt *stmt, **pstmt; @@ -332,6 +335,7 @@ lua_sqlite3_rows (lua_State *L) static gint lua_sqlite3_close (lua_State *L) { + LUA_TRACE_POINT; sqlite3 *db = lua_check_sqlite3 (L, 1); if (db) { |