aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/sqlite_utils.c
diff options
context:
space:
mode:
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;
}
}