seems like bindValue need to be done for each execute

This commit is contained in:
Ralf Becker 2015-02-16 15:52:00 +00:00
parent d1bea8ca1d
commit bb76fbe8c4

View File

@ -86,6 +86,8 @@ class sqlfs_utils extends sqlfs_stream_wrapper
++$n;
}
if (!$n) break; // just in case nothing is found, statement will execute just fine
$stmt->bindValue(':offset', $n, PDO::PARAM_INT);
}
unset($row); // not used, as we access bound variables
unset($stmt);