Advertisement
Guest User

Untitled

a guest
Mar 9th, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.32 KB | None | 0 0
  1.     try {
  2.       val statement = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY)
  3.       val rs = statement.executeQuery(query)
  4.       while (rs.next) {
  5.         result += (rs.getString("uid") -> new Vector(Array(rs.getDouble("ratio"))))
  6.       }
  7.     }
  8.     finally {
  9.       conn.close()
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement