From b1ab0a5bc01eaed01978ac62db801b267bfeb448 Mon Sep 17 00:00:00 2001 From: Geoff Munn Date: Thu, 17 Sep 2009 00:02:53 +0000 Subject: [PATCH] MINOR FIX: columns quoted properly git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@86503 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/forms/CheckboxFieldTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/forms/CheckboxFieldTest.php b/tests/forms/CheckboxFieldTest.php index 403232873..6758940c7 100644 --- a/tests/forms/CheckboxFieldTest.php +++ b/tests/forms/CheckboxFieldTest.php @@ -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' );