During migration from Nette 2.0.18 to Nette 2.3.1 I found problem with saving resources to database as LOB.
Nette 2.0 used bindValue() with autodetected types before calling execute() on prepared query.
See here: https://github.com/nette/nette/blob/v2.0.18/Nette/Database/Statement.php#L83
Nette 2.3 passes parameters directly to execute.
This difference is problem when I try to save resource - it is saved to database as string "Resource id #260", because PDO needs to have set correct binding to save conent of resource.
Is it possible to add binding of values into Database\Connection::query()?
During migration from Nette 2.0.18 to Nette 2.3.1 I found problem with saving resources to database as LOB.
Nette 2.0 used
bindValue()with autodetected types before callingexecute()on prepared query.See here: https://github.com/nette/nette/blob/v2.0.18/Nette/Database/Statement.php#L83
Nette 2.3 passes parameters directly to
execute.This difference is problem when I try to save resource - it is saved to database as string "Resource id #260", because PDO needs to have set correct binding to save conent of resource.
Is it possible to add binding of values into
Database\Connection::query()?