diff options
Diffstat (limited to 'src/query.c')
-rw-r--r-- | src/query.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/query.c b/src/query.c index ddaf648..da9239d 100644 --- a/src/query.c +++ b/src/query.c @@ -50,8 +50,8 @@ slv2_query_lang_filter(const uchar* variable) // FILTER( LANG(?value) = "en" || LANG(?value) = "" ) result = ustrjoin( //U("FILTER (lang(?value) = \""), lang, U("\")\n"), 0); - U("FILTER( lang(?value) = \""), lang, - U("\" || lang(?value) = \"\" )\n"), NULL); + U("FILTER( lang(?"), variable, U(") = \""), lang, + U("\" || lang(?"), variable, U(") = \"\" )\n"), NULL); } return result; @@ -122,3 +122,11 @@ slv2_query_get_results(rasqal_query_results* results) return result; } +void +slv2_property_free(struct _Property* prop) +{ + //struct _Property* prop = (struct _Property*)property; + free(prop->values); + free(prop); +} + |