This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 8d7541d384a branch-3.0: [fix](ob catalog) fix oceanbase catalog get
connection #48593 (#48807)
8d7541d384a is described below
commit 8d7541d384a4004684ce5e0f9a7910238b301a69
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Mar 22 17:07:20 2025 +0800
branch-3.0: [fix](ob catalog) fix oceanbase catalog get connection #48593
(#48807)
Cherry-picked from #48593
Co-authored-by: zy-kkk <[email protected]>
---
.../apache/doris/datasource/jdbc/client/JdbcOceanBaseClient.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/client/JdbcOceanBaseClient.java
b/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/client/JdbcOceanBaseClient.java
index f43119875d6..004e7c80f3d 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/client/JdbcOceanBaseClient.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/client/JdbcOceanBaseClient.java
@@ -65,8 +65,12 @@ public class JdbcOceanBaseClient extends JdbcClient {
throw new UnsupportedOperationException("JdbcOceanBaseClient does not
support jdbcTypeToDoris");
}
- private void setOracleMode() {
+ @Override
+ public String getTestQuery() {
+ return "SELECT 1 FROM DUAL";
+ }
+
+ void setOracleMode() {
this.dbType = JdbcResource.OCEANBASE_ORACLE;
}
}
-
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]