From: Tobias Oetiker Date: Thu, 3 Mar 2011 07:04:19 +0000 (+0000) Subject: do not mistake "sqlxxabc.rrd" for a libdbi specification -- Peter Stamfest X-Git-Tag: 1.4.6~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b89b774296fa54dded6a05ab775d5170e279fd1e;p=thirdparty%2Frrdtool-1.x.git do not mistake "sqlxxabc.rrd" for a libdbi specification -- Peter Stamfest git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2177 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c index 90f2f2c2..25f47e1b 100644 --- a/src/rrd_fetch.c +++ b/src/rrd_fetch.c @@ -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