Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
database system
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
3 Nov 2012 at 20:48 UTC
Updated:
29 Jul 2014 at 21:27 UTC
Jump to comment: Most recent file
Comments
Comment #2
sunAttached patch fixes the hidden PDO error under the hood.
It does not change the fact that the DatabaseExceptionWrapper hides logical code errors from developers, instead of only catching database, connection, and statement exceptions that relate to an actual database/query operation.
Comment #3
sunOh, and yeah, color me extremely confused regarding how this is able to work at all right now:
DatabaseStatementInterface only existed in D7. StatementInterface is also not imported or aliased in any way.
Comment #4
sunFixed typos/phpDoc.
Comment #5
chx commentedAdded tests. Assigning to Crell for review. Re #3 StatementInterface is also not imported because it lives in the same namespace as Connection. Re #2 that's a much bigger bag of hurt.
Edit: this test is dedicated to webchick ;)
Comment #6
Crell commentedPDO is really screwy at times... *sigh*
Comment #7
catchLooks good to me, not sure how this wasn't blowing up in the first place. Committed/pushed to 8.x.
Comment #8
chx commentedIt wasnt blowing up because #0 is just theoretical code, it's not something we had and that the wrong exception was thrown (or fatal?), that's a rare case which wasnt tested.
Comment #9
catchOh no I meant the StatementInterface vs. DatabaseStatementInterface change.