Changeset 8251
- Timestamp:
- Aug 8, 2006, 6:30:00 PM (20 years ago)
- Location:
- trunk/psLib/src/db
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/db/psDB.c
r8232 r8251 12 12 * @author Joshua Hoblitt 13 13 * 14 * @version $Revision: 1.7 8$ $Name: not supported by cvs2svn $15 * @date $Date: 2006-08-0 8 23:32:22$14 * @version $Revision: 1.79 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-08-09 04:30:00 $ 16 16 * 17 17 * Copyright (C) 2005-2006 Joshua Hoblitt, University of Hawaii … … 37 37 #include "psError.h" 38 38 #include "psString.h" 39 #include "psTrace.h" 39 40 40 41 … … 83 84 static char *psDBGenerateDeleteRowSQL(const char *tableName, const psMetadata *where, 84 85 unsigned long long limit); 85 static char *psDBGenerateWhereSQL(const psMetadata *where);86 86 static char *psDBGenerateSetSQL(const psMetadata *set 87 87 ); … … 795 795 } 796 796 va_end(argPtr); 797 798 psTrace("psLib.db", PS_LOG_INFO, "Executing SQL: %s", query); 799 797 800 if (mysql_real_query(dbh->mysql, query, (unsigned long)strlen(query)) !=0) { 798 801 //The following if statement was added to standardize outputs between platforms for testing purposes. … … 836 839 } 837 840 va_end(argPtr); 841 842 psTrace("psLib.db", PS_LOG_INFO, "Executing SQL: %s", query); 838 843 839 844 // Prepare SQL statement … … 1461 1466 } 1462 1467 1463 staticchar *psDBGenerateWhereSQL(const psMetadata *where)1468 char *psDBGenerateWhereSQL(const psMetadata *where) 1464 1469 { 1465 1470 PS_ASSERT_PTR_NON_NULL(where, NULL); -
trunk/psLib/src/db/psDB.h
r7651 r8251 10 10 * @author Joshua Hoblitt 11 11 * 12 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-0 6-23 02:57:04$12 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-08-09 04:30:00 $ 14 14 * 15 15 * Copyright 2005 Joshua Hoblitt, University of Hawaii … … 355 355 ); 356 356 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 */ 364 char *psDBGenerateWhereSQL(const psMetadata *where); 365 357 366 /// @} 358 367
Note:
See TracChangeset
for help on using the changeset viewer.
