Skip to content

Conversation

@michalsn
Copy link
Member

Description
This PR refactors the limit() method in the OCI8 driver by removing legacy code that was only required for OCI8 versions below 12.1, which are no longer supported by CodeIgniter.

Reference: https://github.com/codeigniter4/CodeIgniter4/blob/develop/user_guide_src/source/intro/requirements.rst?plain=1#L69

Closes: #9469

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@michalsn michalsn added the refactor Pull requests that refactor code label Feb 28, 2025
*
* @var bool
*/
protected $limitUsed = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since it not exists on parent, this need to be kept, with mark @deprecated for patch release.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about it, but I realized it never had any use. It was simply a copy-paste from CI3 without the full implementation (in the Result::getFieldCount()), which makes it non-usable. It was a "dead" code from the beginning.

But I'm happy to make changes if more people share your view.

@michalsn
Copy link
Member Author

Okay, I'm merging this. Thank you, @samsonasik and @paulbalandan!

@michalsn michalsn merged commit c7e4798 into codeigniter4:develop Mar 27, 2025
49 checks passed
@michalsn michalsn deleted the fix/oci8-refactor-limit branch April 16, 2025 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Pull requests that refactor code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Query Builder limit() problem with OCI8

3 participants