@@ -1389,8 +1389,9 @@ public function columnsProvider()
13891389 ['column6 ' , 'float ' , []],
13901390 ['column7 ' , 'decimal ' , []],
13911391 ['decimal_precision_scale ' , 'decimal ' , ['precision ' => 10 , 'scale ' => 2 ]],
1392+ ['decimal_precision_zero_scale ' , 'decimal ' , ['precision ' => 15 , 'scale ' => 0 ]],
13921393 ['decimal_limit ' , 'decimal ' , ['limit ' => 10 ]],
1393- ['decimal_precision ' , 'decimal ' , ['precision ' => 10 ]],
1394+ ['decimal_precision ' , 'decimal ' , ['precision ' => 15 ]],
13941395 ['column8 ' , 'datetime ' , []],
13951396 ['column9 ' , 'time ' , []],
13961397 ['column10 ' , 'timestamp ' , []],
@@ -2727,21 +2728,6 @@ public function testCreateTableWithPrecisionCurrentTimestamp()
27272728 $ this ->assertEqualsIgnoringCase ('CURRENT_TIMESTAMP(3) ' , $ colDef ['COLUMN_DEFAULT ' ]);
27282729 }
27292730
2730- public function testCreateTableWithZeroScale (): void
2731- {
2732- $ this ->adapter ->connect ();
2733- $ table = new Table ('test_table ' , ['id ' => false ], $ this ->adapter );
2734- $ table
2735- ->addColumn ('col_1 ' , 'decimal ' , ['null ' => false , 'precision ' => 15 , 'scale ' => 0 ])
2736- ->create ();
2737-
2738- $ columns = $ table ->getColumns ();
2739- $ this ->assertCount (1 , $ columns );
2740- $ this ->assertSame ('col_1 ' , $ columns [0 ]->getName ());
2741- $ this ->assertSame (15 , $ columns [0 ]->getPrecision ());
2742- $ this ->assertSame (0 , $ columns [0 ]->getScale ());
2743- }
2744-
27452731 public function pdoAttributeProvider ()
27462732 {
27472733 return [
0 commit comments