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 for getting database error #3207

Merged
merged 1 commit into from
Jul 4, 2020
Merged

Conversation

michalsn
Copy link
Member

@michalsn michalsn commented Jul 3, 2020

Description
This PR fixes a bug regarding the method used to get the database error. All DB drivers use error() method but in our interface, we had getError() which wasn't really used anywhere except for the Model class.

See: #3204

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@michalsn michalsn changed the title Fix for getting database error. Fixes #3204 Fix for getting database error Jul 3, 2020
@MGatner
Copy link
Member

MGatner commented Jul 3, 2020

Yikes, that was an odd oversight! I think this is okay as we don't officially support any other services using that interface but I'd like @lonnieezell to make the call.

@lonnieezell
Copy link
Member

Oh, wow. Looks good to me. Thanks!

@lonnieezell lonnieezell merged commit ea635b8 into codeigniter4:develop Jul 4, 2020
@michalsn michalsn deleted the db_errors branch July 16, 2020 13:31
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.

3 participants