@@ 522-532 (lines=11) @@ | ||
519 | $lastTransaction = $statement; |
|
520 | $this->statements[] = $statement; |
|
521 | } elseif ($statement->type === TransactionStatement::TYPE_END) { |
|
522 | if ($lastTransaction === null) { |
|
523 | // Even though an error occurred, the query is being |
|
524 | // saved. |
|
525 | $this->statements[] = $statement; |
|
526 | $this->error( |
|
527 | 'No transaction was previously started.', |
|
528 | $token |
|
529 | ); |
|
530 | } else { |
|
531 | $lastTransaction->end = $statement; |
|
532 | } |
|
533 | $lastTransaction = null; |
|
534 | } |
|
535 | ||
@@ 545-549 (lines=5) @@ | ||
542 | $statement->validateClauseOrder($this, $list); |
|
543 | ||
544 | // Finally, storing the statement. |
|
545 | if ($lastTransaction !== null) { |
|
546 | $lastTransaction->statements[] = $statement; |
|
547 | } else { |
|
548 | $this->statements[] = $statement; |
|
549 | } |
|
550 | $lastStatement = $statement; |
|
551 | } |
|
552 | } |