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

CI4: query() now returns false for failed queries #3634

Open
objecttothis opened this issue Jan 27, 2023 · 0 comments
Open

CI4: query() now returns false for failed queries #3634

objecttothis opened this issue Jan 27, 2023 · 0 comments
Assignees
Labels
CodeIgniter4 Issue relates to the conversion to CodeIgniter 4 enhancement
Milestone

Comments

@objecttothis
Copy link
Member

https://codeigniter.com/user_guide/installation/upgrade_412.html#baseconnection-query-return-values

As of CI 4.1.2 query() returns false when a query fails. We may need to go through the code and add a check on the return value. Formerly I believe it returned an empty object. This function is used extensively in the models, so we need to think this one through.

@objecttothis objecttothis added this to the 3.4.0 milestone Jan 27, 2023
@jekkos jekkos mentioned this issue Nov 6, 2023
12 tasks
@objecttothis objecttothis added the CodeIgniter4 Issue relates to the conversion to CodeIgniter 4 label Dec 12, 2023
@SteveIreland SteveIreland self-assigned this Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CodeIgniter4 Issue relates to the conversion to CodeIgniter 4 enhancement
Projects
None yet
Development

No branches or pull requests

2 participants