azexcy opened a new issue, #28858:
URL: https://github.com/apache/shardingsphere/issues/28858

   ## Bug Report
   
   Driver: MySQL connector/j 8
   
   Create table and init data.
   ```
   create table test(
       id int not null primary key ,
       t_year year null
   );
   
   INSERT INTO pipeline_it_0.test (id, t_year) VALUES (1, 2023);
   ```
   
   The `yearIsDateType=false` jdbc parameter not effect, the test code below
   
   ```
           try (Connection connection = 
DriverManager.getConnection("jdbc:mysql://localhost:3307/sharding_db?useSSL=false&requireSSL=false&serverTimezone=UTC&useLocalSessionState=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&yearIsDateType=false",
 "root", "root")) {
               ResultSet resultSet = 
connection.createStatement().executeQuery("select t_year from t_order order by 
order_id");
               while (resultSet.next()) {
                   System.out.println(resultSet.getObject(1));
               }
           }
   ```
   
   <img width="1090" alt="image" 
src="https://github.com/apache/shardingsphere/assets/101622833/45a3e9a5-31a3-4a65-be03-5d69e44d16dc";>
   
   ### Which version of ShardingSphere did you use?
   
   master
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   yearIsDateType=false effect
   
   ### Actual behavior
   
   yearIsDateType=false not effect
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
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