Uh oh!
There was an error while loading. Please reload this page.
feat: add foundRows option for MySQLi config - #8979
Conversation
ducng99
commented
Jun 20, 2024
Update: fixed the CS issue in the test file |
ddevsr
commented
Jun 21, 2024
Looks good, by the way i see unit test in Database Live many skipped after connection to database. @kenjis I think better skipped in setUp? i can make PR later. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kenjis
commented
Jun 21, 2024
Yes, it should be in the setUp() method. |
Also add an ignore in phpstan to ignore missing foundRows in BaseConnection
ducng99
commented
Jun 21, 2024
I have moved the DBDriver checks to setUp() but it would still make the connection to DB each time. Other suggested changes are applied |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ducng99
commented
Jun 26, 2024
Thanks everyone! |
alirahman99
commented
Jan 20, 2025
caranya biar bsa debuging instalasi pada codelnigter gimana |
Description
Added a new database config
foundRowsfor MySQLi. Enabling this adds the flagMYSQLI_CLIENT_FOUND_ROWSwhen connecting to a MySQL database.The flag changes the behaviour of
affectedRows()forUPDATEorINSERT ... ON DUPLICATE KEY UPDATE, where the number of rows updated to the same value will also be returned. By default, it only returns the number rows with a value changed.Checklist: