After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 759361 - Doesn't complain about unbound variable in COUNT()
Doesn't complain about unbound variable in COUNT()
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: General
1.6.x
Other All
: Normal normal
: ---
Assigned To: tracker-general
tracker-general
Depends on:
Blocks:
 
 
Reported: 2015-12-11 16:18 UTC by Debarshi Ray
Modified: 2016-09-06 16:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libtracker-data: Ensure variables are defined in aggregate expressions (1.22 KB, patch)
2016-06-04 23:46 UTC, Carlos Garnacho
committed Details | Review

Description Debarshi Ray 2015-12-11 16:18:02 UTC
Today I learnt that "SELECT ?u COUNT(?foo) WHERE {?u a rdfs:Resource}" yields the same results as "SELECT ?u COUNT(?u) WHERE {?u a rdfs:Resource}". It doesn't complain about ?foo being unbound.
Comment 1 Carlos Garnacho 2016-06-04 23:46:13 UTC
Created attachment 329141 [details] [review]
libtracker-data: Ensure variables are defined in aggregate expressions

Look those up and error out if they are undefined.
Comment 2 Carlos Garnacho 2016-06-21 14:36:05 UTC
Pushed the fix.

Attachment 329141 [details] pushed as 003f7fd - libtracker-data: Ensure variables are defined in aggregate expressions