Merge pull request #1375 from jdssem/fix/db.class.php

변수명 오타 수정 transationNestedLevel->transactionNestedLevel
This commit is contained in:
bnu 2015-04-13 12:25:16 +09:00
commit 9233ad98eb

View file

@ -166,7 +166,7 @@ class DB
* leve of transaction * leve of transaction
* @var unknown * @var unknown
*/ */
private $transationNestedLevel = 0; private $transactionNestedLevel = 0;
/** /**
* returns instance of certain db type * returns instance of certain db type
@ -1137,10 +1137,10 @@ class DB
return; return;
} }
if($this->_begin($this->transationNestedLevel)) if($this->_begin($this->transactionNestedLevel))
{ {
$this->transaction_started = TRUE; $this->transaction_started = TRUE;
$this->transationNestedLevel++; $this->transactionNestedLevel++;
} }
} }
@ -1164,11 +1164,11 @@ class DB
{ {
return; return;
} }
if($this->_rollback($this->transationNestedLevel)) if($this->_rollback($this->transactionNestedLevel))
{ {
$this->transationNestedLevel--; $this->transactionNestedLevel--;
if(!$this->transationNestedLevel) if(!$this->transactionNestedLevel)
{ {
$this->transaction_started = FALSE; $this->transaction_started = FALSE;
} }
@ -1196,14 +1196,14 @@ class DB
{ {
return; return;
} }
if($this->transationNestedLevel == 1 && $this->_commit()) if($this->transactionNestedLevel == 1 && $this->_commit())
{ {
$this->transaction_started = FALSE; $this->transaction_started = FALSE;
$this->transationNestedLevel = 0; $this->transactionNestedLevel = 0;
} }
else else
{ {
$this->transationNestedLevel--; $this->transactionNestedLevel--;
} }
} }