1616use Yiisoft \Db \Oracle \Column \JsonColumn ;
1717use Yiisoft \Db \Oracle \Tests \Provider \ColumnProvider ;
1818use Yiisoft \Db \Oracle \Tests \Support \IntegrationTestTrait ;
19+ use Yiisoft \Db \Oracle \Tests \Support \TestConnection ;
1920use Yiisoft \Db \Query \Query ;
2021use Yiisoft \Db \Schema \Column \ColumnInterface ;
2122use Yiisoft \Db \Schema \Column \DoubleColumn ;
@@ -38,8 +39,7 @@ final class ColumnTest extends CommonColumnTest
3839 public function testQueryWithTypecasting (): void
3940 {
4041 $ db = $ this ->getSharedConnection ();
41- $ version = $ db ->getServerInfo ()->getVersion ();
42- $ isOldVersion = version_compare ($ version , '21 ' , '< ' );
42+ $ isOldVersion = version_compare (TestConnection::getServerVersion (), '21 ' , '< ' );
4343
4444 $ this ->loadFixture (
4545 __DIR__ . '/Support/Fixture/ '
@@ -64,8 +64,7 @@ public function testQueryWithTypecasting(): void
6464 public function testCommandWithPhpTypecasting (): void
6565 {
6666 $ db = $ this ->getSharedConnection ();
67- $ version = $ db ->getServerInfo ()->getVersion ();
68- $ isOldVersion = version_compare ($ version , '21 ' , '< ' );
67+ $ isOldVersion = version_compare (TestConnection::getServerVersion (), '21 ' , '< ' );
6968
7069 $ this ->loadFixture (
7170 __DIR__ . '/Support/Fixture/ '
@@ -136,8 +135,7 @@ public function testSelectWithPhpTypecasting(): void
136135 public function testPhpTypecast (): void
137136 {
138137 $ db = $ this ->getSharedConnection ();
139- $ version = $ db ->getServerInfo ()->getVersion ();
140- $ isOldVersion = version_compare ($ version , '21 ' , '< ' );
138+ $ isOldVersion = version_compare (TestConnection::getServerVersion (), '21 ' , '< ' );
141139
142140 $ this ->loadFixture (
143141 __DIR__ . '/Support/Fixture/ '
@@ -150,8 +148,7 @@ public function testPhpTypecast(): void
150148 public function testColumnInstance (): void
151149 {
152150 $ db = $ this ->getSharedConnection ();
153- $ version = $ db ->getServerInfo ()->getVersion ();
154- $ isOldVersion = version_compare ($ version , '21 ' , '< ' );
151+ $ isOldVersion = version_compare (TestConnection::getServerVersion (), '21 ' , '< ' );
155152
156153 $ this ->loadFixture (
157154 __DIR__ . '/Support/Fixture/ '
0 commit comments