Skip to content

Conversation

@michalsn
Copy link
Member

Description
This PR fixes the result object for CodeIgniter\Database\SQLSRV\PreparedQuery::_getResult().

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 bug Verified issues on the current code behavior or pull requests that will fix them database Issues or pull requests that affect the database layer labels Oct 19, 2022
Copy link
Member

@paulbalandan paulbalandan left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

Copy link
Member

@MGatner MGatner left a comment

Choose a reason for hiding this comment

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

The test looks good. I don't understand the underlying reason, but that's why we have the @codeigniter4/database-team 😎

@kenjis kenjis changed the title fix: _getResult() return object for preparedQuery class in sqlsrv fix: _getResult() return object for preparedQuery class in SQLSRV Oct 20, 2022
@michalsn
Copy link
Member Author

@sclubricants Thanks for the feedback. Everything should be fixed now.

@michalsn
Copy link
Member Author

michalsn commented Oct 21, 2022

Just a note...

Sadly, now I see there is another problem. And it involves the BasePreparedQuery class in general. We always return the Result class, which should not happen. I guess changes to the BasePreparedQuery class were missed when we made changes in the past: #4176

I mean... I simply forgot about it.

Anyway, this should be addressed and fixed in a separate PR.

@michalsn michalsn requested a review from sclubricants October 21, 2022 16:37
Copy link
Member

@sclubricants sclubricants left a comment

Choose a reason for hiding this comment

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

Might want to mention that it returns false on failure. Other than that looks good.

@kenjis kenjis changed the title fix: _getResult() return object for preparedQuery class in SQLSRV fix: [SQLSRV] _getResult() return object for preparedQuery class Oct 21, 2022
@michalsn michalsn force-pushed the fix/sqlsrv-preparedQuery-result branch from c92c2e7 to 7e5d98e Compare October 23, 2022 07:07
@michalsn michalsn merged commit 35e3664 into codeigniter4:develop Oct 23, 2022
@michalsn michalsn deleted the fix/sqlsrv-preparedQuery-result branch December 13, 2022 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Verified issues on the current code behavior or pull requests that will fix them database Issues or pull requests that affect the database layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants