[geary/mjog/search-update: 28/30] Geary.ImapDB.Account: Print SQL for search statements before executing




commit e896b18e864612d578c287914390149d2ba8b8c0
Author: Michael Gratton <mike vee net>
Date:   Tue Dec 29 17:50:32 2020 +1030

    Geary.ImapDB.Account: Print SQL for search statements before executing
    
    Helps to debug what the expression generator is doing.

 src/engine/imap-db/imap-db-account.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/engine/imap-db/imap-db-account.vala b/src/engine/imap-db/imap-db-account.vala
index fecb1867c..e5998afbf 100644
--- a/src/engine/imap-db/imap-db-account.vala
+++ b/src/engine/imap-db/imap-db-account.vala
@@ -612,6 +612,7 @@ private class Geary.ImapDB.Account : BaseObject {
                 exclude_folderless,
                 limit, offset
             );
+            debug("Search SQL: %s", stmt.get_expanded_sql());
             Db.Result result = stmt.exec(cancellable);
             while (!result.finished) {
                 int64 message_id = result.int64_at(0);


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