Permalink
Browse files

Change type check to loose type checking for Sqlserver limit -1

  • Loading branch information...
1 parent 853c0bd commit 876a047a76af3444ceba7109f0b7652297ce9d85 @predominant predominant committed Jun 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/Database/Sqlserver.php
@@ -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) {

0 comments on commit 876a047

Please sign in to comment.