src/Pure/Tools/server.scala
changeset 77541 9d9b30741fc4
parent 77540 c537905c2125
child 77552 080422b3d914
equal deleted inserted replaced
77540:c537905c2125 77541:9d9b30741fc4
   408 
   408 
   409             val server = new Server(port, log)
   409             val server = new Server(port, log)
   410             val server_info = Info(name, server.port, server.password)
   410             val server_info = Info(name, server.port, server.password)
   411 
   411 
   412             db.execute_statement(Data.table.delete(sql = Data.name.where_equal(name)))
   412             db.execute_statement(Data.table.delete(sql = Data.name.where_equal(name)))
   413             db.using_statement(Data.table.insert()) { stmt =>
   413             db.execute_statement(Data.table.insert(), body =
   414               stmt.string(1) = server_info.name
   414               { stmt =>
   415               stmt.int(2) = server_info.port
   415                 stmt.string(1) = server_info.name
   416               stmt.string(3) = server_info.password
   416                 stmt.int(2) = server_info.port
   417               stmt.execute()
   417                 stmt.string(3) = server_info.password
   418             }
   418               })
   419 
   419 
   420             server.start()
   420             server.start()
   421             (server_info, Some(server))
   421             (server_info, Some(server))
   422         }
   422         }
   423       }
   423       }