Commit dd0d8867 authored by Steve Müller's avatar Steve Müller

add initial BLOB type support in DB2

parent 6e6c4353
...@@ -30,7 +30,8 @@ class DB2Platform extends AbstractPlatform ...@@ -30,7 +30,8 @@ class DB2Platform extends AbstractPlatform
*/ */
public function getBlobTypeDeclarationSQL(array $field) public function getBlobTypeDeclarationSQL(array $field)
{ {
throw DBALException::notSupported(__METHOD__); // todo blob(n) with $field['length'];
return 'BLOB(1M)';
} }
/** /**
...@@ -47,6 +48,7 @@ class DB2Platform extends AbstractPlatform ...@@ -47,6 +48,7 @@ class DB2Platform extends AbstractPlatform
'varchar' => 'string', 'varchar' => 'string',
'character' => 'string', 'character' => 'string',
'clob' => 'text', 'clob' => 'text',
'blob' => 'blob',
'decimal' => 'decimal', 'decimal' => 'decimal',
'double' => 'float', 'double' => 'float',
'real' => 'float', 'real' => 'float',
......
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