Skip to content

Commit

Permalink
fix: handle default location
Browse files Browse the repository at this point in the history
  • Loading branch information
filipelautert committed May 1, 2024
1 parent 67eec97 commit cded54b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,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 cded54b

Please sign in to comment.