Index: trunk/ippTools/src/pxtables.c
===================================================================
--- trunk/ippTools/src/pxtables.c	(revision 17145)
+++ trunk/ippTools/src/pxtables.c	(revision 17844)
@@ -30,5 +30,7 @@
     if (!createFunc(config->dbh)) { \
         psError(PS_ERR_UNKNOWN, false, "dbh access failed"); \
-        status = false; \
+        if (status) { \
+            status = false; \
+        } \
     }
 
@@ -36,5 +38,7 @@
     if (!dropFunc(config->dbh)) { \
         psError(PS_ERR_UNKNOWN, false, "dbh access failed"); \
-        status = false; \
+        if (status) { \
+            status = false; \
+        } \
     }
 
@@ -107,5 +111,5 @@
     CREATE_TABLE(pstampJobCreateTable);
 
-    return true;
+    return status;
 }
 
@@ -147,5 +151,5 @@
     if (!p_psDBRunQuery(config->dbh, "SET FOREIGN_KEY_CHECKS=0")) {
         psError(PS_ERR_UNKNOWN, false, "database error");
-        status = false; 
+        return false;
     }
 
@@ -210,5 +214,5 @@
     if (!p_psDBRunQuery(config->dbh, "SET FOREIGN_KEY_CHECKS=1")) {
         psError(PS_ERR_UNKNOWN, false, "database error");
-        status = false; 
+        return false;       
     }
 
