summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrever Fischer <tdfischer@fedoraproject.org>2012-04-20 19:26:33 (GMT)
committerTrever Fischer <tdfischer@fedoraproject.org>2012-04-20 19:26:33 (GMT)
commit4ff35adae89620776cf6c57a69ecb072645ba42d (patch)
tree978ac5209d9414f5c34d2f3dc0f0bed8681fc820
parentc9b9d7dfdcf9064ed913a80e206b038e3a5b99fa (diff)
Print the executed query when using EXPLAIN
-rw-r--r--src/sql.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sql.vala b/src/sql.vala
index 224fde9..eab9289 100644
--- a/src/sql.vala
+++ b/src/sql.vala
@@ -293,6 +293,8 @@ namespace Zeitgeist.SQLite
rc = prepared_stmt.db_handle ().prepare_v2 (explain_sql, -1, out stmt);
assert_query_success(rc, "SQL error");
+ print ("%s\n", explain_sql);
+
while ((rc = stmt.step()) == Sqlite.ROW)
{
int select_id = stmt.column_int (0);