summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-04-29 18:52:18 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-04-29 18:52:18 -0400
commitef7630df9f8335067b3800514ad0b1b26687a094 (patch)
tree1cfca1cc70e32625b76410837b1f249b8aa6d464
parent9294098aa6bf2694ca403c03179672caf2b3d0f3 (diff)
Fix SQL syntax error and pending message order
-rw-r--r--telepathy-logger/log-store-sqlite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/telepathy-logger/log-store-sqlite.c b/telepathy-logger/log-store-sqlite.c
index dd1860d..600d469 100644
--- a/telepathy-logger/log-store-sqlite.c
+++ b/telepathy-logger/log-store-sqlite.c
@@ -692,7 +692,7 @@ _tpl_log_store_sqlite_get_pending_messages (TplLogStore *self,
e = sqlite3_prepare_v2 (priv->db, "SELECT id,timestamp "
"FROM pending_messages "
"WHERE channel=? "
- "ORDER BY id DSC",
+ "ORDER BY id ASC",
-1, &sql, NULL);
if (e != SQLITE_OK)