Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user error stack, optional params #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

TobiasNickel
Copy link

@TobiasNickel TobiasNickel commented Jun 18, 2016

changes in dimainDaoSupport, to allow params as optional parameter. if params is not passed the result was directly the mysql result-list and the connection was not returned to the pool

second is for debugging.
when there is an error, if was impossible to see where the error came from in the users project.
the error-stack has only shown from mysql-getConnection over pomelo to mysql query.
now it will also provide information, where the user of Bearcat dao has triggered the query.

Both changes are not breaking any API and are fully compatible with existing projects

before, users of bearcat-dao get an error from
mysql-lib, but don't know what of there code
coursed that error.
in our team, we had a few times the problem, that
the developer want to execute a specific query,
that is not using any parameter.

now it is necessary to pass an empty object or array
to the methods. (mostly get list) but they will not
receive a Bearcat object, but directly the mySQL result.

it will also course that the used mySQL-connection
will not get released to the pool. (is locket forever)
@TobiasNickel
Copy link
Author

is this project no longer maintained?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant