You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/03/02 09:02:42 UTC
[GitHub] [shardingsphere] soulasuna commented on a change in pull request #15753: Set charset extended protocol supported in proxy
soulasuna commented on a change in pull request #15753:
URL: https://github.com/apache/shardingsphere/pull/15753#discussion_r817480312
##########
File path: shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/response/header/update/ClientEncodingResponseHeader.java
##########
@@ -20,18 +20,26 @@
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.proxy.backend.response.header.ResponseHeader;
-import org.apache.shardingsphere.proxy.backend.session.ConnectionSession;
-import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
+import java.util.Optional;
+
+/**
+ * Client encoding response header.
+ */
@RequiredArgsConstructor
-@Getter
public class ClientEncodingResponseHeader implements ResponseHeader {
- private final String name;
-
- private final String value;
+ private final String currentCharsetValue;
- private final SQLStatement sqlStatement;
+ @Getter
+ private final String inputValue;
- private final ConnectionSession connectionSession;
+ /**
+ * Get current charset value.
+ *
+ * @return current charset value
+ */
+ public Optional<String> getCurrentCharsetValue() {
+ return null == currentCharsetValue ? Optional.empty() : Optional.of(currentCharsetValue);
Review comment:
I will fix it.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org