Skip to content

Commit

Permalink
fix: handle default location
Browse files Browse the repository at this point in the history
  • Loading branch information
filipelautert authored and vitaliimak committed May 30, 2024
1 parent 3b583af commit e3113af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ public Connection getUnderlyingConnection() {

@Override
public void open(String url, Driver driverObject, Properties driverProperties) throws DatabaseException {
if (!driverProperties.stringPropertyNames().contains(LOCATION)) {
String locationValue = getUrlParamValue(url, LOCATION, "US");
if (driverProperties.stringPropertyNames().contains(LOCATION)) {
String locationValue = getUrlParamValue(url, LOCATION);
driverProperties.setProperty(LOCATION, locationValue);
}

Expand Down

0 comments on commit e3113af

Please sign in to comment.