From 75a8b9aff5a079574aa3c60ee88ef3b6923ddd2d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 18 Nov 2025 16:10:12 +0100 Subject: [PATCH] fix(db): Skip test on Oracle 11g Signed-off-by: Joas Schilling --- tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php b/tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php index 74fa0f23032..63f3ed4ab10 100644 --- a/tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php +++ b/tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php @@ -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')