Changeset 4427
- Timestamp:
- Jun 29, 2005, 9:39:56 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/dataIO/tst_psDB.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/dataIO/tst_psDB.c
r4394 r4427 9 9 * @author Aaron Culliney, MHPCC 10 10 * 11 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-06-2 5 02:45:15$11 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-29 19:39:56 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 2043 2043 2044 2044 // Delete row with valid arguments 2045 chgRows = psDBDeleteRows(dbh,table,where );2045 chgRows = psDBDeleteRows(dbh,table,where,10); 2046 2046 if(chgRows != 1) { 2047 2047 psError(PS_ERR_UNKNOWN,true,"Deleted rows %ld not as expected %ld", … … 2069 2069 2070 2070 // Attempt to delete row just deleted again 2071 chgRows = psDBDeleteRows(dbh,table,where );2071 chgRows = psDBDeleteRows(dbh,table,where,10); 2072 2072 if(chgRows != 0) { 2073 2073 psError(PS_ERR_UNKNOWN,true,"Deleted rows %ld not as expected %ld", … … 2096 2096 // Attempt to delete row with NULL database 2097 2097 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message for NULL database"); 2098 chgRows = psDBDeleteRows(NULL,table,where );2098 chgRows = psDBDeleteRows(NULL,table,where,10); 2099 2099 if(chgRows > 0) { 2100 2100 psError(PS_ERR_UNKNOWN,true,"Deleted rows %ld not as expected %ld", … … 2107 2107 // Attempt to delete row with invalid table 2108 2108 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message for invalid table"); 2109 chgRows = psDBDeleteRows(dbh,"table999",where );2109 chgRows = psDBDeleteRows(dbh,"table999",where,10); 2110 2110 if(chgRows > 0) { 2111 2111 psError(PS_ERR_UNKNOWN,true,"Deleted rows %ld not as expected %ld", … … 2117 2117 2118 2118 // Attempt to delete row with NULL where - deletes all rows 2119 chgRows = psDBDeleteRows(dbh,table,NULL );2119 chgRows = psDBDeleteRows(dbh,table,NULL,10); 2120 2120 if(chgRows != 2) { 2121 2121 psError(PS_ERR_UNKNOWN,true,"Deleted rows %ld not as expected %ld", … … 2143 2143 2144 2144 // Attempt to delete row with NULL where - deletes all rows from an empty table 2145 chgRows = psDBDeleteRows(dbh,table,NULL );2145 chgRows = psDBDeleteRows(dbh,table,NULL,10); 2146 2146 if(chgRows != 0) { 2147 2147 psError(PS_ERR_UNKNOWN,true,"Deleted rows %ld not as expected %ld",
Note:
See TracChangeset
for help on using the changeset viewer.
