From 504645cf00f797290a530d93bb27d65150901c4c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 16 Jan 2014 14:07:16 +0100 Subject: [PATCH] Add bindParam to statement wrapper --- lib/private/db/statementwrapper.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/private/db/statementwrapper.php b/lib/private/db/statementwrapper.php index 5e89261d93..db4a3e1b85 100644 --- a/lib/private/db/statementwrapper.php +++ b/lib/private/db/statementwrapper.php @@ -169,4 +169,18 @@ class OC_DB_StatementWrapper { public function fetchOne($colnum = 0) { return $this->statement->fetchColumn($colnum); } + + /** + * Binds a PHP variable to a corresponding named or question mark placeholder in the + * SQL statement that was use to prepare the statement. + * + * @param mixed $column Either the placeholder name or the 1-indexed placeholder index + * @param mixed $variable The variable to bind + * @param integer|null $type one of the PDO::PARAM_* constants + * @param integer|null $length max length when using an OUT bind + * @return boolean + */ + public function bindParam($column, &$variable, $type = null, $length = null){ + return $this->statement->bindParam($column, $variable, $type, $length); + } }