public void testBug12753() throws Exception {
  if (versionMeetsMinimum(4,1)) {
    Properties props=new Properties();
    props.setProperty("sessionVariables","sql_mode=ansi");
    Connection sessionConn=null;
    try {
      sessionConn=getConnectionWithProps(props);
      String sqlMode=getMysqlVariable(sessionConn,"sql_mode");
      assertTrue(sqlMode.indexOf("ANSI") != -1);
    }
  finally {
      if (sessionConn != null) {
        sessionConn.close();
        sessionConn=null;
      }
    }
  }
}

public void testBug12753 ( ) throws Exception { if ( versionMeetsMinimum ( 4 , 1 ) ) { Properties props = new Properties ( ) ; props . setProperty ( "sessionVariables" , "sql_mode=ansi" ) ; Connection sessionConn = null ; try { sessionConn = getConnectionWithProps ( props ) ; String sqlMode = getMysqlVariable ( sessionConn , "sql_mode" ) ; assertTrue ( sqlMode . indexOf ( "ANSI" ) != - 1 ) ; } finally { if ( sessionConn != null ) { sessionConn . close ( ) ; sessionConn = null ; } } } }
tests fix for bug # 12753 , sessionvariables = . . . . = . . . . , doesn ' t work as it ' s tokenized incorrectly .
