dovecot-1.2: dict-sql: atomic_inc() didn't work right with negat...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Oct 16 15:01:10 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/6b23fa31c553
changeset: 8278:6b23fa31c553
user: Timo Sirainen <tss at iki.fi>
date: Thu Oct 16 14:58:51 2008 +0300
description:
dict-sql: atomic_inc() didn't work right with negative values.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-dict/dict-sql.c | 2 +-
diffs (12 lines):
diff -r 943955343653 -r 6b23fa31c553 src/lib-dict/dict-sql.c
--- a/src/lib-dict/dict-sql.c Thu Oct 16 12:38:25 2008 +0300
+++ b/src/lib-dict/dict-sql.c Thu Oct 16 14:58:51 2008 +0300
@@ -607,7 +607,7 @@ static void sql_dict_atomic_inc(struct d
const char *query;
query = sql_dict_set_query(dict, map, &values, key,
- dec2str(diff), TRUE);
+ t_strdup_printf("%lld", diff), TRUE);
sql_update(ctx->sql_ctx, query);
} T_END;
}
More information about the dovecot-cvs
mailing list