code: private void setAnsiMode() throws SQLException {
          Statement s = conn.createStatement();
          s.executeUpdate("SET sql_mode = 'ansi'");
          s.close();
      }
docs: Sets the session to ANSI mode.
  
  @throws SQLException If something goes wrong contacting the database.