IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8251


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

Location:
trunk/psLib/src/db
Files:
2 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);
  • trunk/psLib/src/db/psDB.h

    r7651 r8251  
    1010 *  @author Joshua Hoblitt
    1111 *
    12  *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-06-23 02:57:04 $
     12 *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-08-09 04:30:00 $
    1414 *
    1515 *  Copyright 2005 Joshua Hoblitt, University of Hawaii
     
    355355);
    356356
     357/** Generates an SQL "Where" fragment
     358 *
     359 * This function generates an SQL fragment (not a whole usable query) based on
     360 * the standard "where" metadata format.
     361 *
     362 * @return psString:   A psString or NULL on failure
     363 */
     364char    *psDBGenerateWhereSQL(const psMetadata *where);
     365
    357366/// @}
    358367
Note: See TracChangeset for help on using the changeset viewer.