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 14:55:58 UTC
(shardingsphere) branch master updated: Fix PostgreSQLComDescribeExecutorTest (#35514)
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 cc86c8e2478 Fix PostgreSQLComDescribeExecutorTest (#35514)
cc86c8e2478 is described below
commit cc86c8e2478dfe8fa667f514a79251fb525f6de8
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sun May 25 22:55:52 2025 +0800
Fix PostgreSQLComDescribeExecutorTest (#35514)
* Refactor PostgreSQLComDescribeExecutor to use ShardingSphereMetaData for SQL statement binding
* Fix PostgreSQLComDescribeExecutorTest
---
.../query/extended/describe/PostgreSQLComDescribeExecutorTest.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/proxy/frontend/type/postgresql/src/test/java/org/apache/shardingsphere/proxy/frontend/postgresql/command/query/extended/describe/PostgreSQLComDescribeExecutorTest.java b/proxy/frontend/type/postgresql/src/test/java/org/apache/shardingsphere/proxy/frontend/postgresql/command/query/extended/describe/PostgreSQLComDescribeExecutorTest.java
index 079917abbf2..3c81acb4ebe 100644
--- a/proxy/frontend/type/postgresql/src/test/java/org/apache/shardingsphere/proxy/frontend/postgresql/command/query/extended/describe/PostgreSQLComDescribeExecutorTest.java
+++ b/proxy/frontend/type/postgresql/src/test/java/org/apache/shardingsphere/proxy/frontend/postgresql/command/query/extended/describe/PostgreSQLComDescribeExecutorTest.java
@@ -335,6 +335,7 @@ class PostgreSQLComDescribeExecutorTest {
String sql = "select id, k, c, pad from t_order where id = ?";
SQLStatement sqlStatement = SQL_PARSER_ENGINE.parse(sql, false);
SQLStatementContext sqlStatementContext = mock(SelectStatementContext.class);
+ when(sqlStatementContext.getDatabaseType()).thenReturn(DATABASE_TYPE);
when(sqlStatementContext.getSqlStatement()).thenReturn(sqlStatement);
prepareJDBCBackendConnection(sql);
List<PostgreSQLColumnType> parameterTypes = new ArrayList<>(Collections.singleton(PostgreSQLColumnType.UNSPECIFIED));