[Sqlrelay-discussion] PHP Pear SQLRelay driver patch
Brought to you by:
mused
|
From: Gena01 <ge...@gm...> - 2005-12-09 16:19:45
|
I found out about SQLRelay recently. So I tried to set it up and get our
stuff running against it. I grabbed the latest stable release from download
section. It seems that the Pear driver for SQL relay in 26.4 is quite buggy=
.
So i went and pulled the code from cvs. There are still some bugs in that
code that I found and fixed in my copy.
Specifically:
function prepare($query)
{
$cursor =3D sqlrcur_alloc($this->connection);
sqlrcur_setResultSetBufferSize($cursor,100);
sqlrcur_prepareQuery($cursor, $query);
return new DB_sqlrelay_cursor($cursor,$connection); <--- no such
variable, should be $this->connection
}
What do I need to do to get Prepared Statements to work. Esp in Pear the
ones that look like
SELECT a
FROM table
WHERE id =3D ?
Thank you,
Gena01
|