Changeset 12353
- Timestamp:
- Mar 8, 2007, 3:37:55 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/db/tap_psDB.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/db/tap_psDB.c
r12351 r12353 6 6 * @author Joshua Hoblitt, University of Hawaii 7 7 * 8 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-03-09 01:3 2:21$8 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-03-09 01:37:55 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 241 241 psU64 rowsAffected = psDBUpdateRows(dbh, "horse", where, value); 242 242 psFree(where); 243 244 ok(rowsAffected, "psDBUpdateRows() - pink -> HOT pink"); 245 246 psArray *resultSet = psDBSelectRows(dbh, "horse", value, 0); 243 247 psFree(value); 244 245 ok(rowsAffected, "psDBUpdateRows() - pink -> HOT pink");246 247 psArray *resultSet = psDBSelectRows(dbh, "horse", value, 0);248 248 249 249 for (long i = 0; i < resultSet->n; i++) { … … 253 253 254 254 psMetadataItem *item; 255 bool test_ok = true; 255 256 while ((item = psListGetAndIncrement(cursor))) { 256 257 if (strcmp((char *)item->data.V, "HOT pink") == 0) { 257 ok(1, "psDBUpdateRows() - psDBSelectRows() found HOT pink");258 258 printf("\thorse color is: %s\n", (char *)item->data.V); 259 } else { 260 test_ok = false; 259 261 } 260 262 } 263 ok(test_ok, "psDBUpdateRows() - psDBSelectRows() found HOT pink"); 261 264 262 265 psFree(cursor);
Note:
See TracChangeset
for help on using the changeset viewer.
