Fix for issue #2. StackOverflow when using databaseId.
Merge branch 'master' of https://github.com/mybatis/mybatis-3.git