src/Pure/Admin/build_log.scala
changeset 65668 366bc4e6a238
parent 65665 9b7fb07b4a96
child 65670 490649872acc
--- a/src/Pure/Admin/build_log.scala	Mon May 01 13:39:27 2017 +0200
+++ b/src/Pure/Admin/build_log.scala	Mon May 01 15:42:26 2017 +0200
@@ -823,13 +823,13 @@
       val (columns, from) =
         if (ml_statistics) {
           val columns = columns1 ::: List(Build_Info.ml_statistics(table2))
-          val from =
-            "(" + table1.sql + " LEFT JOIN " + table2.sql + " ON " +
+          val join =
+            SQL.join_outer(table1, table2,
               Meta_Info.log_name(table1).sql + " = " +
               Meta_Info.log_name(table2).sql + " AND " +
               Build_Info.session_name(table1).sql + " = " +
-              Build_Info.session_name(table2).sql + ")"
-          (columns, from)
+              Build_Info.session_name(table2).sql)
+          (columns, SQL.enclose(join))
         }
         else (columns1, table1.sql)