terrymanu commented on a change in pull request #11924:
URL: https://github.com/apache/shardingsphere/pull/11924#discussion_r692896162



##########
File path: 
shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/text/MySQLTextResultSetRowPacket.java
##########
@@ -64,6 +65,8 @@ public void write(final MySQLPacketPayload payload) {
                     payload.writeStringLenenc(((BigDecimal) 
each).toPlainString());
                 } else if (each instanceof Boolean) {
                     payload.writeBytesLenenc((Boolean) each ? new byte[]{1} : 
new byte[]{0});
+                } else if (each instanceof LocalDateTime) {
+                    payload.writeStringLenenc(each.toString().replace("T", " 
"));

Review comment:
       Is it better to consider about SimpleDataFormat?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to