Beispiel #1
0
 @Test(groups = JDBC)
 public void shouldSetLocale() throws SQLException {
   connection.setLocale(CHINESE);
   try (Statement statement = connection.createStatement()) {
     QueryResult result =
         queryResult(statement, "SELECT date_format(TIMESTAMP '2001-01-09 09:04', '%M')");
     assertThat(result).contains(row("一月"));
   }
 }