Index: trunk/psLib/test/dataIO/tst_psDB.c
===================================================================
--- trunk/psLib/test/dataIO/tst_psDB.c	(revision 4372)
+++ trunk/psLib/test/dataIO/tst_psDB.c	(revision 4374)
@@ -9,6 +9,6 @@
  *  @author Aaron Culliney, MHPCC
  *
- *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-06-24 01:49:25 $
+ *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-06-24 02:11:59 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -1549,11 +1549,4 @@
                 return 5*(itemNum+1);
             }
-            //                if(((psArray*)mdItem->data[0])->type.type != PS_TYPE_S32) {
-            //                    psError(PS_ERR_UNKNOWN,true,"Column #%d vector type %d not as expected %d",
-            //                            itemNum,((psVector*)mdItem->data.V)->type.type, PS_TYPE_S32);
-            //                    psDBDropTable(dbh,table);
-            //                    psDBCleanup(dbh);
-            //                    return 6*(itemNum+1);
-            //                }
             if(((psArray*)mdItem->data.V)->n != 3) {
                 psError(PS_ERR_UNKNOWN,true,"Column #%d vector size %d not as expected %d",
@@ -1730,4 +1723,23 @@
     psFree(mdIter);
     psFree(meta);
+
+    // Attempt to dump columns from NULL database object
+    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error message for NULL database");
+    if(psDBDumpCols(NULL,table) != NULL) {
+        psError(PS_ERR_UNKNOWN,true,"Did not expect non-NULL when dumping columns from NULL database");
+        psDBDropTable(dbh,table);
+        psDBCleanup(dbh);
+        return 10;
+    }
+
+    // Attempt to dump columns for NULL table
+    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error message for NULL table");
+    if(psDBDumpCols(dbh,NULL) != NULL) {
+        psError(PS_ERR_UNKNOWN,true,"Did not expect non-NULL when dumping columns from NULL table");
+        psDBDropTable(dbh,table);
+        psDBCleanup(dbh);
+        return 11;
+    }
+
 
     psDBDropTable(dbh, table);
