Index: trunk/psLib/src/db/psDB.c
===================================================================
--- trunk/psLib/src/db/psDB.c	(revision 10017)
+++ trunk/psLib/src/db/psDB.c	(revision 10044)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.113 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-11-16 00:38:48 $
+ *  @version $Revision: 1.114 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-11-17 22:06:57 $
  *
  *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
@@ -788,4 +788,11 @@
 }
 
+psU64 psDBAffectedRows(psDB *dbh)
+{
+    PS_ASSERT_PTR_NON_NULL(dbh, (psU64)-1);
+
+    // mysql_affected_rows() returns (my_ulonglong)-1 on error
+    return (psU64)mysql_affected_rows(dbh->mysql);
+}
 
 // database utility functions
Index: trunk/psLib/src/db/psDB.h
===================================================================
--- trunk/psLib/src/db/psDB.h	(revision 10017)
+++ trunk/psLib/src/db/psDB.h	(revision 10044)
@@ -10,6 +10,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-11-15 01:34:42 $
+ *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-11-17 22:06:57 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -437,4 +437,13 @@
 );
 
+/** The number of rows modified or inserted by the last query
+ *
+ *  This function returns ((psU64) - 1) on error
+ *
+ * @return psU64
+ */
+psU64 psDBAffectedRows(
+    psDB *dbh                           ///< Database handle
+);
 
 /// @}
