protected static void sendInitSQL ( Connection connection , String initSQL ) throws SQLException { // fetch any configured setup sql. if ( initSQL != null ) { Statement stmt = null ; try { stmt = connection . createStatement ( ) ; stmt . execute ( initSQL ) ; if ( testSupport ) { // only to aid code coverage, normally set to false stmt = null ; } } finally { if ( stmt != null ) { stmt . close ( ) ; } } } }
Sends out the SQL as defined in the config upon first init of the connection .