GNOME Bugzilla – Bug 697517
Select X as Y broke when using fts.
Last modified: 2013-04-09 18:42:14 UTC
A simple query like "select nie:url(?s) as url where { ?s fts:match 'network' }" will return the error: 'Could not run query, near "AS": syntax error' Doing a bisect I discovered that commit 1943dfb0 is responsible for the error.
I believe Carlos fixed this in tracker-0.16 branch recently (and in master): commit 9f80a3e08519134ad6ba41d847ea55319757f4bd Author: Carlos Garnacho <carlosg@gnome.org> Date: Mon Apr 8 15:43:20 2013 +0200 Fix AS ?foo handling in FTS queries FTS queries implicitly add an "AS var" clause to the translated SQL select query so values can be matched with the outer query that accesses FTS tables, which resulted in doubly added AS clauses if it was specified explicitly in SPARQL too. So, make sure the clause is just added once.
(In reply to comment #1) > I believe Carlos fixed this in tracker-0.16 branch recently (and in master): I can confirm it is fixed.