aws / aws-mysql-odbc

The Amazon Web Services (AWS) ODBC Driver for MySQL allows an application to take advantage of the features of clustered MySQL databases. It is based on and can be used as a drop-in compatible for the MySQL Connector/ODBC driver, and is compatible with all MySQL deployments.
Other
41 stars 4 forks source link

chore: ensure regex is able to handle all types of china endpoints #182

Closed karenc-bq closed 5 months ago

karenc-bq commented 5 months ago

Description

Typically the rds preceeds the region in the database endpoints, e.g. abc.cluster-XYZ.rds.cn-northwest-1.amazonaws.com.cn, but some older database endpoints have the region information in front of the rds, e.g. abc.cluster-XYZ.cn-northwest-1.rds.amazonaws.com.cn This PR updates regex pattern to ensure the driver accepts both types of china endpoints.

Review Status

Additional Reviewers