protected boolean isDDLStatement ( String [ ] sqlTokens ) { if ( sqlTokens . length > 0 ) { for ( String statement : DDL_STATEMENTS ) { if ( sqlTokens [ 0 ] . equalsIgnoreCase ( statement ) ) return true ; } } return false ; }
Do a quick check if this SQL statement is a DDL statement