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

Ns_PdDbResultId

Overview

Send to the client the id last affected by a exec.

Syntax

    void Ns_PdDbResultId(void *handle);

Description

This function sends to the client with Ns_PdSendString the id of the last object affected an by exec command or a null terminated string.

Psuedo-code Example

    Ns_PdDbResultId(void *handle)
    {
        char *idstr;
        DBMSState       *state = (DBMSState *) handle;
        Ns_PdLog(Trace, "resultid:");
        
        idstr = PdGetLastOIDAffected(handle);
        if (idstr == NULL) {
            idstr = "";
        }
        Ns_PdSendString(idstr);
    }
    

Top of Page

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