Skip to content

Commit 77f85c2

Browse files
apply suggestion
Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>
1 parent b737a67 commit 77f85c2

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/system/Database/Live/SQLSRV/IncrementTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public function testIncrementWhenCastTextToIntFalse(): void
4343
{
4444
$this->hasInDatabase('job', ['name' => 'incremental', 'created_at' => 6]);
4545

46-
$this->assertInstanceOf(Builder::class, $this->db->table('job'));
47-
4846
$builder = $this->db->table('job');
4947

48+
$this->assertInstanceOf(Builder::class, $builder);
49+
5050
$builder->castTextToInt = false;
5151

5252
$builder->where('name', 'incremental')
@@ -59,10 +59,10 @@ public function testDecrementWhenCastTextToIntFalse(): void
5959
{
6060
$this->hasInDatabase('job', ['name' => 'decremental', 'created_at' => 6]);
6161

62-
$this->assertInstanceOf(Builder::class, $this->db->table('job'));
63-
6462
$builder = $this->db->table('job');
6563

64+
$this->assertInstanceOf(Builder::class, $builder);
65+
6666
$builder->castTextToInt = false;
6767

6868
$builder->where('name', 'decremental')

user_guide_src/source/changelogs/v4.7.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ Bugs Fixed
4242
- **Common:** Fixed a bug where the ``command()`` helper function did not properly clean up output buffers, which could lead to risky tests when exceptions were thrown.
4343
- **Kint:** Fixed a bug where stale Content Security Policy nonces were reused in worker mode, causing browser CSP violations for Debug Toolbar assets.
4444
- **Time:** Fixed a bug where ``Time::createFromTimestamp()`` could fail for microsecond timestamps when ``LC_NUMERIC`` used a comma decimal separator.
45+
- **Database:** Fixed a bug where the SQLSRV driver's decrement method was adding instead of subtracting the decrement value when ``$castTextToInt`` was false.
4546
- **Validation:** Fixed a bug where ``Validation::getValidated()`` dropped fields whose validated value was explicitly ``null``.
46-
- **SQLSRV Database Driver:** Fixed a bug where the SQLSRV driver's decrement method was adding instead of subtracting the decrement value when ``$castTextToInt`` was false.
4747

4848
See the repo's
4949
`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_

0 commit comments

Comments
 (0)