Index: trunk/psLib/src/db/psDB.c
===================================================================
--- trunk/psLib/src/db/psDB.c	(revision 8758)
+++ trunk/psLib/src/db/psDB.c	(revision 8759)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.90 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-09-07 01:00:46 $
+ *  @version $Revision: 1.91 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-09-07 01:23:03 $
  *
  *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
@@ -654,5 +654,5 @@
         // find ptype of column
         pType = psDBMySQLToPType(field[i].type, field[i].flags);
-        if (pType < 0) {
+        if (!pType) {
             psError(PS_ERR_UNKNOWN, false, "Failed to lookup type.");
             psFree(table);
@@ -981,5 +981,5 @@
             // lookup MySQL column type
             pType = psDBMySQLToPType(field[i].type, field[i].flags);
-            if (pType < 0) {
+            if (!pType) {
                 psError(PS_ERR_UNKNOWN, false, "Failed to lookup type.");
                 psFree(md);
@@ -1692,5 +1692,5 @@
     if (!sqlType) {
         psError(PS_ERR_UNEXPECTED_NULL, true, "type lookup failed.");
-        return -1;
+        return 0;
     }
 
@@ -1712,5 +1712,5 @@
         psError(PS_ERR_UNEXPECTED_NULL, true, "type lookup failed.");
 
-        return -1;
+        return 0;
     }
 
