Menu

#37 ObjectQuery fails if query text contains spaces

open
nobody
None
5
2012-12-11
2009-04-21
Niko
No

The following request fails with illegal SQL:

$objQuery = &$persistenceFacade->createObjectQuery("My Type");
$objTpl = & $objQuery->getObjectTemplate("My Type");
$objTpl->setValue("Name", "This is a name with spaces", DATATYPE_ATTRIBUTE);

It works if there are no spaces in the value set.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB