From 966c221ae670432cddf1fafbaa5cb80e16010c6e Mon Sep 17 00:00:00 2001 From: beckhampu Date: Thu, 18 Oct 2018 11:28:52 +0800 Subject: [PATCH] adjust column label of "show full tables" --- .../shardingproxy/backend/jdbc/JDBCBackendHandler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sharding-proxy/src/main/java/io/shardingsphere/shardingproxy/backend/jdbc/JDBCBackendHandler.java b/sharding-proxy/src/main/java/io/shardingsphere/shardingproxy/backend/jdbc/JDBCBackendHandler.java index b1eb913eaa86f..e62907a3fcc04 100644 --- a/sharding-proxy/src/main/java/io/shardingsphere/shardingproxy/backend/jdbc/JDBCBackendHandler.java +++ b/sharding-proxy/src/main/java/io/shardingsphere/shardingproxy/backend/jdbc/JDBCBackendHandler.java @@ -139,7 +139,10 @@ private QueryResponsePackets getQueryResponsePacketsWithoutDerivedColumns(final private void setResponseColumnLabelForShowTablesMergedResult(final QueryResponsePackets queryResponsePackets) { for (ColumnDefinition41Packet each : queryResponsePackets.getColumnDefinition41Packets()) { - each.setName("Tables_in_" + shardingSchema.getName()); + if (each.getName().startsWith("Tables_in_")) { + each.setName("Tables_in_" + shardingSchema.getName()); + break; + } } }