From 5205bef70cd826633055b725a6706ebb0af20b91 Mon Sep 17 00:00:00 2001 From: Hung Nguyen Date: Tue, 24 Sep 2024 18:13:21 +0700 Subject: [PATCH] STL-810: Fixing error invalid object when connect to MSSQL and Redshift data sources --- VERSION | 2 +- lib/gooddata/cloud_resources/mssql/mssql_client.rb | 2 +- lib/gooddata/cloud_resources/redshift/redshift_client.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 98dbb32c5..1e2e96790 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.7.72 +3.7.73 diff --git a/lib/gooddata/cloud_resources/mssql/mssql_client.rb b/lib/gooddata/cloud_resources/mssql/mssql_client.rb index 55ff97623..c950312ec 100644 --- a/lib/gooddata/cloud_resources/mssql/mssql_client.rb +++ b/lib/gooddata/cloud_resources/mssql/mssql_client.rb @@ -91,7 +91,7 @@ def connect prop.setProperty('userName', authentication['userName']) prop.setProperty('password', authentication['password']) - @connection = com.microsoft.sqlserver.jdbc.SQLServerDriver.new.connect(@url, prop) + @connection = com.microsoft.sqlserver.jdbc.SQLServerDriver.new.connect(connection_string, prop) end def validate diff --git a/lib/gooddata/cloud_resources/redshift/redshift_client.rb b/lib/gooddata/cloud_resources/redshift/redshift_client.rb index b214eb5ad..65500b8e5 100644 --- a/lib/gooddata/cloud_resources/redshift/redshift_client.rb +++ b/lib/gooddata/cloud_resources/redshift/redshift_client.rb @@ -84,7 +84,7 @@ def connect prop.setProperty('DbUser', @authentication['iam']['dbUser']) end - @connection = com.amazon.redshift.jdbc42.Driver.new.connect(@url, prop) + @connection = com.amazon.redshift.jdbc42.Driver.new.connect(full_url, prop) end private