summaryrefslogtreecommitdiffstats
path: root/database/sqlite/edb-sqlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'database/sqlite/edb-sqlite.c')
-rw-r--r--database/sqlite/edb-sqlite.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/database/sqlite/edb-sqlite.c b/database/sqlite/edb-sqlite.c
index d544a8c..b35d00d 100644
--- a/database/sqlite/edb-sqlite.c
+++ b/database/sqlite/edb-sqlite.c
@@ -1288,11 +1288,17 @@ eurephiaVALUES *eDBget_plugins(eurephiaCTX *ctx, const char *plgtype) {
DEBUG(ctx, 20, "Function call eDBget_plugins(ctx, '%s')", plgtype);
+ /* Format of the plug-in information: [<dso-filename>]<config string> */
+
res = sqlite_query(ctx,
- "SELECT plgid, plgdsofile"
+ "SELECT plgid, "
+ "CASE WHEN plgconfig IS NULL"
+ " THEN '[' || plgdsofile || ']'"
+ " ELSE '[' || plgdsofile || ']' || plgconfig END"
" FROM eurephia_plugins"
" WHERE plgenabled = 't' "
" AND plgtype = '%q'", plgtype);
+
if( sqlite_query_status(res) == dbSUCCESS ) {
ret = eCreate_value_space(ctx, 21);
for( i = 0; i < sqlite_get_numtuples(res); i++ ) {