Index: /trunk/ippTools/src/pztool.c
===================================================================
--- /trunk/ippTools/src/pztool.c	(revision 20200)
+++ /trunk/ippTools/src/pztool.c	(revision 20201)
@@ -436,4 +436,13 @@
         }
         psFree(lock_query);
+
+        // we must fetch the result set from aquiring the row level lock or
+        // MySQL will barf all over us.
+        psArray *output = p_psDBFetchResult(config->dbh);
+        if (!output) {
+            psError(PS_ERR_UNKNOWN, false, "database error");
+            return false;
+        }
+        psFree(output);
     }
 
