summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-07 06:34:48 +0000
committerDavid Robillard <d@drobilla.net>2007-04-07 06:34:48 +0000
commitf649db6cde35b90daa9d2144c0db22405d6584f6 (patch)
tree6288de054661a9514c9b515cccace04398085693
parentad8fed85dac7a0c30c425e99738e0ad25e0f45a0 (diff)
downloadlilv-f649db6cde35b90daa9d2144c0db22405d6584f6.tar.gz
lilv-f649db6cde35b90daa9d2144c0db22405d6584f6.tar.bz2
lilv-f649db6cde35b90daa9d2144c0db22405d6584f6.zip
Fixed query bug when referring to ports by symbol.
git-svn-id: http://svn.drobilla.net/lad/slv2@412 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/port.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/port.c b/src/port.c
index 8a298d7..71b55a9 100644
--- a/src/port.c
+++ b/src/port.c
@@ -118,12 +118,13 @@ slv2_port_get_value(SLV2Plugin p,
result = slv2_plugin_simple_query(p, query, "value");
free(query);
+
} else {
char* query = slv2_strjoin(
"SELECT DISTINCT ?value WHERE { \n"
"plugin: lv2:port ?port . \n"
- "?port lv2:symbol ", id.symbol, " ;\n\t",
+ "?port lv2:symbol \"", id.symbol, "\" ;\n\t",
property, " ?value . \n}\n", NULL);
result = slv2_plugin_simple_query(p, query, "value");