Permalink
Browse files

Add getQuery()

  • Loading branch information...
1 parent 916cb7a commit 1bb77c70cde5424e4fdbd163c1afe59726e28855 @haraldpdl haraldpdl committed Aug 1, 2011
Showing with 18 additions and 0 deletions.
  1. +18 −0 osCommerce/OM/Core/PDOStatement.php
@@ -12,6 +12,13 @@
use osCommerce\OM\Core\PDO;
use osCommerce\OM\Core\Registry;
+/**
+ * Represents a prepared statement and, after the statement is executed, an
+ * associated result set.
+ *
+ * @since v3.0.0
+ */
+
class PDOStatement extends \PDOStatement {
protected $_is_error = false;
protected $_binded_params = array();
@@ -151,6 +158,17 @@ public function isError() {
return $this->_is_error;
}
+/**
+ * Return the query string
+ *
+ * @return string
+ * @since v3.0.2
+ */
+
+ public function getQuery() {
+ return $this->queryString;
+ }
+
public function __destruct() {
if ( $this->_cache_read === false ) {
if ( isset($this->_cache_key) ) {

0 comments on commit 1bb77c7

Please sign in to comment.