1
0
mirror of synced 2025-01-18 22:41:43 +03:00

[2.0][DDC-88] Corrected accidental swap of precision/scale.

This commit is contained in:
romanb 2009-11-01 11:09:27 +00:00
parent 44045a6b83
commit 94569baa0b
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class DecimalModel
*/
public $id;
/**
* @Column(name="`decimal`", type="decimal", scale=5, precision=2)
* @Column(name="`decimal`", type="decimal", scale=2, precision=5)
*/
public $decimal;
}

View File

@ -47,7 +47,7 @@ class MySqlSchemaToolTest extends \Doctrine\Tests\OrmFunctionalTestCase
$sql = $tool->getCreateSchemaSql($classes);
$this->assertEquals(1, count($sql));
$this->assertEquals("CREATE TABLE decimal_model (id INT AUTO_INCREMENT NOT NULL, `decimal` NUMERIC(2, 5) NOT NULL, PRIMARY KEY(id)) ENGINE = InnoDB", $sql[0]);
$this->assertEquals("CREATE TABLE decimal_model (id INT AUTO_INCREMENT NOT NULL, `decimal` NUMERIC(5, 2) NOT NULL, PRIMARY KEY(id)) ENGINE = InnoDB", $sql[0]);
}
public function testGetCreateSchemaSql3()