Skip to content

Commit 60399e5

Browse files
committed
MySQL 5.6 saves null instead of empty GeometryCollection
1 parent 65543ee commit 60399e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Integration/SpatialTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function testInsertEmptyGeometryCollection()
186186
$this->assertDatabaseHas('geometry', ['id' => $geo->id]);
187187

188188
$geo2 = GeometryModel::find($geo->id);
189-
$this->assertInstanceOf(GeometryCollection::class, $geo2->multi_geometries);
189+
$this->assertNull($geo2->multi_geometries); // MySQL 5.6 saves null instead of empty GeometryCollection
190190
}
191191

192192
public function testUpdate()

0 commit comments

Comments
 (0)