aboutsummaryrefslogtreecommitdiff
path: root/qlite
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-03-22 23:55:19 +0100
committerfiaxh <git@mx.ax.lt>2017-03-23 15:43:20 +0100
commit492baaf0845fee2495b9d181cd9fd50403eb61f8 (patch)
tree2d40fdcc5b86dfc1429fb660b2cfbc65b8a8f96b /qlite
parentfa78573b052693b29350bdd0f7eaf74dc6571e4a (diff)
downloaddino-492baaf0845fee2495b9d181cd9fd50403eb61f8.tar.gz
dino-492baaf0845fee2495b9d181cd9fd50403eb61f8.zip
Add back on subscription request
Diffstat (limited to 'qlite')
-rw-r--r--qlite/src/query_builder.vala2
-rw-r--r--qlite/src/row.vala3
2 files changed, 3 insertions, 2 deletions
diff --git a/qlite/src/query_builder.vala b/qlite/src/query_builder.vala
index 37f9b261..7259eddf 100644
--- a/qlite/src/query_builder.vala
+++ b/qlite/src/query_builder.vala
@@ -156,7 +156,7 @@ public class QueryBuilder : StatementBuilder {
}
public RowIterator iterator() throws DatabaseError {
- return new RowIterator.from_query_builder(this);
+ return new RowIterator.from_query_builder(db, this);
}
class OrderingTerm {
diff --git a/qlite/src/row.vala b/qlite/src/row.vala
index ed0552a0..60c7b666 100644
--- a/qlite/src/row.vala
+++ b/qlite/src/row.vala
@@ -56,7 +56,8 @@ public class RowIterator {
private Database db;
private Statement stmt;
- public RowIterator.from_query_builder(QueryBuilder query) throws DatabaseError {
+ public RowIterator.from_query_builder(Database db, QueryBuilder query) throws DatabaseError {
+ this.db = db;
this.stmt = query.prepare();
}