Index: /trunk/FACT++/src/root2sql.cc
===================================================================
--- /trunk/FACT++/src/root2sql.cc	(revision 19061)
+++ /trunk/FACT++/src/root2sql.cc	(revision 19062)
@@ -55,4 +55,5 @@
         ("max",            var<int64_t>(int64_t(0)),  "Maximum number of events to process (0: all), mainly for test purpose")
         ("no-insert",      po_switch(),               "Does not insert any data into the table")
+        ("engine",         var<string>("MyISAM"),     "Database engine to be used when a new table is created")
         ("print-branches", po_switch(),               "Print the branches found in the tree")
         ("print-leaves",   po_switch(),               "Print the leaves found in the tree (this is what is processed)")
@@ -131,5 +132,5 @@
         "\n"
         "All columns are created as NOT NULL as default and the table is created as "
-        "MyISAM.\n"
+        "MyISAM (default).\n"
         "\n"
         "For debugging purpose, or to just create or drop a table, the final insert "
@@ -268,4 +269,6 @@
     const bool noinsert          = conf.Get<bool>("no-insert");
 
+    const string engine          = conf.Get<string>("engine");
+
     const bool print_branches    = conf.Get<bool>("print-branches");
     const bool print_leaves      = conf.Get<bool>("print-leaves");
@@ -426,5 +429,5 @@
         ")\n"
         "DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci\n"
-        "ENGINE=MyISAM\n"
+        "ENGINE="+engine+"\n"
         "COMMENT='created by "+conf.GetName()+"'\n";
 
