Skip to content

Conversation

@Ettemlevest
Copy link
Contributor

Adding mysqli error number to throwed exception in _prepareQuery() method.

Ettemlevest added 2 commits July 13, 2016 10:36
Syncing joshcam master
Adding mysqli error number to exception in _prepareQuery method
@avbdr
Copy link
Collaborator

avbdr commented Jul 13, 2016

I like an idea, but can you add numbers to the rest of exceptions?

More exception gets mysql error number with the second parameter:
connect()
queryUnprepared()
lock()
unlock()
@Ettemlevest
Copy link
Contributor Author

Added more error numbers to exceptions. There are 16 exception throws but not all can have mysql error number. Like the exceptions thrown in inc() or dec() methods.

Hope I didn't left out any important part.

@avbdr avbdr merged commit 64b5a57 into ThingEngineer:master Jul 13, 2016
@avbdr
Copy link
Collaborator

avbdr commented Jul 13, 2016

nice, thank you

@avbdr
Copy link
Collaborator

avbdr commented Jul 13, 2016

can you please update readme as well? :)

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.

2 participants