Index: /trunk/psLib/src/db/psDB.c
===================================================================
--- /trunk/psLib/src/db/psDB.c	(revision 7077)
+++ /trunk/psLib/src/db/psDB.c	(revision 7078)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.50 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-05-05 02:42:01 $
+ *  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-05-05 23:56:51 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -918,5 +918,5 @@
     bool status = p_psDBRunQuery(dbh, "START TRANSACTION");
     if (!status) {
-        psError(PS_ERR_UNKNOWN, false, "Failed to create new database.");
+        psError(PS_ERR_UNKNOWN, false, "Failed to start a new transaction.");
     }
 
@@ -933,5 +933,6 @@
 
     // is it safe to assume my_bool always safely casts to bool?
-    return (bool)mysql_commit(dbh->mysql);
+    // mysql_commit - Zero if successful. Non-zero if an error occurred.
+    return !(bool)mysql_commit(dbh->mysql);
 }
 
@@ -945,5 +946,6 @@
 
     // is it safe to assume my_bool always safely casts to bool?
-    return (bool)mysql_rollback(dbh->mysql);
+    // mysql_rollback - Zero if successful. Non-zero if an error occurred.
+    return !(bool)mysql_rollback(dbh->mysql);
 }
 
