Code

even with libdbi enabled, do not mistake "sqlxxabc.rrd" for an sql url -- Peter Stamfest
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 3 Mar 2011 06:53:05 +0000 (06:53 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 3 Mar 2011 06:53:05 +0000 (06:53 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2176 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_fetch.c

index 6745680901491f26aeb987d68605131aad8c3604..bbb5314f3f87182a96b6f0c732bebff2c3211f12 100644 (file)
@@ -240,10 +240,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