lwr-max opened a new issue, #33480: URL: https://github.com/apache/shardingsphere/issues/33480
## Bug Report **For English only**, other languages will not accept. Before report a bug, make sure you have: - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues). - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview). Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will **close it**. Please answer these questions before submitting your issue. Thanks! ### Which version of ShardingSphere did you use? tag-5.3.2 ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? ShardingSphere-JDBC ### Expected behavior Can run in win10 ,when h2 mode is file ### Actual behavior When h2 use file mode,can not connect database,because url check is error ### Reason analyze (If you can) shardingsphere\infra\common\src\main\java\org\apache\shardingsphere\infra\database\metadata\dialect\H2DataSourceMetaData.java private static final Pattern PATTERN = Pattern.compile("jdbc:h2:((?<modelMem>mem|~)[:/](?<catalog>[\\w\\-]+)|" + "(?<modelSslOrTcp>ssl:|tcp:)(//)?(?<hostname>[\\w\\-.]+)(:(?<port>[0-9]{1,4})/)?[/~\\w\\-.]+/(?<name>[\\-\\w]*)|" + "(?<modelFile>file:)[/~\\w\\-]+/(?<fileName>[\\-\\w]*));?\\S*", Pattern.CASE_INSENSITIVE); not concerned about url like jdbc:h2:file:D:/h2/data;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE in windows ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. Only use in file mode,and url like jdbc:h2:file:D:/h2/data;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE,it will be reproduced ### Example codes for reproduce this issue (such as a github link). You can use this config dataSources: ds0: dataSourceClassName: com.zaxxer.hikari.HikariDataSource driverClassName: org.h2.Driver jdbcUrl: jdbc:h2:file:D:/05/h2/data;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=MySQL username: admin password: admin rules: - !SHARDING tables: balance_account: actualDataNodes: ds${0}.balance_account_${2016..2030} tableStrategy: standard: shardingColumn: year shardingAlgorithmName: balance_account_inline shardingAlgorithms: balance_account_inline: type: INLINE props: algorithm-expression: balance_account_${year} props: sql-show: false -- 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]
