This is an automated email from the ASF dual-hosted git repository.

justinchen pushed a commit to branch cve-database
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/cve-database by this push:
     new 886841b2985 fix
886841b2985 is described below

commit 886841b2985d6650d9d40dcdef2bcaed155bba7a
Author: Caideyipi <[email protected]>
AuthorDate: Fri Apr 17 10:31:56 2026 +0800

    fix
---
 .../iotdb/relational/it/db/it/IoTDBInsertTableIT.java   | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git 
a/integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBInsertTableIT.java
 
b/integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBInsertTableIT.java
index c223761cd2a..a3138ee6ea2 100644
--- 
a/integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBInsertTableIT.java
+++ 
b/integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBInsertTableIT.java
@@ -1275,6 +1275,23 @@ public class IoTDBInsertTableIT {
     }
   }
 
+  @Test
+  public void testInsertWithTree() {
+    try (Connection connection = 
EnvFactory.getEnv().getConnection(BaseEnv.TABLE_SQL_DIALECT);
+        Statement statement = connection.createStatement()) {
+      statement.execute("use \"test\"");
+      statement.execute("create table sg22 (tag1 string tag, s1 int64 field)");
+      statement.execute(
+          String.format(
+              "insert into root.test.sg22(tag1,time,s1) values('d1',%s,2)",
+              System.currentTimeMillis()));
+      fail();
+    } catch (Exception e) {
+      Assert.assertEquals(
+          "701: The tree model database shall not be specified in table 
model.", e.getMessage());
+    }
+  }
+
   private List<Integer> checkHeader(
       ResultSetMetaData resultSetMetaData, String expectedHeaderStrings, int[] 
expectedTypes)
       throws SQLException {

Reply via email to