Skip to content

Commit 6993232

Browse files
committed
Fix vector support detection for scylladb
1 parent 39bca32 commit 6993232

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docker-compose.scylladb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: php-cassandra-scylladb
22
services:
33
scylladb:
4-
image: scylladb/scylla:${SCYLLADB_VERSION:-2025.3.3}
4+
image: scylladb/scylla:${SCYLLADB_VERSION:-2025.3}
55
container_name: php-scylladb-test-db
66
command:
77
- --rpc-address

test/Integration/AbstractIntegrationTestCase.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ protected static function isScyllaDb(): bool {
146146

147147
protected static function isVectorDataTypeSupported(): bool {
148148
if (self::isScyllaDb()) {
149+
$scyllaDbVersion = getenv('SCYLLADB_VERSION');
150+
if ($scyllaDbVersion && version_compare($scyllaDbVersion, '2025.2', '<')) {
151+
return false;
152+
}
153+
149154
return true;
150155
}
151156

0 commit comments

Comments
 (0)