X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_fetch.c;h=bbb5314f3f87182a96b6f0c732bebff2c3211f12;hb=e99b152422682f6bf2b501c75f32d4584a60249c;hp=6745680901491f26aeb987d68605131aad8c3604;hpb=8376d76a350448c3bbf1258d76ac6bd52c60ec46;p=rrdtool.git diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c index 6745680..bbb5314 100644 --- a/src/rrd_fetch.c +++ b/src/rrd_fetch.c @@ -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