You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello all
I used php_phalcon.dll "Phalcon 2.0.4 - Windows x86 for PHP 5.3.9 (VC9) " in windows
if I use model:
$area = \model\area::findFirst(array(
'conditions' => 'id=1',
'for_update' => true
));
it cause a fatal error:
Uncaught exception 'PDOException' with message 'SQLSTATE[HY093]: Invalid parameter number: parameter was not defined' in E:\local_express\truck\04code\server_php\api\index.php:444 Stack trace: #0 [internal function]: PDOStatement->execute() #1 [internal function]: Phalcon\Db\Adapter\Pdo->executePrepared(Object(PDOStatement), Array, Array) #2 [internal function]: Phalcon\Db\Adapter\Pdo->query('SELECT area.`...', Array, Array) #3 [internal function]: Phalcon\Mvc\Model\Query->_executeSelect(Array, Array, Array) #4 [internal function]: Phalcon\Mvc\Model\Query->execute() #5 E:\local_express\truck\04code\server_php\api\index.php(444): Phalcon\Mvc\Model::findFirst(Array) #6 [internal function]: {closure}() #7 E:\local_express\truck\04code\server_php\api\index.php(450): Phalcon\Mvc\Micro->handle() #8 {main} thrown in E:\local_express\truck\04code\server_php\api\index.php on line 444
and the logger tell me:
[Thu, 09 Jul 15 09:53:19 +0800][INFO] SELECT area.id, area.name, area.parent_id FROM area WHERE area.id = 1 LIMIT :AP0FOR UPDATE
I think the forupdate bug is still not fixed.
sorry, my english is not well.
The text was updated successfully, but these errors were encountered:
hello all
I used php_phalcon.dll "Phalcon 2.0.4 - Windows x86 for PHP 5.3.9 (VC9) " in windows
if I use model:
$area = \model\area::findFirst(array(
'conditions' => 'id=1',
'for_update' => true
));
it cause a fatal error:
Uncaught exception 'PDOException' with message 'SQLSTATE[HY093]: Invalid parameter number: parameter was not defined' in E:\local_express\truck\04code\server_php\api\index.php:444 Stack trace: #0 [internal function]: PDOStatement->execute() #1 [internal function]: Phalcon\Db\Adapter\Pdo->executePrepared(Object(PDOStatement), Array, Array) #2 [internal function]: Phalcon\Db\Adapter\Pdo->query('SELECT
area
.`...', Array, Array) #3 [internal function]: Phalcon\Mvc\Model\Query->_executeSelect(Array, Array, Array) #4 [internal function]: Phalcon\Mvc\Model\Query->execute() #5 E:\local_express\truck\04code\server_php\api\index.php(444): Phalcon\Mvc\Model::findFirst(Array) #6 [internal function]: {closure}() #7 E:\local_express\truck\04code\server_php\api\index.php(450): Phalcon\Mvc\Micro->handle() #8 {main} thrown in E:\local_express\truck\04code\server_php\api\index.php on line 444and the logger tell me:
[Thu, 09 Jul 15 09:53:19 +0800][INFO] SELECT
area
.id
,area
.name
,area
.parent_id
FROMarea
WHEREarea
.id
= 1 LIMIT :AP0FOR UPDATEI think the forupdate bug is still not fixed.
sorry, my english is not well.
The text was updated successfully, but these errors were encountered: