Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.2.1
-
Fix Version/s: 1.2.2
-
Component/s: None
-
Labels:None
-
Environment:Linux 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
mysql Ver 14.14 Distrib 5.1.37, for debian-linux-gnu (x86_64) using EditLine wrapper
Apache/2.2.12 (Ubuntu)
PHP 5.3.1
Doctine 1.2 rev 7229
Description
This simple query:
$vRetVal = Doctrine_Query::create()
->select('id')
->from('LocationCombined')
->where('name = ?', $pRegionName)
->fetchOne(array(), Doctrine_Core::HYDRATE_SINGLE_SCALAR);
returns "false", but if I use
->execute(array(), Doctrine_Core::HYDRATE_SINGLE_SCALAR);
I get the correct result in my variable.