Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix strange exception message in Mysqli connection #5736

Merged
merged 1 commit into from

2 participants

@jaapio

Calling commit before rollback is obvious strange

@Maks3w Maks3w was assigned by jaapio
@Maks3w Maks3w merged commit a349f41 into zendframework:develop

1 check passed

Details default The Travis CI build passed
@jaapio jaapio deleted the youngguns-nl:exception_typo branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 22, 2014
  1. @jaapio

    fix strange exception message

    jaapio authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  library/Zend/Db/Adapter/Driver/Mysqli/Connection.php
View
2  library/Zend/Db/Adapter/Driver/Mysqli/Connection.php
@@ -284,7 +284,7 @@ public function rollback()
}
if (!$this->inTransaction) {
- throw new Exception\RuntimeException('Must call commit() before you can rollback.');
+ throw new Exception\RuntimeException('Must call beginTransaction() before you can rollback.');
}
$this->resource->rollback();
Something went wrong with that request. Please try again.