diff --git a/tests/Doctrine/CarbonTypesTest.php b/tests/Doctrine/CarbonTypesTest.php index 0f12a59f97..d408f10379 100644 --- a/tests/Doctrine/CarbonTypesTest.php +++ b/tests/Doctrine/CarbonTypesTest.php @@ -82,6 +82,14 @@ public function testGetSQLDeclaration(string $name) 'precision' => null, ], new DB2Platform())); + $this->assertSame('TIMESTAMP(6)', $type->getSQLDeclaration([ + 'precision' => 0, + ], new DB2Platform())); + + $this->assertSame('DATETIME(6)', $type->getSQLDeclaration([ + 'precision' => 0, + ], new MySQL57Platform())); + $this->assertSame('DATETIME(6)', $type->getSQLDeclaration([ 'precision' => null, ], new MySQL57Platform()));