Changeset 8759
- Timestamp:
- Sep 6, 2006, 3:23:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/db/psDB.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/db/psDB.c
r8758 r8759 12 12 * @author Joshua Hoblitt 13 13 * 14 * @version $Revision: 1.9 0$ $Name: not supported by cvs2svn $15 * @date $Date: 2006-09-07 01: 00:46$14 * @version $Revision: 1.91 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-09-07 01:23:03 $ 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) {656 if (!pType) { 657 657 psError(PS_ERR_UNKNOWN, false, "Failed to lookup type."); 658 658 psFree(table); … … 981 981 // lookup MySQL column type 982 982 pType = psDBMySQLToPType(field[i].type, field[i].flags); 983 if ( pType < 0) {983 if (!pType) { 984 984 psError(PS_ERR_UNKNOWN, false, "Failed to lookup type."); 985 985 psFree(md); … … 1692 1692 if (!sqlType) { 1693 1693 psError(PS_ERR_UNEXPECTED_NULL, true, "type lookup failed."); 1694 return -1;1694 return 0; 1695 1695 } 1696 1696 … … 1712 1712 psError(PS_ERR_UNEXPECTED_NULL, true, "type lookup failed."); 1713 1713 1714 return -1;1714 return 0; 1715 1715 } 1716 1716
Note:
See TracChangeset
for help on using the changeset viewer.
