diff --git a/src/Db/Connection.php b/src/Db/Connection.php index acf2a51..82f6cb3 100644 --- a/src/Db/Connection.php +++ b/src/Db/Connection.php @@ -18,7 +18,7 @@ class Connection * @return OdbcResultSet|resource|string * @throws SqlException */ - public static function execute($sql, $values, $fetchMode = \PDO::FETCH_ASSOC) + public static function execute($sql, $values = array(), $fetchMode = \PDO::FETCH_ASSOC) { return new OdbcResultset(self::getReq()->getResultSet($sql, $values, $fetchMode)); } @@ -29,7 +29,7 @@ class Connection * @param $query * @return OdbcResultSet|resource|string */ - public static function executeDontThrow($sql, $values, $fetchMode = \PDO::FETCH_ASSOC) + public static function executeDontThrow($sql, $values = array(), $fetchMode = \PDO::FETCH_ASSOC) { try { $res = $this->execute($sql, $values, $fetchMode);