summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-01-16 14:07:16 +0100
committerRobin Appelman <icewind@owncloud.com>2014-01-16 14:07:16 +0100
commit504645cf00f797290a530d93bb27d65150901c4c (patch)
treebaa62089247193855b4cebf14bb86c4e04fc8bb9 /lib/private
parentd1f3f121d6992be07c3600882449ce17d56f116f (diff)
downloadnextcloud-server-504645cf00f797290a530d93bb27d65150901c4c.tar.gz
nextcloud-server-504645cf00f797290a530d93bb27d65150901c4c.zip
Add bindParam to statement wrapper
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/db/statementwrapper.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/db/statementwrapper.php b/lib/private/db/statementwrapper.php
index 5e89261d936..db4a3e1b850 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);
+ }
}