[evolution-data-server/openismus-work: 71/122] Fixing e_book_backend_sqlitedb_search_uids()



commit ba2110354e4a6160fc00ff93ce7b584d4c260771
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Thu Nov 29 20:32:46 2012 +0900

    Fixing e_book_backend_sqlitedb_search_uids()
    
    Was missing 'WHERE' in the generated statement.

 .../libedata-book/e-book-backend-sqlitedb.c        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend-sqlitedb.c b/addressbook/libedata-book/e-book-backend-sqlitedb.c
index 202317b..77be440 100644
--- a/addressbook/libedata-book/e-book-backend-sqlitedb.c
+++ b/addressbook/libedata-book/e-book-backend-sqlitedb.c
@@ -2954,7 +2954,7 @@ e_book_backend_sqlitedb_search_uids (EBookBackendSqliteDB *ebsdb,
 			if (query_with_list_attrs) {
 				gchar *list_table = g_strconcat (folderid, "_lists", NULL);
 
-				stmt = sqlite3_mprintf ("SELECT DISTINCT summary.uid FROM %Q AS summary, %Q AS multi %s",
+				stmt = sqlite3_mprintf ("SELECT DISTINCT summary.uid FROM %Q AS summary, %Q AS multi WHERE %s",
 							folderid, list_table, sql_query);
 
 				g_free (list_table);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]