This is an automated email from the ASF dual-hosted git repository. jackietien pushed a commit to branch ty/useXX in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 357c00b1e239170b67290e836b3e721c4437dc34 Author: JackieTien97 <[email protected]> AuthorDate: Tue Jul 9 09:27:13 2024 +0800 Add IT for show tables after drop database --- .../java/org/apache/iotdb/relational/it/schema/IoTDBTableIT.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBTableIT.java b/integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBTableIT.java index 80ae31d9c54..8e74b7ced8a 100644 --- a/integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBTableIT.java +++ b/integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBTableIT.java @@ -240,6 +240,14 @@ public class IoTDBTableIT { assertEquals("550: Table test3.table3 not exists.", e.getMessage()); } + statement.execute("drop database test1"); + + try { + statement.executeQuery("SHOW tables from test1"); + } catch (SQLException e) { + assertEquals("500: Database test1 doesn't exists.", e.getMessage()); + } + } catch (SQLException e) { e.printStackTrace(); fail(e.getMessage());
