Index: trunk/FACT++/src/root2sql.cc
===================================================================
--- trunk/FACT++/src/root2sql.cc	(revision 19076)
+++ trunk/FACT++/src/root2sql.cc	(revision 19077)
@@ -551,4 +551,11 @@
         cout << count << " out of " << num << " row(s) read from file [N=" << first << ".." << num-1 << "]." << endl;
 
+    if (count==0)
+    {
+        if (verbose>0)
+            cout << "Total execution time: " << Time().UnixTime()-start.UnixTime() << "s\n" << endl;
+        return 0;
+    }
+
     // -------------------------------------------------------------------------
 
