public function rollBack()
 {
     $return = $this->connection->rollBack();
     if (self::$need_record_db_name_in_one_transaction) {
         self::$db_name_list_in_one_transaction = array();
         self::$need_record_db_name_in_one_transaction = false;
     }
     $this->connection->setAttribute(PDO::ATTR_AUTOCOMMIT, true);
     $this->this_operation_have_transaction = false;
     return $return;
 }
Beispiel #2
0
 private function setDBConn($db)
 {
     if (!isset($this->connections[$db])) {
         if ($this->getUseMysqliExtend()) {
             $this->connections[$db] = cls_sqlexecute::getInstance($db, $this->config_array);
         } else {
             $this->connections[$db] = cls_pdosqlexecute::getInstance($db, $this->config_array);
         }
     }
 }