Skip to content

Commit

Permalink
Fix #69
Browse files Browse the repository at this point in the history
  • Loading branch information
rpbouman committed Aug 23, 2024
1 parent 932eebc commit eea6081
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/java/org/duckdb/TestDuckDBJDBC.java
Original file line number Diff line number Diff line change
Expand Up @@ -3506,8 +3506,10 @@ public static void test_struct_with_bad_type() throws Exception {
try (PreparedStatement stmt = connection.prepareStatement("SELECT ?")) {
stmt.setObject(1, struct1);
String message = assertThrows(stmt::executeQuery, SQLException.class);

assertTrue(message.contains("Parser Error: syntax error at or near \"TYPE\""));
String expected = "Invalid Input Error: Value \"BAD TYPE NAME\" can not be converted to a DuckDB Type.";
assertTrue(
message.contains(expected),
String.format("The message \"%s\" does not contain the expected string \"%s\"", message, expected));
}
}
}
Expand Down

0 comments on commit eea6081

Please sign in to comment.