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 f96fdd3 Simplify String concat in PostgreSQLCommandCompletePacket
(#15359)
f96fdd3 is described below
commit f96fdd3be1cae3e3774c9e83d90b7b779089d16f
Author: 吴伟杰 <[email protected]>
AuthorDate: Sat Feb 12 00:40:45 2022 +0800
Simplify String concat in PostgreSQLCommandCompletePacket (#15359)
---
.../postgresql/packet/generic/PostgreSQLCommandCompletePacket.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/generic/PostgreSQLCommandCompletePacket.java
b/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/generic/PostgreSQLCommandCompletePacket.java
index 617a867..4aa3b6f 100644
---
a/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/generic/PostgreSQLCommandCompletePacket.java
+++
b/shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/generic/PostgreSQLCommandCompletePacket.java
@@ -46,7 +46,7 @@ public final class PostgreSQLCommandCompletePacket implements
PostgreSQLIdentifi
return;
}
String delimiter = "INSERT".equals(sqlCommand) ? " 0 " : " ";
- payload.writeStringNul(String.join(delimiter, sqlCommand,
Long.toString(rowCount)));
+ payload.writeStringNul(sqlCommand + delimiter + rowCount);
}
@Override