IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2006, 6:30:00 PM (20 years ago)
Author:
jhoblitt
Message:

make psDBGenerateWhereSQL() public
add psTrace() calls to the query execution functions

File:
1 edited

Legend:

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

    r8232 r8251  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.78 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-08-08 23:32:22 $
     14 *  @version $Revision: 1.79 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-08-09 04:30:00 $
    1616 *
    1717 *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
     
    3737#include "psError.h"
    3838#include "psString.h"
     39#include "psTrace.h"
    3940
    4041
     
    8384static char    *psDBGenerateDeleteRowSQL(const char *tableName, const psMetadata *where,
    8485        unsigned long long limit);
    85 static char    *psDBGenerateWhereSQL(const psMetadata *where);
    8686static char    *psDBGenerateSetSQL(const psMetadata *set
    8787                                  );
     
    795795    }
    796796    va_end(argPtr);
     797
     798    psTrace("psLib.db", PS_LOG_INFO, "Executing SQL: %s", query);
     799
    797800    if (mysql_real_query(dbh->mysql, query, (unsigned long)strlen(query)) !=0) {
    798801        //The following if statement was added to standardize outputs between platforms for testing purposes.
     
    836839    }
    837840    va_end(argPtr);
     841
     842    psTrace("psLib.db", PS_LOG_INFO, "Executing SQL: %s", query);
    838843
    839844    // Prepare SQL statement
     
    14611466}
    14621467
    1463 static char *psDBGenerateWhereSQL(const psMetadata *where)
     1468char *psDBGenerateWhereSQL(const psMetadata *where)
    14641469{
    14651470    PS_ASSERT_PTR_NON_NULL(where, NULL);
Note: See TracChangeset for help on using the changeset viewer.