Prepared statements does not handle string to int conversion.

Convert it from PHP.
This commit is contained in:
Benoît Burnichon
2015-07-10 17:19:00 +02:00
parent 277808c441
commit c0ceb65ba2

View File

@@ -1056,7 +1056,7 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
$connection->executeUpdate( $connection->executeUpdate(
'UPDATE record SET status = :status WHERE record_id= :record_id', 'UPDATE record SET status = :status WHERE record_id= :record_id',
['status' => '0b' . $status, 'record_id' => $this->record_id] ['status' => bindec($status), 'record_id' => $this->record_id]
); );
$sql = 'REPLACE INTO status (id, record_id, name, value) VALUES (null, :record_id, :name, :value)'; $sql = 'REPLACE INTO status (id, record_id, name, value) VALUES (null, :record_id, :name, :value)';