GNOME Bugzilla – Bug 745917
Support fn:replace()
Last modified: 2015-03-12 13:51:29 UTC
fn:replace() sounds like something useful to have, I'm attaching a patch that implements this partially (no regex support) by using the sqlite replace() function underneath
Created attachment 298912 [details] [review] libtracker-data: Support fn:replace() In a limited form, no regex support.
With the patch: [carlos@anacleto ~]$ tracker sparql -q "select fn:replace('abcdc', 'c', 'FOO') {}" Results: abFOOdFOO
Review of attachment 298912 [details] [review]: You rock Carlos ;) Wanted this feature for a while and never got around to it! We need to commit this soon if we're to get it in before the hard code freeze. I feel a 1.3.6 release coming on :)
Cheers! This is kind of a "new feature", but OTOH better sparql1.1 compliance isn't much of a feature once we got our toes in. Attachment 298912 [details] pushed as 5d777e6 - libtracker-data: Support fn:replace()