Skip to content

Commit 7123d28

Browse files
fixed postgres test failing due to 0 length varchar
1 parent 4f7bae7 commit 7123d28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/e2e/Adapter/Scopes/SpatialTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2561,7 +2561,7 @@ public function testSpatialIndexOnNonSpatial(): void
25612561
$database->createCollection($collUpdateNull);
25622562

25632563
$database->createAttribute($collUpdateNull, 'loc', Database::VAR_POINT, 0, true);
2564-
$database->createAttribute($collUpdateNull, 'name', Database::VAR_STRING, 0, true);
2564+
$database->createAttribute($collUpdateNull, 'name', Database::VAR_STRING, 4, true);
25652565
try {
25662566
$database->createIndex($collUpdateNull, 'idx_loc', Database::INDEX_SPATIAL, ['name']);
25672567
$this->fail('Expected exception when creating spatial index on NULL-able attribute');

0 commit comments

Comments
 (0)