Changeset 4271
- Timestamp:
- Jun 15, 2005, 9:52:21 AM (21 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 4 edited
-
dataIO/psDB.c (modified) (2 diffs)
-
dataIO/psFileUtilsErrors.dat (modified) (1 diff)
-
dataIO/psFileUtilsErrors.h (modified) (2 diffs)
-
db/psDB.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataIO/psDB.c
r4269 r4271 12 12 * @author Joshua Hoblitt 13 13 * 14 * @version $Revision: 1.2 4$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06-15 03:20:04$14 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-15 19:52:21 $ 16 16 * 17 17 * Copyright 2005 Joshua Hoblitt, University of Hawaii … … 230 230 bool status; 231 231 232 // Create SQL command string to drop table 232 233 psStringAppend(&query, "DROP TABLE %s", tableName); 233 234 235 // Execute query 234 236 status = p_psDBRunQuery(dbh, query); 235 237 if (!status) { 236 psError(PS_ERR_UNKNOWN, false, "Failed to drop table.");238 psError(PS_ERR_UNKNOWN, false, PS_ERRORTEXT_psDB_TABLE_DROP_FAIL); 237 239 } 238 240 -
trunk/psLib/src/dataIO/psFileUtilsErrors.dat
r4269 r4271 64 64 psDB_TABLE_CREATE_FAIL Failed to create table. 65 65 psDB_SQL_QUERY_FAIL Failed to execute SQL query. Error: %s 66 psDB_TABLE_DROP_FAIL Failed to drop table. 66 67 # 67 68 -
trunk/psLib/src/dataIO/psFileUtilsErrors.h
r4269 r4271 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-15 03:20:04$9 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-15 19:52:21 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 83 83 #define PS_ERRORTEXT_psDB_TABLE_CREATE_FAIL "Failed to create table." 84 84 #define PS_ERRORTEXT_psDB_SQL_QUERY_FAIL "Failed to execute SQL query. Error: %s" 85 #define PS_ERRORTEXT_psDB_TABLE_DROP_FAIL "Failed to drop table." 85 86 //~End 86 87 -
trunk/psLib/src/db/psDB.c
r4269 r4271 12 12 * @author Joshua Hoblitt 13 13 * 14 * @version $Revision: 1.2 4$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06-15 03:20:04$14 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-15 19:52:21 $ 16 16 * 17 17 * Copyright 2005 Joshua Hoblitt, University of Hawaii … … 230 230 bool status; 231 231 232 // Create SQL command string to drop table 232 233 psStringAppend(&query, "DROP TABLE %s", tableName); 233 234 235 // Execute query 234 236 status = p_psDBRunQuery(dbh, query); 235 237 if (!status) { 236 psError(PS_ERR_UNKNOWN, false, "Failed to drop table.");238 psError(PS_ERR_UNKNOWN, false, PS_ERRORTEXT_psDB_TABLE_DROP_FAIL); 237 239 } 238 240
Note:
See TracChangeset
for help on using the changeset viewer.
