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 2022/08/31 09:59:39 UTC

[shardingsphere] branch master updated: Refactor InvalidAuthorizationSpecificationException (#20690)

This is an automated email from the ASF dual-hosted git repository.

zhaojinchao 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 9fa8b509525 Refactor InvalidAuthorizationSpecificationException (#20690)
9fa8b509525 is described below

commit 9fa8b50952519900b174319145b6ee42dde2b4ca
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Wed Aug 31 17:59:31 2022 +0800

    Refactor InvalidAuthorizationSpecificationException (#20690)
    
    * Refactor InvalidAuthorizationSpecificationException
    
    * Refactor InvalidAuthorizationSpecificationException
---
 .../InvalidAuthorizationSpecificationException.java      |  4 ----
 .../ral/common/constant/DistSQLScriptConstants.java      | 16 ++++++++--------
 2 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/shardingsphere-dialect-exception/shardingsphere-postgresql-dialect-exception/src/main/java/org/apache/shardingsphere/dialect/postgresql/exception/InvalidAuthorizationSpecificationException.java b/shardingsphere-dialect-exception/shardingsphere-postgresql-dialect-exception/src/main/java/org/apache/shardingsphere/dialect/postgresql/exception/InvalidAuthorizationSpecificationException.java
index 91db4a7284d..683bfc66edb 100644
--- a/shardingsphere-dialect-exception/shardingsphere-postgresql-dialect-exception/src/main/java/org/apache/shardingsphere/dialect/postgresql/exception/InvalidAuthorizationSpecificationException.java
+++ b/shardingsphere-dialect-exception/shardingsphere-postgresql-dialect-exception/src/main/java/org/apache/shardingsphere/dialect/postgresql/exception/InvalidAuthorizationSpecificationException.java
@@ -25,8 +25,4 @@ import org.apache.shardingsphere.dialect.exception.SQLDialectException;
 public final class InvalidAuthorizationSpecificationException extends SQLDialectException {
     
     private static final long serialVersionUID = -7169979989631579431L;
-    
-    public InvalidAuthorizationSpecificationException() {
-        super("no PostgreSQL user name specified in startup packet");
-    }
 }
diff --git a/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/common/constant/DistSQLScriptConstants.java b/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/common/constant/DistSQLScriptConstants.java
index 349fd943185..4eb1b890eb7 100644
--- a/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/common/constant/DistSQLScriptConstants.java
+++ b/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/common/constant/DistSQLScriptConstants.java
@@ -25,19 +25,19 @@ import lombok.NoArgsConstructor;
  */
 @NoArgsConstructor(access = AccessLevel.PRIVATE)
 public final class DistSQLScriptConstants {
-
+    
     public static final String RESOURCE_DB = "resource_db";
-
+    
     public static final String SHARDING_DB = "sharding_db";
-
+    
     public static final String READWRITE_SPLITTING_DB = "readwrite_splitting_db";
-
+    
     public static final String STANDARD = "standard";
-
+    
     public static final String COMPLEX = "complex";
-
+    
     public static final String HINT = "hint";
-
+    
     public static final String COMMA = ",";
     
     public static final String SEMI = ";";
@@ -134,7 +134,7 @@ public final class DistSQLScriptConstants {
             + "%s"
             + System.lineSeparator()
             + ")";
-
+    
     public static final String TYPE = "TYPE(NAME=\"%s\")";
     
     public static final String TYPE_PROPERTIES = "TYPE(NAME=\"%s\", PROPERTIES(%s))";