Re: [Sqlrelay-discussion] Pear class error
Brought to you by:
mused
From: David M. <dav...@fi...> - 2005-08-26 03:24:34
|
I applied your patches and I believe I've fixed this issue now too. You might give http://www.firstworks.com/sqlrelay-0.37pre2.tar.gz a try, or just extract the php pear db driver from src/api/phppeardb/sqlrelay.php from it and try it with the your current version. Dave dav...@fi... On Sat, 2005-08-13 at 12:56 +0000, david forums wrote: > I got the following error : > Warning: Illegal offset type in unset in /usr/share/pear/DB/sqlrelay.php > on line 416 > > the code their is the following : > // $sqlrcursor is a prepared query handle > $sqlrcursor = (int)$sqlrcursor; > 416-> if (!isset($this->prepare_tokens[$sqlrcursor])) { > return false; > } > > as you see this is the tested case when a query has been prepared. > > But concerning the class prepare, it seems that you overwrite the class > like that : > function prepare($query) > { > $cursor = sqlrcur_alloc($this->connection); > sqlrcur_setResultSetBufferSize($cursor,100); > sqlrcur_prepareQuery($cursor, $query); > return new DB_sqlrelay_cursor($cursor,$this->connection); > } > > looking at this code we see that you do not call the prepare method > describe in common.php. > > And by it, you do not declare any more a value for ($this->prepare_tokens). > > > I don't sure at 100% but I suppose the matter is there. > > If you could provide a new version correcting this. > > thanks in advance > > regards > > david > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Sqlrelay-discussion mailing list > Sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion > |