[tracker] SPARQL: Report syntax error on single ^ in query
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] SPARQL: Report syntax error on single ^ in query
- Date: Mon, 9 Nov 2009 11:00:22 +0000 (UTC)
commit 63ae7a6fe1c2d63ed10738891c4da745dd6be07a
Author: Jürg Billeter <j bitron ch>
Date: Mon Nov 9 11:57:40 2009 +0100
SPARQL: Report syntax error on single ^ in query
src/libtracker-data/tracker-sparql-scanner.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-scanner.vala b/src/libtracker-data/tracker-sparql-scanner.vala
index e3a5429..bc39ca7 100644
--- a/src/libtracker-data/tracker-sparql-scanner.vala
+++ b/src/libtracker-data/tracker-sparql-scanner.vala
@@ -683,6 +683,8 @@ public class Tracker.SparqlScanner : Object {
if (current < end - 2 && current[0] == current[1]) {
type = SparqlTokenType.DOUBLE_CIRCUMFLEX;
current += 2;
+ } else {
+ throw new SparqlError.PARSE ("%d.%d: syntax error, unexpected character", line, column);
}
break;
case '_':
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]