changeset 21463:0924bd1d77b3

dict-sql: Add missing USING TIMESTAMP for DELETE queries
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 02 Feb 2017 11:32:50 +0200
parents 6b4bad2c0840
children 6fc89fa8bd23
files src/lib-dict/dict-sql.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-dict/dict-sql.c	Tue Jan 31 21:03:29 2017 +0200
+++ b/src/lib-dict/dict-sql.c	Thu Feb 02 11:32:50 2017 +0200
@@ -1127,6 +1127,7 @@
 		const char *error;
 
 		str_printfa(query, "DELETE FROM %s", map->table);
+		sql_dict_transaction_add_timestamp(ctx, query);
 		if (sql_dict_where_build(dict, map, &values, key[0],
 					 SQL_DICT_RECURSE_NONE, query, &error) < 0) {
 			i_error("dict-sql: Failed to delete %s: %s", key, error);