Skip to content
Permalink
Browse files

[CONJ-719] LocalTime fractional test correction for MySQL 5.5 that do…

…esn't support fractional dates
  • Loading branch information...
rusher committed Aug 2, 2019
1 parent fe789ff commit 3ce25357a3569845fc0bfcef830c2edc0cef03eb
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/test/java/org/mariadb/jdbc/LocalTimeTest.java
@@ -19,6 +19,9 @@

@Test
public void localTimeTest() throws SQLException {
if (!isMariadbServer()) {
cancelForVersion(5, 5);
}
Statement stmt = sharedConnection.createStatement();
stmt.execute("CREATE TEMPORARY TABLE LocalTimeTest(val TIME(6), val2 TIME)");
try (PreparedStatement prep =
@@ -77,6 +80,9 @@ public void localTimeTest() throws SQLException {

@Test
public void localDateTest() throws SQLException {
if (!isMariadbServer()) {
cancelForVersion(5, 5);
}
Statement stmt = sharedConnection.createStatement();
stmt.execute("CREATE TEMPORARY TABLE LocalDateTest(val DATE)");
try (PreparedStatement prep =

0 comments on commit 3ce2535

Please sign in to comment.
You can’t perform that action at this time.