This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 7e5e322f964 [fix](init-catalog) use equals instead of == (#54234)
7e5e322f964 is described below
commit 7e5e322f964959747feebff969e55e0bf51d3146
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Fri Aug 1 21:53:43 2025 -0700
[fix](init-catalog) use equals instead of == (#54234)
Followup #49658
Should use `equals` instead of `==`
---
fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlProto.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlProto.java
b/fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlProto.java
index d2adc3cc678..f0392955dab 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlProto.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlProto.java
@@ -209,7 +209,7 @@ public class MysqlProto {
// try to change catalog, if default_init_catalog inside user property
is not 'internal'
try {
String userInitCatalog =
Env.getCurrentEnv().getAuth().getInitCatalog(context.getQualifiedUser());
- if (userInitCatalog != null && userInitCatalog !=
InternalCatalog.INTERNAL_CATALOG_NAME) {
+ if (userInitCatalog != null &&
!userInitCatalog.equals(InternalCatalog.INTERNAL_CATALOG_NAME)) {
CatalogIf catalogIf =
context.getEnv().getCatalogMgr().getCatalog(userInitCatalog);
if (catalogIf != null) {
context.getEnv().changeCatalog(context, userInitCatalog);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]