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

refactor: OCI8 limit() method #9472

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

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.

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