Validate SQL with JDBC before trying to parse it