Fixing the binary type for SqlSrv

This commit is contained in:
Jose Lorenzo Rodriguez 2011-06-20 19:14:21 -04:30
parent 41603cacb7
commit cf49d51e75
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@ class Sqlserver extends DboSource {
'timestamp' => array('name' => 'timestamp', 'format' => 'Y-m-d H:i:s', 'formatter' => 'date'),
'time' => array('name' => 'datetime', 'format' => 'H:i:s', 'formatter' => 'date'),
'date' => array('name' => 'datetime', 'format' => 'Y-m-d', 'formatter' => 'date'),
'binary' => array('name' => 'image'),
'binary' => array('name' => 'varbinary'),
'boolean' => array('name' => 'bit')
);

View file

@ -40,7 +40,7 @@ class BinaryTestFixture extends CakeTestFixture {
*/
public $fields = array(
'id' => array('type' => 'integer', 'key' => 'primary'),
'data' => 'binary'
'data' => array('type' => 'binary', 'length' => 100)
);
/**