Browse Source

Making tests pass in SQLServer, now for real this time :P

Jose Lorenzo Rodriguez 10 years ago
parent
commit
c2f26b02d2
2 changed files with 2 additions and 6 deletions
  1. 0 4
      src/Database/SqlserverCompiler.php
  2. 2 2
      tests/TestCase/Database/QueryTest.php

+ 0 - 4
src/Database/SqlserverCompiler.php

@@ -69,10 +69,6 @@ class SqlserverCompiler extends QueryCompiler
         $columns = $this->_stringifyExpressions($parts[1], $generator);
         $modifiers = $this->_buildModifierPart($query->clause('modifier'), $query, $generator);
 
-        if ($modifiers !== null) {
-            $modifiers .= ' ';
-        }
-
         return sprintf('INSERT%s INTO %s (%s) OUTPUT INSERTED.*',
             $modifiers,
             $table,

+ 2 - 2
tests/TestCase/Database/QueryTest.php

@@ -3651,7 +3651,7 @@ class QueryTest extends TestCase
             ->values(['title' => 'foo'])
             ->modifier('IGNORE');
         $this->assertQuotedQuery(
-            'INSERT IGNORE INTO <articles> \(<title>\) VALUES \(:c0\)( OUTPUT INSERTED\.\*)?',
+            'INSERT IGNORE INTO <articles> \(<title>\) (OUTPUT INSERTED\.\* )?',
             $result->sql(),
             !$this->autoQuote
         );
@@ -3663,7 +3663,7 @@ class QueryTest extends TestCase
             ->values(['title' => 'foo'])
             ->modifier(['IGNORE', 'LOW_PRIORITY']);
         $this->assertQuotedQuery(
-            'INSERT IGNORE LOW_PRIORITY INTO <articles> \(<title>\) VALUES \(:c0\)( OUTPUT INSERTED\.\*)?',
+            'INSERT IGNORE LOW_PRIORITY INTO <articles> \(<title>\) (OUTPUT INSERTED\.\* )?',
             $result->sql(),
             !$this->autoQuote
         );