dovecot-1.2: dict-sql: Fixed sorting by key.

dovecot at dovecot.org dovecot at dovecot.org
Thu Oct 16 15:59:39 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/3e34e1816ac1
changeset: 8281:3e34e1816ac1
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Oct 16 15:59:35 2008 +0300
description:
dict-sql: Fixed sorting by key.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-dict/dict-sql.c |    2 +-

diffs (12 lines):

diff -r 116202a99576 -r 3e34e1816ac1 src/lib-dict/dict-sql.c
--- a/src/lib-dict/dict-sql.c	Thu Oct 16 15:19:42 2008 +0300
+++ b/src/lib-dict/dict-sql.c	Thu Oct 16 15:59:35 2008 +0300
@@ -349,7 +349,7 @@ static bool sql_dict_iterate_next_query(
 
 		if ((ctx->flags & DICT_ITERATE_FLAG_SORT_BY_KEY) != 0) {
 			str_append(query, " ORDER BY ");
-			for (i = array_count(&values); i < count; i++) {
+			for (i = 0; i < count; i++) {
 				str_printfa(query, "%s", sql_fields[i]);
 				if (i < count-1)
 					str_append_c(query, ',');


More information about the dovecot-cvs mailing list