From f211d2cea8376ac63c0cc9099715b0dd99265716 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 13 Jul 2010 05:07:40 +0000 Subject: [PATCH] BUGFIX Fixed dev/build always showing changes in nvarchar fields because of a stray whitespace in the spec value --- code/MSSQLDatabase.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index ed8919c..eafaeac 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -965,8 +965,8 @@ class MSSQLDatabase extends SS_Database { * @return string */ public function text($values) { - $collation = self::$collation ? "COLLATE " . self::$collation : ""; - return "nvarchar(max) $collation null"; + $collation = self::$collation ? " COLLATE " . self::$collation : ""; + return "nvarchar(max)$collation null"; } /** @@ -986,8 +986,8 @@ class MSSQLDatabase extends SS_Database { * @return string */ public function varchar($values) { - $collation = self::$collation ? "COLLATE " . self::$collation : ""; - return "nvarchar(" . $values['precision'] . ") $collation null"; + $collation = self::$collation ? " COLLATE " . self::$collation : ""; + return "nvarchar(" . $values['precision'] . ")$collation null"; } /**