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
Right after implementing #7181 I stumbled on a trange error:
Then I pass the boxed object as query parameter (SomeModel::find()->where(['id'=>$someId])), Cassandra PDO tells me CQLSTATE[HY000] [2] Invalid STRING constant (a11...4df) for "id" of type uuid. (The UUID is perfectly the same)
If I put (string) (typecast) before $someId, everything works.
But __toString() is being called on it anyway, from \yii\db\Command::bindPendingParams at pdoStatement->bindValue() - if I set breakpoint on __toString(), stack trace tells me so !
Adding typecast to \yii\db\Command::bindPendingParams as $this->pdoStatement->bindValue($name, (string)$value[0], $value[1]); does not help at all.
What can it be - some creepy misfeature or bug in PHP, PDO, Cassandra PDO driver ? I see where's likely not framework bug, but maybe you do know how to fight it or where to escalate ?
The text was updated successfully, but these errors were encountered:
Right after implementing #7181 I stumbled on a trange error:
Then I pass the boxed object as query parameter (
SomeModel::find()->where(['id'=>$someId])
), Cassandra PDO tells meCQLSTATE[HY000] [2] Invalid STRING constant (a11...4df) for "id" of type uuid
. (The UUID is perfectly the same)If I put
(string)
(typecast) before$someId
, everything works.But
__toString()
is being called on it anyway, from\yii\db\Command::bindPendingParams
atpdoStatement->bindValue()
- if I set breakpoint on __toString(), stack trace tells me so !Adding typecast to
\yii\db\Command::bindPendingParams
as$this->pdoStatement->bindValue($name, (string)$value[0], $value[1]);
does not help at all.What can it be - some creepy misfeature or bug in PHP, PDO, Cassandra PDO driver ? I see where's likely not framework bug, but maybe you do know how to fight it or where to escalate ?
The text was updated successfully, but these errors were encountered: