diff --git a/tests/TestCase/Database/QueryTest.php b/tests/TestCase/Database/QueryTest.php
index <HASH>..<HASH> 100644
--- a/tests/TestCase/Database/QueryTest.php
+++ b/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);
 	}
Figuring out what SQL is offending SQL Server