diff options
author | Christian Schneider | 2008-07-29 13:27:05 +0000 |
---|---|---|
committer | Christian Schneider | 2008-07-29 13:27:05 +0000 |
commit | 02ea8d6332dd832fc96663da7eae27c849af53fb (patch) | |
tree | c728cfbb8d772c6659b6647d3f803c9823032c50 /it_dbi.class | |
parent | 03443412d7038a8a68da1137ea7e6b38fdbc728c (diff) | |
download | itools-02ea8d6332dd832fc96663da7eae27c849af53fb.tar.gz itools-02ea8d6332dd832fc96663da7eae27c849af53fb.tar.bz2 itools-02ea8d6332dd832fc96663da7eae27c849af53fb.zip |
Fix switch to update_server
Diffstat (limited to 'it_dbi.class')
-rw-r--r-- | it_dbi.class | 4 |
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 |