[ Previous ] [ Contents ] [ Index ] [ Next ]

Ns_DbPoolPutHandle

Overview

Release a database handle for a pool

Syntax

    void Ns_DbPoolPutHandle(
    Ns_DbHandle *handle
    );

Description

The Ns_DbPoolPutHandle function releases the database handle handle into the pool it was derived from. If the handle was not originally obtained from a pool, an error message is written to the log.

Examples

    Ns_DbHandle *handle;
    if ((handle = Ns_DbPoolGetHandle("aPoolName")) != NULL) {
    	Ns_Set *row;
    	row = Ns_DbSelect(handle, "select * from aTable");
    	...
    	Ns_DbPoolPutHandle(handle); /* done with handle */

}

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.