[Pkg-owncloud-commits] [owncloud] 99/134: Add bindParam to statement wrapper
David Prévot
taffit at moszumanska.debian.org
Fri Apr 18 21:44:05 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 79635ccb41b61e18834af570a10fbaae11342490
Author: Robin Appelman <icewind at owncloud.com>
Date: Thu Jan 16 14:07:16 2014 +0100
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 b8da1af..27c1842 100644
--- a/lib/private/db/statementwrapper.php
+++ b/lib/private/db/statementwrapper.php
@@ -188,4 +188,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);
+ }
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list