Skip to content

Commit

Permalink
Update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Aug 29, 2024
1 parent 27ec18c commit 597b4ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- Enh #342: Add JSON overlaps condition builder (@Tigrov)
- Enh #344: Update `bit` type according to main PR yiisoft/db#860 (@Tigrov)
- Enh #347: Raise minimum PHP version to `^8.1` with minor refactoring (@Tigrov)
- Bug #349: Restore connection if closed by connection timeout (@Tigrov)
- Bug #349, #352: Restore connection if closed by connection timeout (@Tigrov)

## 1.2.0 March 21, 2024

Expand Down
4 changes: 2 additions & 2 deletions tests/ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function testRestartConnectionOnTimeout(): void

sleep(2);

$result = $db->createCommand("SELECT '1'")->queryScalar();
$result = $db->createCommand("SELECT 1")->queryScalar();

$this->assertSame('1', $result);

Expand All @@ -154,6 +154,6 @@ public function testNotRestartConnectionOnTimeoutInTransaction(): void
$this->expectException(IntegrityException::class);
$this->expectExceptionMessage('SQLSTATE[HY000]: General error: 2006 MySQL server has gone away');

$db->createCommand("SELECT '1'")->queryScalar();
$db->createCommand("SELECT 1")->queryScalar();
}
}

0 comments on commit 597b4ae

Please sign in to comment.