fix: SQLSRV driver's decrement() method#10155
fix: SQLSRV driver's decrement() method#10155patel-vansh wants to merge 5 commits intocodeigniter4:developfrom
decrement() method#10155Conversation
|
I am quite unsure about the tests in this case. Do I need to add a new file in tests/system/Database/Live/SQLSRV directory? Or add a particular test inside the normal |
|
The new class under the SQLSRV directory would be better. Please add tests for both |
Idk if I've added the tests as expected, as I didn't found any direct option to modify |
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
Description
As discovered by @paulbalandan in this comment, SQLSRV Database Driver was incorrectly adding instead of subtracting the decrement value when
$castTextToIntwas false.This PR fixes that bug by flipping the sign in
decrement()function.Checklist: