/**
         This method dumps the parameters for debug
         @access public
  		@throws PDOException object
         @return array
 */
 public function debug_dump_params()
 {
     try {
         return $this->Stmt->debugDumpParams();
     } catch (PDOException $e) {
         throw $e;
     }
 }
示例#2
0
 /**
  * Get a string representing the query and values for a given SQL statement
  *
  * @param object $cStatement The PDO statement
  * @return string The dump of query and params, captured into a string
  */
 public function statementReturn($cStatement)
 {
     ob_start();
     $cStatement->debugDumpParams();
     echo "FullSQL:" . PHP_EOL;
     echo $cStatement->queryString . PHP_EOL;
     return ob_get_clean();
 }
示例#3
0
 /**
  * retrieves the debugDumpParams from the PDO statement which holds the prepared SQL
  *
  * @return	object
  */
 protected function getDebugParams()
 {
     return $this->statement->debugDumpParams();
 }