aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/sqlite_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-23 19:04:02 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-23 19:04:02 +0100
commit9da44cc3a590d9b1e5c7515a5dda4bbbfa4ca831 (patch)
tree56fea5bda77f8257da6b2424cc195354063a7162 /src/libutil/sqlite_utils.c
parent54fd0d2afbdfd60bca200ea99c116b3f72c03b04 (diff)
downloadrspamd-9da44cc3a590d9b1e5c7515a5dda4bbbfa4ca831.tar.gz
rspamd-9da44cc3a590d9b1e5c7515a5dda4bbbfa4ca831.zip
Add user support to sqlite3.
Diffstat (limited to 'src/libutil/sqlite_utils.c')
-rw-r--r--src/libutil/sqlite_utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/sqlite_utils.c b/src/libutil/sqlite_utils.c
index 61ba49caf..dddb08703 100644
--- a/src/libutil/sqlite_utils.c
+++ b/src/libutil/sqlite_utils.c
@@ -153,6 +153,9 @@ rspamd_sqlite3_run_prstmt (sqlite3 *db, GArray *stmts,
case 'S':
*va_arg (ap, int*) = sqlite3_column_int (stmt, i);
break;
+ case 'L':
+ *va_arg (ap, gint64*) = sqlite3_last_insert_rowid (db);
+ break;
}
}