Stephen Deasey wrote:

    sqlite3_stmt *st;

    sqlite3_prepare_v2(handle, sql, length, &st, &tail)

    if (sqlite3_column_count(st) == 0) {
        /* DML */
    }

Ah, that's much cleaner! I guess late at night I overlooked the sqlite3_column* set of functions. Using sqlite3_column_name could be a better approach for DbBindRow also, rather than relying on the per-row callback being called. Although it may not matter much - does anyone care about what columns are returned if there are no rows?

-J


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to