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 e1597e9aaa8 Remove unreached codes on FirebirdDateTimeUtils (#38174)
e1597e9aaa8 is described below

commit e1597e9aaa812ed61bb5a4e5a5ee9e602a6cbe0f
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Feb 24 01:12:30 2026 +0800

    Remove unreached codes on FirebirdDateTimeUtils (#38174)
---
 .../statement/execute/protocol/util/FirebirdDateTimeUtils.java     | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git 
a/database/protocol/dialect/firebird/src/main/java/org/apache/shardingsphere/database/protocol/firebird/packet/command/query/statement/execute/protocol/util/FirebirdDateTimeUtils.java
 
b/database/protocol/dialect/firebird/src/main/java/org/apache/shardingsphere/database/protocol/firebird/packet/command/query/statement/execute/protocol/util/FirebirdDateTimeUtils.java
index dcaae1f97c4..fa849612114 100644
--- 
a/database/protocol/dialect/firebird/src/main/java/org/apache/shardingsphere/database/protocol/firebird/packet/command/query/statement/execute/protocol/util/FirebirdDateTimeUtils.java
+++ 
b/database/protocol/dialect/firebird/src/main/java/org/apache/shardingsphere/database/protocol/firebird/packet/command/query/statement/execute/protocol/util/FirebirdDateTimeUtils.java
@@ -128,12 +128,7 @@ public final class FirebirdDateTimeUtils {
         day = 5 * day - 3 - 153 * month;
         day = (day + 5) / 5;
         year = 100 * century + sqlDate;
-        if (month < 10) {
-            month += 3;
-        } else {
-            month -= 9;
-            year += 1;
-        }
+        month += 3;
         return this;
     }
     

Reply via email to