aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_sqlite3.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-25 16:10:21 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-25 16:10:21 +0000
commit0fa975e21b80eb1423d0bdbcaa825ab01025d6c5 (patch)
tree8481108d117c9fe9d701926469e0a48f1d075b11 /src/lua/lua_sqlite3.c
parent5eb9938636b0ef004df7038eeae4fa98c0cb208e (diff)
downloadrspamd-0fa975e21b80eb1423d0bdbcaa825ab01025d6c5.tar.gz
rspamd-0fa975e21b80eb1423d0bdbcaa825ab01025d6c5.zip
Fix locking issues with sqlite
Diffstat (limited to 'src/lua/lua_sqlite3.c')
-rw-r--r--src/lua/lua_sqlite3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/lua_sqlite3.c b/src/lua/lua_sqlite3.c
index 1f8eac143..34a5a9e19 100644
--- a/src/lua/lua_sqlite3.c
+++ b/src/lua/lua_sqlite3.c
@@ -59,6 +59,8 @@ static const struct luaL_reg sqlitelib_f[] = {
static const struct luaL_reg sqlitelib_m[] = {
LUA_INTERFACE_DEF (sqlite3, sql),
+ {"query", lua_sqlite3_sql},
+ {"exec", lua_sqlite3_sql},
LUA_INTERFACE_DEF (sqlite3, rows),
{"__tostring", rspamd_lua_class_tostring},
{"__gc", lua_sqlite3_close},