IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8270


Ignore:
Timestamp:
Aug 10, 2006, 11:36:54 AM (20 years ago)
Author:
jhoblitt
Message:

additional psDB traces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/db/psDB.c

    r8251 r8270  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.79 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-08-09 04:30:00 $
     14 *  @version $Revision: 1.80 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-08-10 21:36:54 $
    1616 *
    1717 *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
     
    182182    }
    183183
     184    psTrace("psLib.db", PS_LOG_INFO, "connected to database %s", dbname);
     185
    184186    return dbh;
    185187}
     
    217219        psDBPTypeToMySQLTableCleanup();
    218220    }
     221
     222    psTrace("psLib.db", PS_LOG_INFO, "disconnected");
    219223}
    220224
     
    236240    psFree(query);
    237241
     242    psTrace("psLib.db", PS_LOG_INFO, "created a database named %s", dbname);
     243
    238244    return status;
    239245}
     
    253259    }
    254260
     261    psTrace("psLib.db", PS_LOG_INFO, "changed to using database %s", dbname);
     262
    255263    return true;
    256264}
     
    272280
    273281    psFree(query);
     282
     283    psTrace("psLib.db", PS_LOG_INFO, "dropped database %s", dbname);
    274284
    275285    return status;
     
    299309    psFree(query);
    300310
     311    psTrace("psLib.db", PS_LOG_INFO, "created table %s", tableName);
     312
    301313    return status;
    302314}
     
    319331
    320332    psFree(query);
     333
     334    psTrace("psLib.db", PS_LOG_INFO, "dropped table %s", tableName);
    321335
    322336    return status;
     
    726740    PS_ASSERT_PTR_NON_NULL(dbh, -1);
    727741
     742    psTrace("psLib.db", PS_LOG_INFO, "calling myql_insert_id()");
     743
    728744    // XXX return type is actually my_ulonglong - should the return be psU64?
    729745    return (long)mysql_insert_id(dbh->mysql);
     
    733749{
    734750    PS_ASSERT_PTR_NON_NULL(dbh, -1);
     751
     752    psTrace("psLib.db", PS_LOG_INFO, "calling mysql_autocommit(): %u", !mode);
    735753
    736754    // mode needs to be inverted as autocommits are the opposide of explicit
     
    757775    PS_ASSERT_PTR_NON_NULL(dbh, -1);
    758776
     777    psTrace("psLib.db", PS_LOG_INFO, "calling myql_commit()");
     778
    759779    // is it safe to assume my_bool always safely casts to bool?
    760780    // mysql_commit - Zero if successful. Non-zero if an error occurred.
     
    765785{
    766786    PS_ASSERT_PTR_NON_NULL(dbh, -1);
     787
     788    psTrace("psLib.db", PS_LOG_INFO, "calling myql_rollback()");
    767789
    768790    // is it safe to assume my_bool always safely casts to bool?
Note: See TracChangeset for help on using the changeset viewer.