Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Remove HY000 from database failure states: #20

Merged
merged 1 commit into from
Feb 7, 2014

Conversation

matt-blanchette
Copy link
Contributor

  • Reverts changes in cc30c87
  • HY000 is a very generic error that some databases or drivers will return it for any error that has no specific sql state, such as mysql
  • the entire connection pool should not be killed when this code refers to benign errors
  • mysql docs: Not all MySQL error numbers have corresponding SQLSTATE values. In these cases, 'HY000' (general error) is used.
  • HY000 was originally added for firebird in 37b3b7c

* Reverts changes in cc30c87
* HY000 is a very generic error that some databases or drivers will return it for any error that has no specific sql state, such as mysql
* the entire connection pool should not be killed when this code refers to benign errors
* mysql docs: Not all MySQL error numbers have corresponding SQLSTATE values. In these cases, 'HY000' (general error) is used.
* HY000 was originally added for firebird in 37b3b7c
@matt-blanchette
Copy link
Contributor Author

This fixes bug # 1258339:
https://bugs.launchpad.net/bonecp/+bug/1258339

@matt-blanchette
Copy link
Contributor Author

But this may break the intended fix for bug # 753576:
https://bugs.launchpad.net/bonecp/+bug/753576

@francisdb
Copy link

Thanks for fixing the issue I reported. Since I'm using playframework 2 I have nothing but problems with bonecp closed connections.

@francisdb
Copy link

by the way, the exception swallowing mentioned in https://bugs.launchpad.net/bonecp/+bug/1258339 is still not fixed by this

wwadge added a commit that referenced this pull request Feb 7, 2014
Remove HY000 from database failure states:
@wwadge wwadge merged commit 597922f into wwadge:master Feb 7, 2014
@wwadge
Copy link
Owner

wwadge commented Feb 7, 2014

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants