Debugging fixes to cokebank
authorJohn Hodge <[email protected]>
Sat, 19 Feb 2011 08:08:51 +0000 (16:08 +0800)
committerJohn Hodge <[email protected]>
Sat, 19 Feb 2011 08:08:51 +0000 (16:08 +0800)
src/cokebank_sqlite/main.c

index e539105..72d4572 100644 (file)
@@ -555,7 +555,7 @@ sqlite3_stmt *Bank_int_QuerySingle(sqlite3 *Database, const char *Query)
        // Prepare query
        ret = Bank_int_MakeStatemnt(Database, Query);
        if( !ret ) {
-               #if DEBUG
+               #if DEBUG >= 2
                printf("Bank_int_QuerySingle: RETURN NULL ret=NULL\n");
                #endif
                return NULL;
@@ -565,7 +565,7 @@ sqlite3_stmt *Bank_int_QuerySingle(sqlite3 *Database, const char *Query)
        rv = sqlite3_step(ret);
        // - Empty result set
        if( rv == SQLITE_DONE ) {
-               #if DEBUG
+               #if DEBUG >= 2
                printf("Bank_int_QuerySingle: RETURN NULL (rv == SQLITE_DONE)\n");
                #endif
                return NULL;
@@ -577,7 +577,7 @@ sqlite3_stmt *Bank_int_QuerySingle(sqlite3 *Database, const char *Query)
                return NULL;
        }
        
-       #if DEBUG
+       #if DEBUG >= 2
        printf("Bank_int_QuerySingle: RETURN %p\n", ret);
        #endif
        return ret;

UCC git Repository :: git.ucc.asn.au