summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_dbi.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 80f0ce8..153fdd6 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -387,8 +387,8 @@ function query($query, $p = array())
if ($p['server_update'] && !preg_match('/^(EXPLAIN|SELECT|SHOW) /i', $query))
{
debug("switching to update server \"{$p['server_update']}\"", 5);
- $this->_p['server'] = $p['server_update'];
- unset($this->_p['server_update'], $this->_link);
+ $this->_p['server'] = $p['server'] = $p['server_update'];
+ unset($this->_p['server_update'], $p['server_update'], $this->_link);
}
$this->_connect($p); # must be called after update server switching code