Code

do not mistake "sqlxxabc.rrd" for a libdbi specification -- Peter Stamfest
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 3 Mar 2011 07:04:19 +0000 (07:04 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 3 Mar 2011 07:04:19 +0000 (07:04 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2177 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_fetch.c

index 90f2f2c2607317905e569cfb0d4169a70c724606..25f47e1bd8e09fcb9bf8d53592b136e80d40edbd 100644 (file)
@@ -237,10 +237,8 @@ int rrd_fetch_fn(
 
 #ifdef HAVE_LIBDBI
     /* handle libdbi datasources */
-    if (strncmp("sql",filename,3)==0) {
-      if (filename[3]==filename[4]) {
+    if (strncmp("sql//",filename,5)==0) {
        return rrd_fetch_fn_libdbi(filename,cf_idx,start,end,step,ds_cnt,ds_namv,data);
-      }
     }
 #endif