Apache Lucene open-source search software
SOLR-9597: Add setReadOnly(String ...) to ConnectionImpl
Kevin Risden012d75d36d6d
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 11687bb3537..3d024566ee6 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -183,6 +183,8 @@ Other Changes* SOLR-8332: Factor HttpShardHandler[Factory]'s url shuffling out into a ReplicaListTransformer class.(Christine Poerschke, Noble Paul)+* SOLR-9597: Add setReadOnly(String ...) to ConnectionImpl (Kevin Risden)+================== 6.3.0 ==================Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/sql/ConnectionImpl.java b/solr/solrj/src/java/org/apache/solr/client/solrj/io/sql/ConnectionImpl.javaindex 5139527f181..f7feafc62ca 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/sql/ConnectionImpl.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/sql/ConnectionImpl.java@@ -155,6 +155,15 @@ class ConnectionImpl implements Connection {}+ /*+ * When using OpenLink ODBC-JDBC bridge on Windows, it runs the method ConnectionImpl.setReadOnly(String ...).+ * The spec says that setReadOnly(boolean ...) is required. This causes the ODBC-JDBC bridge to fail on Windows.+ * OpenLink case: http://support.openlinksw.com/support/techupdate.vsp?c=21881+ */+ public void setReadOnly(String readOnly) throws SQLException {++ }+@Overridepublic boolean isReadOnly() throws SQLException {return true;