Add decimal(precision,scale) column to unit tests

This commit is contained in:
Oliver Gasser 2013-12-17 23:08:05 +01:00
parent 3b0d0e2b1f
commit 5fcbe5350c
2 changed files with 9 additions and 0 deletions

View File

@ -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());

View File

@ -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>