diff --git a/dblayeroo.php b/dblayeroo.php index 3ab1b66..7c22343 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -2835,6 +2835,21 @@ class dblayeroo $this->DBException ("execute : command not defined : no RC"); } } + /* }}} */ + + /** Execute a non prepared query in the database context. + * As there is no verification, this method is DANGEROUS and should not be + * used ! + * @param string $sql The SQL request to directely send to the database + * @return PDOStatement The PDO Statement to traverse + */ + public function directQuery ($sql) + /* {{{ */ + { + if (! key_exists ($this->dsn, self::$instance)) + $this->DBException ("Direct query without established connection"); + return self::$instance[$this->dsn]->query ($sql); + } /* }}} */ /** Error management