public function deallocate(): self
    {
        if (!$this->queryId) {
            throw new exceptions\RuntimeException('The statement has already been deallocated');
        }

        $this->connection->execute('deallocate ' . $this->queryId);
        $this->queryId = null;

        return $this;
    }
public function deallocate(): self
    {
        if (!$this->queryId) {
            throw new exceptions\RuntimeException('The statement has already been deallocated');
        }

        $this->connection->execute('deallocate ' . $this->queryId);
        $this->queryId = null;

        return $this;
    }
public function deallocate ( ) : self { if ( ! $ this -> queryId ) { throw new exceptions \ RuntimeException ( 'The statement has already been deallocated' ) ; } $ this -> connection -> execute ( 'deallocate ' . $ this -> queryId ) ; $ this -> queryId = null ; return $ this ; }
Manually deallocates the prepared statement

This is usually not needed as all the prepared statements are automatically
deallocated when database connection is closed. Trying to call execute()
after deallocate() will result in an Exception.

@return $this
@throws exceptions\InvalidQueryException
@throws exceptions\RuntimeException
Manually deallocates the prepared statement