ruanyg opened a new issue, #22350: URL: https://github.com/apache/shardingsphere/issues/22350
### Which version of ShardingSphere did you use? 5.0.0 ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? ShardingSphere-Proxy ### Expected behavior SS-Proxy can deal with null resultset correctly. ### Actual behavior There comes up 4 npe of null ResultSet.I re-executed the sql that reported the error afterwards, then I realized the sqls result are "Empty set". <img width="1278" alt="image" src="https://user-images.githubusercontent.com/19629642/203465491-4cde3a0e-cc46-4b6e-9846-b9e3beb4f6cf.png"> ### Reason analyze (If you can) * HikariStatement doesn't comply with the jdbc specification. ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. ```sql select id, activity_seq, activity_name, activity_desc, app_id, store_id, `status`, start_time, end_time, target_user_type, target_user_type_value, acquire_per_user_limit, apply_type, `valid`, create_by, update_by, create_time, update_time, banner_pic_url, desc_url, keywords, activity_type, overlay_config, one_shop_id, channel, activity_clause, seo, banner_pic_url_mobile, prerequisite_shipping_price_range, entitled_country_target_selection, entitled_country_ids, user_limited_type, config_ext, style_type, style_text, source_key, max_benefit_amount, bundled_type, order_use_limit, benefit_type, `overlay`, sort_benefit_value, sort_benefit_type, sort_event_value, sort_event_type from promotion_activity where app_id = 'xxx' and store_id = 'xxx' and channel = 0 and activity_type = 1 and (start_time <= DATE_ADD(NOW(), INTERVAL 1 DAY) or start_time is null) and (end_time >= now() or end_time is null) and status = 1 and valid = 1 ``` -- 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]
