BUG FIX: column names quoted properly

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100692 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Geoff Munn 2010-03-09 02:29:13 +00:00 committed by Sam Minnee
parent 37d915bb40
commit 4b14821bee

View File

@ -271,9 +271,9 @@ class DataObjectSetTest extends SapphireTest {
*/
function testInsertFirst() {
// Get one comment
$comment = DataObject::get_one('PageComment', 'Name = \'Joe\'');
$comment = DataObject::get_one('PageComment', '"Name" = \'Joe\'');
// Get all other comments
$set = DataObject::get('PageComment', 'Name != \'Joe\'');
$set = DataObject::get('PageComment', '"Name" != \'Joe\'');
// Duplicate so we can use it later without another lookup
$otherSet = clone $set;