diff --git a/lib/Cake/Model/Datasource/Database/Sqlserver.php b/lib/Cake/Model/Datasource/Database/Sqlserver.php index 110b277d5..c94da8b90 100644 --- a/lib/Cake/Model/Datasource/Database/Sqlserver.php +++ b/lib/Cake/Model/Datasource/Database/Sqlserver.php @@ -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') ); diff --git a/lib/Cake/Test/Fixture/BinaryTestFixture.php b/lib/Cake/Test/Fixture/BinaryTestFixture.php index 074a782db..42ef476bc 100644 --- a/lib/Cake/Test/Fixture/BinaryTestFixture.php +++ b/lib/Cake/Test/Fixture/BinaryTestFixture.php @@ -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) ); /**