summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_dbi.class7
1 files changed, 4 insertions, 3 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 0aedb07..918fc4c 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -221,7 +221,7 @@ function _connect($p = array())
$this->_fatal("_connect(): can't select database \"{$p['db']}\"");
$state['link'] = $this->_link;
- it_dbi::_state_put($dbid, $state);
+ it_dbi::_state_put($dbid, $state, false); # Store only locally as link is not shared anyway
}
}
@@ -759,11 +759,12 @@ function _state_get($dbid)
return $result;
}
-function _state_put($dbid, $state)
+function _state_put($dbid, $state, $shared = true)
{
#var_dump("put", $dbid, $state);
$GLOBALS['it_dbi']->_state[$dbid] = $state;
- it_cache::put("dbi:$dbid", array('link' => null) + (array)$state); # link is not transferable
+ if ($shared)
+ it_cache::put("dbi:$dbid", array('link' => null) + (array)$state); # link is not transferable
}
function _state_purgeshared($dbid)