Changeset 4373
- Timestamp:
- Jun 23, 2005, 4:09:23 PM (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
r4371 r4373 12 12 * @author Joshua Hoblitt 13 13 * 14 * @version $Revision: 1.3 1$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06-24 0 1:45:09$14 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-24 02:09:23 $ 16 16 * 17 17 * Copyright 2005 Joshua Hoblitt, University of Hawaii … … 651 651 unsigned int i; 652 652 psPtr column; 653 654 // Verify database object is not null 655 if(dbh == NULL) { 656 psError(PS_ERR_UNEXPECTED_NULL,true,PS_ERRORTEXT_psDB_INVALID_PSDB); 657 return NULL; 658 } 659 660 // Verify table name is not null 661 if(tableName == NULL) { 662 psError(PS_ERR_UNEXPECTED_NULL,true,PS_ERRORTEXT_psDB_NULL_TABLE); 663 return NULL; 664 } 653 665 654 666 // find column types -
trunk/psLib/src/dataIO/psFileUtilsErrors.dat
r4297 r4373 58 58 # 59 59 psDB_INVALID_PSDB Invalid psDB has been specified. 60 psDB_NULL_TABLE NULL table specified. 60 61 psDB_FAILED_TO_CONNECT Failed to connect to database. Error: %s 61 62 psDB_FAILED_TO_CHANGE Failed to change database. Error: %s -
trunk/psLib/src/dataIO/psFileUtilsErrors.h
r4297 r4373 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06- 17 21:33:46$9 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-24 02:09:23 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 77 77 #define PS_ERRORTEXT_psFits_FITS_Z_SMALL "Current FITS HDU has %d z-planes, but z-plane %d was specified." 78 78 #define PS_ERRORTEXT_psDB_INVALID_PSDB "Invalid psDB has been specified." 79 #define PS_ERRORTEXT_psDB_NULL_TABLE "NULL table specified." 79 80 #define PS_ERRORTEXT_psDB_FAILED_TO_CONNECT "Failed to connect to database. Error: %s" 80 81 #define PS_ERRORTEXT_psDB_FAILED_TO_CHANGE "Failed to change database. Error: %s" -
trunk/psLib/src/db/psDB.c
r4371 r4373 12 12 * @author Joshua Hoblitt 13 13 * 14 * @version $Revision: 1.3 1$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06-24 0 1:45:09$14 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-24 02:09:23 $ 16 16 * 17 17 * Copyright 2005 Joshua Hoblitt, University of Hawaii … … 651 651 unsigned int i; 652 652 psPtr column; 653 654 // Verify database object is not null 655 if(dbh == NULL) { 656 psError(PS_ERR_UNEXPECTED_NULL,true,PS_ERRORTEXT_psDB_INVALID_PSDB); 657 return NULL; 658 } 659 660 // Verify table name is not null 661 if(tableName == NULL) { 662 psError(PS_ERR_UNEXPECTED_NULL,true,PS_ERRORTEXT_psDB_NULL_TABLE); 663 return NULL; 664 } 653 665 654 666 // find column types
Note:
See TracChangeset
for help on using the changeset viewer.
