Changeset 8758
- Timestamp:
- Sep 6, 2006, 3:00:46 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/db/psDB.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/db/psDB.c
r8756 r8758 12 12 * @author Joshua Hoblitt 13 13 * 14 * @version $Revision: 1. 89$ $Name: not supported by cvs2svn $15 * @date $Date: 2006-09-07 0 0:40:21$14 * @version $Revision: 1.90 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-09-07 01:00:46 $ 16 16 * 17 17 * Copyright (C) 2005-2006 Joshua Hoblitt, University of Hawaii … … 654 654 // find ptype of column 655 655 pType = psDBMySQLToPType(field[i].type, field[i].flags); 656 if (pType < 0) { 657 psError(PS_ERR_UNKNOWN, false, "Failed to lookup type."); 658 psFree(table); 659 mysql_free_result(result); 660 return NULL; 661 } 656 662 //psLogMsg( __func__, PS_LOG_INFO, "pType=[%ld]\n", pType ); 657 663 … … 975 981 // lookup MySQL column type 976 982 pType = psDBMySQLToPType(field[i].type, field[i].flags); 983 if (pType < 0) { 984 psError(PS_ERR_UNKNOWN, false, "Failed to lookup type."); 985 psFree(md); 986 mysql_free_result(result); 987 return NULL; 988 } 977 989 978 990 len = fieldLength[i];
Note:
See TracChangeset
for help on using the changeset viewer.
