[tracker/tracker-0.10] libtracker-data: Add check for eof at end of ASK queries
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] libtracker-data: Add check for eof at end of ASK queries
- Date: Thu, 14 Apr 2011 15:16:16 +0000 (UTC)
commit c425d6991f0d89b5b0274de17e6c88008d6771b1
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Apr 11 15:18:58 2011 +0200
libtracker-data: Add check for eof at end of ASK queries
src/libtracker-data/tracker-sparql-query.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index 79e8bcb..5bbc079 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -557,6 +557,8 @@ public class Tracker.Sparql.Query : Object {
throw get_error ("invalid use of %s in ASK".printf (last().to_string()));
}
+ expect (SparqlTokenType.EOF);
+
context = context.parent_context;
return sql.str;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]