? Pending
Pull Request for # 11280

User tests: Successful: Unsuccessful:

avatar williamsandy
williamsandy
31 Aug 2016

Change to use native error code for exceptions instead of the driver specific SQLSTATE value because this value is not always am integer

avatar williamsandy williamsandy - open - 31 Aug 2016
avatar williamsandy williamsandy - change - 31 Aug 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Aug 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 31 Aug 2016
Category Libraries
avatar williamsandy
williamsandy - comment - 31 Aug 2016

Created this PR for issue #11280
SQLSTATE as seen here it is not always a number MSDN article

So if you are passing the SQLSTATE value '42S22' for error 'Column not found', '42S01' for error 'Base table or view not found' or even 'HY000' for 'General error' into RuntimeException for the error code that will be problematic as it is expecting an integer.

avatar williamsandy williamsandy - change - 31 Aug 2016
The description was changed
avatar williamsandy williamsandy - edited - 31 Aug 2016
avatar mbabker
mbabker - comment - 31 Aug 2016

Based on the PHP documentation this looks fine to me. Don't have a Windows box to test this against though.

avatar mbabker mbabker - change - 31 Aug 2016
Rel_Number 0 11280
Relation Type Pull Request for
avatar waader waader - test_item - 31 Aug 2016 - Tested successfully
avatar waader
waader - comment - 31 Aug 2016

I have tested this item successfully on

I could reproduce the problem described in #11280 and this patch resolves it. Thanks!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11860.

avatar alikon alikon - test_item - 31 Aug 2016 - Tested successfully
avatar alikon
alikon - comment - 31 Aug 2016

I have tested this item successfully on

on code review + for documentation


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11860.

avatar zero-24 zero-24 - change - 31 Aug 2016
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 31 Aug 2016

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11860.

avatar joomla-cms-bot joomla-cms-bot - change - 31 Aug 2016
Labels Added: ?
avatar rdeutz rdeutz - change - 31 Aug 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-08-31 19:58:10
Closed_By rdeutz
avatar rdeutz rdeutz - close - 31 Aug 2016
avatar rdeutz rdeutz - merge - 31 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - close - 31 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - change - 31 Aug 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment