Created
February 10, 2009 15:18
-
-
Save lebesnec/61419 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void shutdown() { | |
try { | |
connection.close(); | |
DriverManager.getConnection(PROTOCOL + ";shutdown=true"); | |
} catch (SQLException se) { | |
// an exception is thrown even if the database is closed correctly, | |
// so we have to check the current state to see if something failed | |
if (!"XJ015".equals(se.getSQLState())) | |
se.printStacktrace(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment