bugfix: don't crash if nested transactions are enabled, and the first command issued is a start transaction

This commit is contained in:
Sergey Tsalkov
2014-03-31 01:50:10 -07:00
parent 2707bcba7d
commit a0a2f702e2

View File

@@ -201,7 +201,7 @@ class MeekroDB {
$this->success_handler = $handler; $this->success_handler = $handler;
} }
public function serverVersion() { return $this->server_info; } public function serverVersion() { $this->get(); return $this->server_info; }
public function transactionDepth() { return $this->nested_transactions_count; } public function transactionDepth() { return $this->nested_transactions_count; }
public function insertId() { return $this->insert_id; } public function insertId() { return $this->insert_id; }
public function affectedRows() { return $this->affected_rows; } public function affectedRows() { return $this->affected_rows; }