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

Fix #1479 more verbose pdo driver missing errors for 4.0.x #1510

Merged

Conversation

Ultimater
Copy link
Member

Hello!

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the [Contributing Guidelines][:contrib:]
  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR

Small description of change:

If using a PDO driver such as Postgresql or Mysql, and it is not loaded when trying to go through the Phalcon adapter, PDO will error with the vague "could not find driver" which will leave developers on a quest to figure out what happened.
This PR will fix the vague issue for 4.0.x and it will instead show a much more detailed error.

Thanks

@codecov
Copy link

codecov bot commented Jul 7, 2021

Codecov Report

Merging #1510 (da6e5a3) into 4.0.x (c288f71) will increase coverage by 0.12%.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##           4.0.x   #1510      +/-   ##
========================================
+ Coverage   3.16%   3.29%   +0.12%     
========================================
  Files        111     112       +1     
  Lines       5082    5103      +21     
========================================
+ Hits         161     168       +7     
- Misses      4921    4935      +14     

@Ultimater Ultimater changed the title Fix #1479 more verbose pdo driver missing errors Fix #1479 more verbose pdo driver missing errors for 4.0.x Jul 7, 2021
@Ultimater Ultimater merged commit d6f7721 into phalcon:4.0.x Jul 7, 2021
@Ultimater Ultimater deleted the fix-1479-pdo-adapter-error-4.0.x branch July 7, 2021 08:55
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