CodeIgniter-Chinese / CodeIgniter

开源 PHP 框架 CodeIgniter 中国社区分支
http://codeigniter.org.cn/
MIT License
65 stars 26 forks source link

PDO trans bug #3

Closed keethebest closed 10 years ago

keethebest commented 11 years ago

PDO driver does not automatically enable transaction, even worse, the constructor disables transaction (line #84pdo_driver.php).

$this->trans_enabled = FALSE;

But, the driver does not have the interface/public methods to re-enable transaction. This causes all transactioncan not be rolled back.

is this a bug?I change like below and its works. $this->trans_enabled = TRUE;

IS IT A BUG OR TRANS IS CLOSED intentionally?