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

haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 8c97f2b  [IOTDB-1848] Failed to initialize pool: Does not support 
setReadOnly (#4162)
8c97f2b is described below

commit 8c97f2bc8bc84b6c74c415073b5785ac24bccddc
Author: xinzhongtianxia <[email protected]>
AuthorDate: Fri Oct 15 15:07:21 2021 +0800

    [IOTDB-1848] Failed to initialize pool: Does not support setReadOnly (#4162)
---
 jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBConnection.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBConnection.java 
b/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBConnection.java
index 3362edd..34e35a5 100644
--- a/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBConnection.java
+++ b/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBConnection.java
@@ -327,8 +327,10 @@ public class IoTDBConnection implements Connection {
   }
 
   @Override
-  public void setReadOnly(boolean arg0) throws SQLException {
-    throw new SQLException("Does not support setReadOnly");
+  public void setReadOnly(boolean readonly) throws SQLException {
+    if (readonly) {
+      throw new SQLException("Does not support readOnly");
+    }
   }
 
   @Override

Reply via email to