Add decimal(precision,scale) column to unit tests
This commit is contained in:
parent
3b0d0e2b1f
commit
5fcbe5350c
|
@ -69,6 +69,9 @@ class MDB2SchemaReader extends \PHPUnit_Framework_TestCase {
|
|||
$this->assertTrue($table->getColumn('booleanfield_true')->getDefault());
|
||||
$this->assertFalse($table->getColumn('booleanfield_false')->getDefault());
|
||||
|
||||
$this->assertEquals(12, $table->getColumn('decimalfield_precision_scale')->getPrecision());
|
||||
$this->assertEquals(2, $table->getColumn('decimalfield_precision_scale')->getScale());
|
||||
|
||||
$this->assertCount(2, $table->getIndexes());
|
||||
$this->assertEquals(array('integerfield'), $table->getIndex('primary')->getUnquotedColumns());
|
||||
$this->assertTrue($table->getIndex('primary')->isPrimary());
|
||||
|
|
|
@ -53,6 +53,12 @@
|
|||
<type>boolean</type>
|
||||
<default>false</default>
|
||||
</field>
|
||||
<field>
|
||||
<name>decimalfield_precision_scale</name>
|
||||
<type>decimal</decimal>
|
||||
<precision>12</precision>
|
||||
<scale>2</scale>
|
||||
</field>
|
||||
|
||||
<index>
|
||||
<name>index_primary</name>
|
||||
|
|
Loading…
Reference in New Issue