From 876a047a76af3444ceba7109f0b7652297ce9d85 Mon Sep 17 00:00:00 2001 From: Graham Weldon Date: Wed, 22 Jun 2011 09:54:35 -0700 Subject: [PATCH] Change type check to loose type checking for Sqlserver limit -1 --- lib/Cake/Model/Datasource/Database/Sqlserver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Model/Datasource/Database/Sqlserver.php b/lib/Cake/Model/Datasource/Database/Sqlserver.php index cd8ce6c66..0d5e901aa 100644 --- a/lib/Cake/Model/Datasource/Database/Sqlserver.php +++ b/lib/Cake/Model/Datasource/Database/Sqlserver.php @@ -406,7 +406,7 @@ class Sqlserver extends DboSource { 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) {