MINOR FIX: columns quoted properly

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@86503 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Geoff Munn 2009-09-17 00:02:53 +00:00
parent 34db005f65
commit b1ab0a5bc0

View File

@ -79,7 +79,7 @@ class CheckboxFieldTest extends SapphireTest {
/* Check that IsChecked column contains a 1 */
$this->assertEquals(
DB::query("SELECT IsChecked FROM CheckboxFieldTest_Article")->value(),
DB::query("SELECT \"IsChecked\" FROM \"CheckboxFieldTest_Article\"")->value(),
1,
'We have a 1 set in the database, because the field saved into as a 1'
);
@ -103,7 +103,7 @@ class CheckboxFieldTest extends SapphireTest {
/* Check that IsChecked column contains a 0 */
$this->assertEquals(
DB::query("SELECT IsChecked FROM CheckboxFieldTest_Article")->value(),
DB::query("SELECT \"IsChecked\" FROM \"CheckboxFieldTest_Article\"")->value(),
0,
'We have a 0 set in the database, because the field saved into as a 0'
);