Commit b7fdd2bf authored by beberlei's avatar beberlei

DBAL-30 - Add missing call to connect() in query()

parent b170b3b4
......@@ -39,6 +39,7 @@ use PDO, Closure, Exception,
* @author Roman Borschel <roman@code-factory.org>
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
* @author Lukas Smith <smith@pooteeweet.org> (MDB2 library)
* @author Benjamin Eberlei <kontakt@beberlei.de>
*/
class Connection implements DriverConnection
{
......@@ -610,6 +611,8 @@ class Connection implements DriverConnection
*/
public function query()
{
$this->connect();
return call_user_func_array(array($this->_conn, 'query'), func_get_args());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment