Permalink
Browse files

Trying without transaction for postgreSql

  • Loading branch information...
1 parent 6c54a87 commit df324f14ea3fab3850ac4acbbfd274c5ab79b210 @mnapoli committed Dec 14, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 tests/Doctrine/Tests/DBAL/Functional/Ticket/DBAL371Test.php
@@ -37,13 +37,11 @@ public function testException()
public function testExceptionCode()
{
$stmt = $this->_conn->prepare('INSERT INTO DBAL371 VALUES (1)');
- $this->_conn->beginTransaction();
$stmt->execute();
try {
$stmt->execute();
} catch(DBALException $e) {
$this->assertGreaterThan(0, $e->getCode());
}
- $this->_conn->rollback();
}
}

0 comments on commit df324f1

Please sign in to comment.