Index: branches/tap_branches/ippTools/src/pxadd.c
===================================================================
--- branches/tap_branches/ippTools/src/pxadd.c	(revision 25900)
+++ branches/tap_branches/ippTools/src/pxadd.c	(revision 27838)
@@ -124,11 +124,11 @@
 bool pxaddQueueByCamID(pxConfig *config,
                        psS64 cam_id,
-		       char *workdir,
-		       char *reduction,
-		       char *label,
+                       char *workdir,
+                       char *reduction,
+                       char *label,
                        char *data_group,
-		       char *dvodb,
+                       char *dvodb,
                        char *note,
-		       bool image_only)
+                       bool image_only)
 {
     PS_ASSERT_PTR_NON_NULL(config, false);
@@ -140,5 +140,5 @@
         psMemSetPersistent(query, true);
         if (!query) {
-            psError(PXTOOLS_ERR_DATA, false, "failed to retreive SQL statement");
+            psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement");
             return false;
         }
@@ -149,14 +149,14 @@
     // on 32/64
     if (!p_psDBRunQueryF(config->dbh, query,
-			 "new", // state
-			 workdir  ? workdir   : "NULL",
-			 "dirty", //workdir_state
-			 reduction? reduction : "NULL",
-			 label    ? label     : "NULL",
-			 data_group ? data_group     : "NULL",
-			 dvodb    ? dvodb     : "NULL",
-			 note     ? note     : "NULL",
-			 image_only,
-			 (long long) cam_id
+                         "new", // state
+                         workdir  ? workdir   : "NULL",
+                         "dirty", //workdir_state
+                         reduction? reduction : "NULL",
+                         label    ? label     : "NULL",
+                         data_group ? data_group     : "NULL",
+                         dvodb    ? dvodb     : "NULL",
+                         note     ? note     : "NULL",
+                         image_only,
+                         (long long) cam_id
     )) {
         psError(PS_ERR_UNKNOWN, false, "database error");
