Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- val conn = DriverManager.getConnection("jdbc:mysql://...")
- // stuff
- } catch {
- case ex: SQLException => {
- // exception handling
- }
- } finally {
- // This doesn't work because of the scope of conn... any thoughts?
- conn.close()
- }
Add Comment
Please, Sign In to add comment