Hi Alexandre,

I noticed a bug with installed package tutorial. Here is how to reproduce
the bug :
  - start from a fresh install of Virtuoso 5.0.9-rc4
  - from the conductor, install the tutorial package
  - from isql, try the following query :

----------------------------------------------
SQL> sparql SELECT * WHERE { GRAPH ?g { ?s ?p ?o } };

*** Error 37000: [Virtuoso Driver][Virtuoso Server]SQ074: Line 1: syntax
error at 'WHEREDB' before '.'
at line 1 of Top-Level:
sparql SELECT * WHERE { GRAPH ?g { ?s ?p ?o } }
----------------------------------------------

Dump the corresponding SQL query and change every occurrence of 'WHEREDB' by
'WHERE DB' (missing only a space character). Try again with this new SQL
query and we have the expected result.

The problem arrives as soon as we use the GRAPH keyword.

Thank you for reporting this.

If you need a workaround for this problem, please edit the file libsrc/Wi/sparql2sqltext.c around line 5503 and change:

  ssg->ssg_where_l_text = " WHERE";

into:

  ssg->ssg_where_l_text = " WHERE ";

I have asked the virtuoso team to check this code further and the full patch will be part of the upcoming release.


Patrick

Reply via email to