[tracker/rss-enclosures] Revert "libtracker-data: Fixes NB#174591, Throw error on undefined variable in expressions"
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] Revert "libtracker-data: Fixes NB#174591, Throw error on undefined variable in expressions"
- Date: Sat, 26 Jun 2010 23:22:38 +0000 (UTC)
commit e890b89eedca084ff6c9d62d31dfa6f6708d741a
Author: Jürg Billeter <j bitron ch>
Date: Fri Jun 18 11:50:46 2010 +0200
Revert "libtracker-data: Fixes NB#174591, Throw error on undefined variable in expressions"
This reverts commit ff52af3dc6b72350f08f034d6e4245a6c54221b2.
This broke queries that used SELECT variables in ORDERY BY clauses.
src/libtracker-data/tracker-sparql-expression.vala | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-expression.vala b/src/libtracker-data/tracker-sparql-expression.vala
index 60e17de..ea5052f 100644
--- a/src/libtracker-data/tracker-sparql-expression.vala
+++ b/src/libtracker-data/tracker-sparql-expression.vala
@@ -870,9 +870,7 @@ class Tracker.Sparql.Expression : Object {
sql.append (variable.sql_expression);
if (variable.binding == null) {
- // NB#174591, I replaced `return PropertyType.UNKNOWN` with throw
- // make-test still works and the query now returns this error.
- throw get_error ("use of undefined variable `%s'".printf (variable.name));
+ return PropertyType.UNKNOWN;
} else {
return variable.binding.data_type;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]