Permalink
Browse files

Quoting test for null value and string column

  • Loading branch information...
1 parent b58940e commit 7019c79b813f4ace0edb5e1bf763d677923f6bc2 @ovidiupruteanu ovidiupruteanu committed Sep 9, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php
@@ -311,6 +311,10 @@ public function testQuoting() {
$expected = "''";
$result = $this->db->value('', 'binary');
$this->assertSame($expected, $result);
+
+ $expected = 'NULL';
+ $result = $this->db->value(null, 'string');
+ $this->assertSame($expected, $result);
}
/**

0 comments on commit 7019c79

Please sign in to comment.