Fixed typo of the SQL file name.

This commit is contained in:
takezoe
2013-04-26 18:20:45 +09:00
parent 5ac4dfaf4a
commit 2fd73d677c

View File

@@ -25,7 +25,7 @@ object AutoUpdate {
* If corresponding SQL file does not exist, this method do nothing.
*/
def update(conn: Connection): Unit = {
val sqlPath = "update/%d_%d.sq".format(majorVersion, minorVersion)
val sqlPath = "update/%d_%d.sql".format(majorVersion, minorVersion)
val in = Thread.currentThread.getContextClassLoader.getResourceAsStream(sqlPath)
if(in != null){
val sql = IOUtils.toString(in)