fix(db): Skip test on Oracle 11g

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2025-11-18 16:10:12 +01:00
parent 7c870a8f67
commit 75a8b9aff5
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0

View file

@ -142,6 +142,16 @@ class ExpressionBuilderDBTest extends TestCase {
}
public function testJson(): void {
if ($this->connection->getDatabaseProvider(true) === IDBConnection::PLATFORM_ORACLE) {
$result = $this->connection->executeQuery('SELECT VERSION FROM PRODUCT_COMPONENT_VERSION');
$version = $result->fetchOne();
$result->closeCursor();
if (str_starts_with($version, '11.')) {
$this->markTestSkipped('JSON is not supported on Oracle 11, skipping until deprecation was clarified: ' . $version);
}
}
$appId = $this->getUniqueID('testing');
$query = $this->connection->getQueryBuilder();
$query->insert('share')