public function execute(array $values = []): QueryResult
    {
        try {
            if ($this->pdoStatement->execute($values)) {
                return new PdoQueryResult($this->pdoStatement);
            }

            throw new DatabaseException('Executing the prepared statement failed.');
        } catch (PDOException $pdoe) {
            throw new DatabaseException($pdoe->getMessage(), $pdoe);
        }
    }
public function execute(array $values = []): QueryResult
    {
        try {
            if ($this->pdoStatement->execute($values)) {
                return new PdoQueryResult($this->pdoStatement);
            }

            throw new DatabaseException('Executing the prepared statement failed.');
        } catch (PDOException $pdoe) {
            throw new DatabaseException($pdoe->getMessage(), $pdoe);
        }
    }
public function execute ( array $ values = [ ] ) : QueryResult { try { if ( $ this -> pdoStatement -> execute ( $ values ) ) { return new PdoQueryResult ( $ this -> pdoStatement ) ; } throw new DatabaseException ( 'Executing the prepared statement failed.' ) ; } catch ( PDOException $ pdoe ) { throw new DatabaseException ( $ pdoe -> getMessage ( ) , $ pdoe ) ; } }
executes a prepared statement

@param   array  $values  optional  specifies all necessary information for bindParam()
the array elements must use keys corresponding to the
number of the position or name of the parameter
@return  \stubbles\db\pdo\PdoQueryResult
@throws  \stubbles\db\DatabaseException
@see     http://php.net/pdostatement-execute
executes a prepared statement