phpLens
 home  products examples manual  faq support forum  contact news  login store

Forums: phplens   adodb
Forums:   ADOdb Help & Dev:   Replies 
New ReplySearch
Topic: possible bug 5.17 postgres metaColumnsSQL
author: Richard Greenwood   created: 05-06-2012 05:43:37 PM
I'm getting a warning with 5.17:

Warning: sprintf(): Too few arguments in E:\Data\adodb5\drivers\adodb-postgres64.inc.php on line 487


$this->metaColumnsSQL seems to be the culprit. It is significantly different than in 5.11. I think that the '%' characters may be throwing sprintf off but that's as far as I've gotten so far.

Thanks,
Rich
Topic: Re:possible bug 5.17 postgres metaColumnsSQL
author: Richard Greenwood   created: 05-06-2012 09:39:09 PM
A little more info - the warning seems to first appear in version 5.16 and I've tested with postgres 9.0 and 9.1

Thanks,
Rich
Topic: Re:possible bug 5.17 postgres metaColumnsSQL
author: John Lim   created: 18-06-2012 01:02:11 AM
Hi, This will be fixed in 5.18. Yes you're right about the bug.

Change the line to

else $rs = $this->Execute(sprintf($this->metaColumnsSQL,$table,$table,$table));
Page 1
New ReplySearch

View Source

email: contact#phplens.com (change # to @)     telephone (malaysia): 60-3-7947 2888     fax (malaysia): 60-3-7947 2800