Index: /branches/eam_rel9_b1/psLib/src/db/psDB.c
===================================================================
--- /branches/eam_rel9_b1/psLib/src/db/psDB.c	(revision 6173)
+++ /branches/eam_rel9_b1/psLib/src/db/psDB.c	(revision 6174)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.44.16.2 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-01-22 07:05:43 $
+ *  @version $Revision: 1.44.16.3 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-01-22 11:11:01 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -308,4 +308,10 @@
     // Get number of rows returned in result
     rowCount = mysql_num_rows(result);
+    // XXX has mysql's semantics changed?  If this is zero then why was a
+    // result set returned?
+    if (!rowCount) {
+        mysql_free_result(result);
+        return NULL;
+    }
 
     // pre-allocate enough elements to hold the complete result set
@@ -476,4 +482,10 @@
 
     rowCount = mysql_num_rows(result);
+    // XXX has mysql's semantics changed?  If this is zero then why was a
+    // result set returned?
+    if (rowCount == 0) {
+        mysql_free_result(result);
+        return NULL;
+    }
 
     // pre-allocate enough elements to hold the complete result set
