Skip to content
Permalink
Browse files

[misc] LocalDateTime test with microseconds test removal for MySQL 5.5

  • Loading branch information...
rusher committed Aug 2, 2019
1 parent 896bcde commit 13c8721a306fe8f1a6a67c9282ce04c00c269892
@@ -112,6 +112,9 @@ public void localDateTest() throws SQLException {

@Test
public void localDateTimeTest() throws SQLException {
if (!isMariadbServer()) {
cancelForVersion(5, 5);
}
Statement stmt = sharedConnection.createStatement();
stmt.execute("CREATE TEMPORARY TABLE LocalDateTimeTest(val DATETIME(6), val2 DATETIME)");
try (PreparedStatement prep =
@@ -147,6 +147,9 @@ public void nativeSqlTest() throws SQLException {

@Test
public void scalarFctTest() throws SQLException {
if (!isMariadbServer()) {
cancelForVersion(5, 5);
}
queryScalar("SELECT {fn convert(?, SQL_BIGINT)}", 2147483648L, 2147483648L);
queryScalar("SELECT {fn convert(?, SQL_BIGINT)}", BigInteger.valueOf(2147483648L), 2147483648L);
queryScalar("SELECT {fn convert(?, SQL_BIGINT)}", 20, new Object[] {20, 20L});

0 comments on commit 13c8721

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