Skip to content

Commit 1f45192

Browse files
authoredNov 29, 2017
fixes (#698)
* fixed limit variable ordering in the comments * Expand readme on autoreconnect and multipe connections usage * update release numbers * update copyright years * Bug #623: Mistake in Regexp * Fix for #554 Fixing Join usage with 'USING' instead of 'ON' * Fix empty exception message * fix a typo * Added LIKE case description into readme * do not reset connection name when transtation is on * 2.9 release
1 parent 39d06d9 commit 1f45192

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

Diff for: ‎MysqliDb.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @copyright Copyright (c) 2010-2017
1111
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
1212
* @link http://github.com/joshcam/PHP-MySQLi-Database-Class
13-
* @version 2.9-master
13+
* @version 2.9
1414
*/
1515

1616
class MysqliDb
@@ -416,7 +416,9 @@ protected function reset()
416416
$this->_lastInsertId = null;
417417
$this->_updateColumns = null;
418418
$this->_mapKey = null;
419-
$this->defConnectionName = 'default';
419+
if(!$this->_transaction_in_progress ) {
420+
$this->defConnectionName = 'default';
421+
}
420422
$this->autoReconnectCount = 0;
421423
return $this;
422424
}

0 commit comments

Comments
 (0)