Skip to content

Commit

Permalink
Fixing the binary type for SqlSrv
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jun 20, 2011
1 parent 41603ca commit cf49d51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/Database/Sqlserver.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class Sqlserver extends DboSource {
'timestamp' => array('name' => 'timestamp', 'format' => 'Y-m-d H:i:s', 'formatter' => 'date'), 'timestamp' => array('name' => 'timestamp', 'format' => 'Y-m-d H:i:s', 'formatter' => 'date'),
'time' => array('name' => 'datetime', 'format' => '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'), 'date' => array('name' => 'datetime', 'format' => 'Y-m-d', 'formatter' => 'date'),
'binary' => array('name' => 'image'), 'binary' => array('name' => 'varbinary'),
'boolean' => array('name' => 'bit') 'boolean' => array('name' => 'bit')
); );


Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Fixture/BinaryTestFixture.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class BinaryTestFixture extends CakeTestFixture {
*/ */
public $fields = array( public $fields = array(
'id' => array('type' => 'integer', 'key' => 'primary'), 'id' => array('type' => 'integer', 'key' => 'primary'),
'data' => 'binary' 'data' => array('type' => 'binary', 'length' => 100)
); );


/** /**
Expand Down

0 comments on commit cf49d51

Please sign in to comment.