aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/firebird.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-01-09 01:33:20 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-01-09 01:33:20 +0000
commit5cf6e00cf9e9aedfb293f1e9da228aefc37d70f8 (patch)
treeca2154e10cea3e9249ca477f3944a5eac2f95b8d /phpBB/includes/db/firebird.php
parent27f915f305a2fc02ca33c34ceeb7c9ae3e119e99 (diff)
downloadforums-5cf6e00cf9e9aedfb293f1e9da228aefc37d70f8.tar
forums-5cf6e00cf9e9aedfb293f1e9da228aefc37d70f8.tar.gz
forums-5cf6e00cf9e9aedfb293f1e9da228aefc37d70f8.tar.bz2
forums-5cf6e00cf9e9aedfb293f1e9da228aefc37d70f8.tar.xz
forums-5cf6e00cf9e9aedfb293f1e9da228aefc37d70f8.zip
- installer now checks if the page size is correct for Firebird
- Firebird now has a proper explain page git-svn-id: file:///svn/phpbb/trunk@6863 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/firebird.php')
-rw-r--r--phpBB/includes/db/firebird.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/phpBB/includes/db/firebird.php b/phpBB/includes/db/firebird.php
index 7fd034c7dc..60fa366b7f 100644
--- a/phpBB/includes/db/firebird.php
+++ b/phpBB/includes/db/firebird.php
@@ -97,6 +97,12 @@ class dbal_firebird extends dbal
{
global $cache;
+ // EXPLAIN only in extra debug mode
+ if (defined('DEBUG_EXTRA'))
+ {
+ $this->sql_report('start', $query);
+ }
+
$this->last_query_text = $query;
$this->query_result = ($cache_ttl && method_exists($cache, 'sql_load')) ? $cache->sql_load($query) : false;
$this->sql_add_num_queries($this->query_result);
@@ -108,6 +114,11 @@ class dbal_firebird extends dbal
$this->sql_error($query);
}
+ if (defined('DEBUG_EXTRA'))
+ {
+ $this->sql_report('stop', $query);
+ }
+
if (!$this->transaction)
{
if (function_exists('ibase_commit_ret'))
@@ -131,6 +142,10 @@ class dbal_firebird extends dbal
$this->open_queries[(int) $this->query_result] = $this->query_result;
}
}
+ else if (defined('DEBUG_EXTRA'))
+ {
+ $this->sql_report('fromcache', $query);
+ }
}
else
{