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')