mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
fix(db): Skip test on Oracle 11g
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
7c870a8f67
commit
75a8b9aff5
1 changed files with 10 additions and 0 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue