Index: trunk/psLib/src/db/psDB.c
===================================================================
--- trunk/psLib/src/db/psDB.c	(revision 10982)
+++ trunk/psLib/src/db/psDB.c	(revision 10984)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.126 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-01-09 01:38:23 $
+ *  @version $Revision: 1.127 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-01-09 01:43:24 $
  *
  *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
@@ -1261,4 +1261,20 @@
         // string
         switch (item->type) {
+        case PS_DATA_U8: {
+                bind[i].length  = 0;
+                bind[i].buffer  = &item->data.U8;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.U8)
+                                  ? (my_bool *)&isNull
+                                  : NULL;
+                break;
+            }
+        case PS_DATA_U16: {
+                bind[i].length  = 0;
+                bind[i].buffer  = &item->data.U16;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.U16)
+                                  ? (my_bool *)&isNull
+                                  : NULL;
+                break;
+            }
         case PS_DATA_U32: {
                 bind[i].length  = 0;
@@ -1273,4 +1289,20 @@
                 bind[i].buffer  = &item->data.U64;
                 bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.U64)
+                                  ? (my_bool *)&isNull
+                                  : NULL;
+                break;
+            }
+        case PS_DATA_S8: {
+                bind[i].length  = 0;
+                bind[i].buffer  = &item->data.S8;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.S8)
+                                  ? (my_bool *)&isNull
+                                  : NULL;
+                break;
+            }
+        case PS_DATA_S16: {
+                bind[i].length  = 0;
+                bind[i].buffer  = &item->data.S16;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.S16)
                                   ? (my_bool *)&isNull
                                   : NULL;
@@ -1391,15 +1423,5 @@
         default: {
                 psError(PS_ERR_BAD_PARAMETER_TYPE , true,
-                        "FIXME: Only type of "
-                        "PS_DATA_U32 (PS_DATA_S32), "
-                        "PS_DATA_U64 (PS_DATA_S64), "
-                        "PS_DATA_S32 (PS_DATA_S32), "
-                        "PS_DATA_S64 (PS_DATA_S64), "
-                        "PS_DATA_F32 (PS_DATA_F32), "
-                        "PS_DATA_F64 (PS_DATA_F64), "
-                        "PS_DATA_BOOL (PS_DATA_BOOL), "
-                        "PS_DATA_STRING "
-                        "and PS_DATA_TIME are supported.");
-
+                        "FIXME: Unsupported data type");
                 psFree(cursor);
 
@@ -1504,6 +1526,5 @@
         default: {
                 psError(PS_ERR_BAD_PARAMETER_TYPE, true,
-                        "FIXME: Only type of PS_DATA_S32, PS_DATA_F32, PS_DATA_F64, PS_DATA_BOOL, "
-                        "and PS_DATA_STRING are supported, (not %d).", item->type);
+                        "FIXME: Unsupported data type %d", item->type);
 
                 psFree(query);
