public function exec($q, $args = array())
    {
        if ($q instanceof PDBquery) {
            $args = $q->getArgs();
            $q = $q->getQuery();
        };
        return $this->_prepare($q)->_execute($args) ? $this->_sth->rowCount() : false;
    }
public function exec($q, $args = array())
    {
        if ($q instanceof PDBquery) {
            $args = $q->getArgs();
            $q = $q->getQuery();
        };
        return $this->_prepare($q)->_execute($args) ? $this->_sth->rowCount() : false;
    }
public function exec ( $ q , $ args = array ( ) ) { if ( $ q instanceof PDBquery ) { $ args = $ q -> getArgs ( ) ; $ q = $ q -> getQuery ( ) ; } ; return $ this -> _prepare ( $ q ) -> _execute ( $ args ) ? $ this -> _sth -> rowCount ( ) : false ; }
Execute a result-less statement

Typically INSERT, UPDATE, DELETE.

@param string|object $q    SQL query with '?' placeholders or PDBquery object
@param array         $args (Optional) List of values corresponding to placeholders

@return mixed Number of affected rows, false on error
Execute a result - less statement