Permalink
Browse files

Add in_transaction method. classes/db.php

  • Loading branch information...
yuki tamazawa
yuki tamazawa committed Jul 13, 2012
1 parent c209238 commit 8ca0b3d7e3fd8f9230168312f831d0897d148c59
Showing with 13 additions and 0 deletions.
  1. +13 −0 classes/db.php
View
@@ -324,6 +324,19 @@ public static function set_charset($charset, $db = null)
\Database_Connection::instance($db)->set_charset($charset);
}
/**
* Checking a transaction on instance
*
* DB::in_transaction();
*
* @param string db connection
* @return bool
*/
public static function in_transaction($db = null)
{
return \Database_Connection::instance($db)->in_transaction();
}
/**
* Begins a transaction on instance
*

0 comments on commit 8ca0b3d

Please sign in to comment.