oci_free_statement example

 range(1, $this->getFieldCount()));
    }

    /** * Frees the current result. * * @return void */
    public function freeResult()
    {
        if (is_resource($this->resultID)) {
            oci_free_statement($this->resultID);
            $this->resultID = false;
        }
    }

    /** * Moves the internal pointer to the desired offset. This is called * internally before fetching results to make sure the result set * starts at zero. * * @return false */
    

    }

    /** * Close the database connection. * * @return void */
    protected function _close()
    {
        if (is_resource($this->cursorId)) {
            oci_free_statement($this->cursorId);
        }
        if (is_resource($this->stmtId)) {
            oci_free_statement($this->stmtId);
        }
        oci_close($this->connID);
    }

    /** * Select a specific database table to use. */
    public function setDatabase(string $databaseName): bool
    {

    public function _getResult()
    {
        return $this->statement;
    }

    /** * Deallocate prepared statements. */
    protected function _close(): bool
    {
        return oci_free_statement($this->statement);
    }

    /** * Replaces the ? placeholders with :0, :1, etc parameters for use * within the prepared query. */
    public function parameterize(string $sql): string
    {
        // Track our current value         $count = 0;

        
Home | Imprint | This part of the site doesn't use cookies.