diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-03-18 22:51:22 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-03-18 22:51:22 +0000 |
commit | 1a7c52fe195785ace73c497b3c54ba7509f71e02 (patch) | |
tree | 9a21441655acfb3c276048dd55afc6d6557b1bd5 /phpBB/includes/db/firebird.php | |
parent | eff4e2e818024407bd3838c1754681641b617d48 (diff) | |
download | forums-1a7c52fe195785ace73c497b3c54ba7509f71e02.tar forums-1a7c52fe195785ace73c497b3c54ba7509f71e02.tar.gz forums-1a7c52fe195785ace73c497b3c54ba7509f71e02.tar.bz2 forums-1a7c52fe195785ace73c497b3c54ba7509f71e02.tar.xz forums-1a7c52fe195785ace73c497b3c54ba7509f71e02.zip |
Possible workaround for affected rows ... must test this
git-svn-id: file:///svn/phpbb/trunk@3673 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/firebird.php')
-rw-r--r-- | phpBB/includes/db/firebird.php | 8 |
1 files changed, 4 insertions, 4 deletions
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 = '') |