You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2025/05/25 12:57:56 UTC
(shardingsphere) branch master updated: Fix binding method in ProxyBackendHandlerFactory to include database type (#35506)
This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new a9ae3b8ef19 Fix binding method in ProxyBackendHandlerFactory to include database type (#35506)
a9ae3b8ef19 is described below
commit a9ae3b8ef1987d036a9f25228f3f16864c06f8eb
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sun May 25 20:57:50 2025 +0800
Fix binding method in ProxyBackendHandlerFactory to include database type (#35506)
---
.../proxy/backend/handler/ProxyBackendHandlerFactory.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/ProxyBackendHandlerFactory.java b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/ProxyBackendHandlerFactory.java
index a67c7c6349c..1b87bcffc07 100644
--- a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/ProxyBackendHandlerFactory.java
+++ b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/ProxyBackendHandlerFactory.java
@@ -90,7 +90,7 @@ public final class ProxyBackendHandlerFactory {
SQLStatementContext sqlStatementContext = sqlStatement instanceof DistSQLStatement
? new DistSQLStatementContext((DistSQLStatement) sqlStatement)
: new SQLBindEngine(ProxyContext.getInstance().getContextManager().getMetaDataContexts().getMetaData(),
- connectionSession.getCurrentDatabaseName(), hintValueContext).bind(sqlStatement, Collections.emptyList());
+ connectionSession.getCurrentDatabaseName(), hintValueContext).bind(databaseType, sqlStatement, Collections.emptyList());
QueryContext queryContext = new QueryContext(sqlStatementContext, sql, Collections.emptyList(), hintValueContext, connectionSession.getConnectionContext(),
ProxyContext.getInstance().getContextManager().getMetaDataContexts().getMetaData());
connectionSession.setQueryContext(queryContext);