Commit f0f408c4 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #488 from deeky666/fix-sqlanywhere16-integer-type-mapping

Fix integer type mapping in SQL Anywhere 16
parents 85f0fde5 b3cb9ed7
...@@ -1500,6 +1500,7 @@ class SQLAnywherePlatform extends AbstractPlatform ...@@ -1500,6 +1500,7 @@ class SQLAnywherePlatform extends AbstractPlatform
'double' => 'float', 'double' => 'float',
'float' => 'float', 'float' => 'float',
'int' => 'integer', 'int' => 'integer',
'integer' => 'integer',
'unsigned int' => 'integer', 'unsigned int' => 'integer',
'numeric' => 'decimal', 'numeric' => 'decimal',
'smallint' => 'smallint', 'smallint' => 'smallint',
......
...@@ -755,6 +755,9 @@ class SQLAnywherePlatformTest extends AbstractPlatformTestCase ...@@ -755,6 +755,9 @@ class SQLAnywherePlatformTest extends AbstractPlatformTestCase
public function testInitializesDoctrineTypeMappings() public function testInitializesDoctrineTypeMappings()
{ {
$this->assertTrue($this->_platform->hasDoctrineTypeMappingFor('integer'));
$this->assertSame('integer', $this->_platform->getDoctrineTypeMapping('integer'));
$this->assertTrue($this->_platform->hasDoctrineTypeMappingFor('binary')); $this->assertTrue($this->_platform->hasDoctrineTypeMappingFor('binary'));
$this->assertSame('binary', $this->_platform->getDoctrineTypeMapping('binary')); $this->assertSame('binary', $this->_platform->getDoctrineTypeMapping('binary'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment