Index: /trunk/FACT++/src/fits2sql.cc
===================================================================
--- /trunk/FACT++/src/fits2sql.cc	(revision 19152)
+++ /trunk/FACT++/src/fits2sql.cc	(revision 19153)
@@ -648,4 +648,7 @@
                 connection.query("SELECT 1 FROM `"+table+"` WHERE 1"+where+" LIMIT 1").store();
 
+            if (print_select)
+                cout << "SELECT 1 FROM `"+table+"` WHERE 1" << where << " LIMIT 1" << endl;
+
             if (res.num_rows()>0)
             {
@@ -653,5 +656,5 @@
                 {
                     cout << "Conditional execution... detected existing rows!\n";
-                    cout << "Exit." << endl;
+                    cout << "Exit.\n" << endl;
                 }
                 return 0;
@@ -665,8 +668,4 @@
         return 7;
     }
-
-    if (print_select)
-        cout << "SELECT 1 FROM `"+table+"` WHERE 1" << where << " LIMIT 1" << endl;
-
 
     try
Index: /trunk/FACT++/src/root2sql.cc
===================================================================
--- /trunk/FACT++/src/root2sql.cc	(revision 19152)
+++ /trunk/FACT++/src/root2sql.cc	(revision 19153)
@@ -689,5 +689,5 @@
                 {
                     cout << "Conditional execution... detected existing rows!\n";
-                    cout << "Exit." << endl;
+                    cout << "Exit.\n" << endl;
                 }
                 return 0;
