Browse Source

Figuring out what SQL is offending SQL Server

Jose Lorenzo Rodriguez 11 years ago
parent
commit
4b9ee0d01c
1 changed files with 4 additions and 2 deletions
  1. 4 2
      tests/TestCase/Database/QueryTest.php

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

@@ -872,8 +872,10 @@ class QueryTest extends TestCase {
 				$field->add('SELECT min(id) FROM comments');
 				return $exp
 					->gt($field, 100, 'integer');
-			})
-			->execute();
+			});
+
+		debug($result->sql());
+		$rsult = $result->execute();
 		$this->assertCount(0, $result);
 	}