|
From: Paul S. O. <ps...@us...> - 2003-03-18 22:51:31
|
Update of /cvsroot/phpbb/phpBB2/includes/db
In directory sc8-pr-cvs1:/tmp/cvs-serv8205/includes/db
Modified Files:
firebird.php
Log Message:
Possible workaround for affected rows ... must test this
Index: firebird.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/db/firebird.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** firebird.php 17 Mar 2003 23:05:17 -0000 1.2
--- firebird.php 18 Mar 2003 22:51:22 -0000 1.3
***************
*** 279,288 ****
function sql_numrows($query_id = false)
{
! return 0;
}
function sql_affectedrows()
{
! return 0;
}
--- 279,288 ----
function sql_numrows($query_id = false)
{
! return FALSE;
}
function sql_affectedrows()
{
! return ($this->query_result !== FALSE) ? TRUE : FALSE; // Does this work?
}
***************
*** 314,318 ****
unset($this->rowset[$query_id]);
unset($this->row[$query_id]);
! while($this->rowset[$query_id] = get_object_vars(@ibase_fetch_object($query_id))
{
$result[] = $this->rowset[$query_id];
--- 314,318 ----
unset($this->rowset[$query_id]);
unset($this->row[$query_id]);
! while($this->rowset[$query_id] = get_object_vars(@ibase_fetch_object($query_id)))
{
$result[] = $this->rowset[$query_id];
***************
*** 416,420 ****
function sql_escape($msg)
{
! return (@ini_get('magic_quotes_sybase') || strtoupper(@ini_get('magic_quotes_sybase')) = 'ON') ? str_replace($replace_min('match'), $replace_min('replace'), $msg) : str_replace($replace_max('match'), $replace_max('replace'), $msg);
}
--- 416,420 ----
function sql_escape($msg)
{
! return (@ini_get('magic_quotes_sybase') || strtoupper(@ini_get('magic_quotes_sybase')) == 'ON') ? str_replace($replace_min('match'), $replace_min('replace'), $msg) : str_replace($replace_max('match'), $replace_max('replace'), $msg);
}
|