seems like bindValue need to be done for each execute

This commit is contained in:
Ralf Becker 2015-02-16 15:51:44 +00:00
parent f3de318e81
commit 7e8f2716e6

View File

@ -91,6 +91,8 @@ class Utils extends StreamWrapper
++$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);