Skip to content

Commit

Permalink
Change type check to loose type checking for Sqlserver limit -1
Browse files Browse the repository at this point in the history
  • Loading branch information
predominant committed Jun 22, 2011
1 parent 853c0bd commit 876a047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/Database/Sqlserver.php
Expand Up @@ -406,7 +406,7 @@ public function column($real) {
if (strpos($col, 'int') !== false) {
return 'integer';
}
if (strpos($col, 'char') !== false && $limit === -1) {
if (strpos($col, 'char') !== false && $limit == -1) {
return 'text';
}
if (strpos($col, 'char') !== false) {
Expand Down

0 comments on commit 876a047

Please sign in to comment.