Commit 0cdb2e7d authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge branch '2.2'

parents 5c65055c 854a67da
......@@ -764,7 +764,7 @@ class MsSqlPlatform extends AbstractPlatform
'nvarchar' => 'string',
'ntext' => 'text',
'binary' => 'text',
'varbinary' => 'text',
'varbinary' => 'blob',
'image' => 'text',
);
}
......
......@@ -679,6 +679,10 @@ class MySqlPlatform extends AbstractPlatform
'decimal' => 'decimal',
'numeric' => 'decimal',
'year' => 'date',
'longblob' => 'blob',
'blob' => 'blob',
'mediumblob' => 'blob',
'tinyblob' => 'blob',
);
}
......
......@@ -811,6 +811,7 @@ LEFT JOIN all_cons_columns r_cols
'long raw' => 'text',
'rowid' => 'string',
'urowid' => 'string',
'blob' => 'blob',
);
}
......
......@@ -767,6 +767,7 @@ class PostgreSqlPlatform extends AbstractPlatform
'money' => 'decimal',
'numeric' => 'decimal',
'year' => 'date',
'bytea' => 'blob',
);
}
......
......@@ -479,6 +479,7 @@ class SqlitePlatform extends AbstractPlatform
'real' => 'float',
'decimal' => 'decimal',
'numeric' => 'decimal',
'blob' => 'blob',
);
}
......
......@@ -276,9 +276,8 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
$precision = null;
$scale = null;
if ($this->_platform->hasDoctrineTypeMappingFor($tableColumn['type'])) {
$dbType = strtolower($tableColumn['type']);
} else {
$dbType = strtolower($tableColumn['type']);
if (strlen($tableColumn['domain_type'])) {
$dbType = strtolower($tableColumn['domain_type']);
$tableColumn['complete_type'] = $tableColumn['domain_complete_type'];
}
......
Subproject commit 5719f632cab682f611e18b6d83ef83841911a1ef
Subproject commit efa94de25beef4aefaeb7972c122798f9876fc39
Subproject commit d599286518ef739afed05b4f29760ac44d275233
Subproject commit 17e774007b98beb2e253e645260e0f9c32f4c936
......@@ -547,6 +547,20 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$this->assertInstanceOf('Doctrine\DBAL\Types\ArrayType', $columns['arr']->getType(), "The Doctrine2 should be detected from comment hint.");
}
/**
* @group DBAL-197
*/
public function testListTableWithBlob()
{
$table = new \Doctrine\DBAL\Schema\Table('test_blob_table');
$table->addColumn('id', 'integer', array('comment' => 'This is a comment'));
$table->addColumn('binarydata', 'blob', array());
$table->setPrimaryKey(array('id'));
$this->_sm->createTable($table);
$blobTable = $this->_sm->listTableDetails('test_blob_table');
}
/**
* @param string $name
* @param array $data
......
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