From: oetiker Date: Thu, 3 Mar 2011 06:53:05 +0000 (+0000) Subject: even with libdbi enabled, do not mistake "sqlxxabc.rrd" for an sql url -- Peter Stamfest X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ad2c0b1adc29eda2ca2d57899ab16e7bbcc86392;p=rrdtool-all.git even with libdbi enabled, do not mistake "sqlxxabc.rrd" for an sql url -- Peter Stamfest git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@2176 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_fetch.c b/program/src/rrd_fetch.c index 67456809..bbb5314f 100644 --- a/program/src/rrd_fetch.c +++ b/program/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