From 1a7c52fe195785ace73c497b3c54ba7509f71e02 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 18 Mar 2003 22:51:22 +0000 Subject: Possible workaround for affected rows ... must test this git-svn-id: file:///svn/phpbb/trunk@3673 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/db/firebird.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'phpBB/includes/db/firebird.php') diff --git a/phpBB/includes/db/firebird.php b/phpBB/includes/db/firebird.php index 6ff0f5d12e..19d2e47c8c 100644 --- a/phpBB/includes/db/firebird.php +++ b/phpBB/includes/db/firebird.php @@ -278,12 +278,12 @@ class sql_db // Other query methods function sql_numrows($query_id = false) { - return 0; + return FALSE; } function sql_affectedrows() { - return 0; + return ($this->query_result !== FALSE) ? TRUE : FALSE; // Does this work? } function sql_fetchrow($query_id = 0) @@ -313,7 +313,7 @@ class sql_db { unset($this->rowset[$query_id]); unset($this->row[$query_id]); - while($this->rowset[$query_id] = get_object_vars(@ibase_fetch_object($query_id)) + while($this->rowset[$query_id] = get_object_vars(@ibase_fetch_object($query_id))) { $result[] = $this->rowset[$query_id]; } @@ -415,7 +415,7 @@ class sql_db 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); + 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); } function sql_error($sql = '') -- cgit v1.2.1