File tree Expand file tree Collapse file tree
lib/gooddata/cloud_resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ def initialize(options = {})
4949 raise ( 'Missing connection info for MSSQL client' )
5050 end
5151
52+ # When update driver class then also updating driver class using in connection(..) method below
5253 Java . com . microsoft . sqlserver . jdbc . SQLServerDriver
5354 end
5455
@@ -90,7 +91,7 @@ def connect
9091 prop . setProperty ( 'userName' , authentication [ 'userName' ] )
9192 prop . setProperty ( 'password' , authentication [ 'password' ] )
9293
93- @connection = java . sql . DriverManager . getConnection ( connection_string , prop )
94+ @connection = com . microsoft . sqlserver . jdbc . SQLServerDriver . new . connect ( @url , prop )
9495 end
9596
9697 def validate
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ def initialize(options = {})
4949 raise ( 'Missing connection info for Mysql client' )
5050 end
5151
52+ # When update driver class then also updating driver class using in connection(..) method below
5253 Java . com . mysql . jdbc . Driver
5354 end
5455
@@ -84,7 +85,7 @@ def connect
8485 prop = java . util . Properties . new
8586 prop . setProperty ( 'user' , @authentication [ 'basic' ] [ 'userName' ] )
8687 prop . setProperty ( 'password' , @authentication [ 'basic' ] [ 'password' ] )
87- @connection = java . sql . DriverManager . getConnection ( @url , prop )
88+ @connection = com . mysql . jdbc . Driver . new . connect ( @url , prop )
8889 @connection . set_auto_commit ( false )
8990 end
9091
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ def initialize(options = {})
4949 raise ( 'Missing connection info for Postgres client' )
5050 end
5151
52+ # When update driver class then also updating driver class using in connection(..) method below
5253 Java . org . postgresql . Driver
5354 end
5455
@@ -86,7 +87,7 @@ def connect
8687 prop . setProperty ( 'password' , @authentication [ 'basic' ] [ 'password' ] )
8788 prop . setProperty ( 'schema' , @schema )
8889
89- @connection = java . sql . DriverManager . getConnection ( @url , prop )
90+ @connection = org . postgresql . Driver . new . connect ( @url , prop )
9091 statement = @connection . create_statement
9192 statement . execute ( "#{ POSTGRES_SET_SCHEMA_COMMAND } #{ @schema } " )
9293 @connection . set_auto_commit ( false )
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ def initialize(options = {})
3838 end
3939 @debug = options [ 'debug' ] == true || options [ 'debug' ] == 'true'
4040
41+ # When update driver class then also updating driver class using in connection(..) method below
4142 Java . com . amazon . redshift . jdbc42 . Driver
4243 end
4344
@@ -83,7 +84,7 @@ def connect
8384 prop . setProperty ( 'DbUser' , @authentication [ 'iam' ] [ 'dbUser' ] )
8485 end
8586
86- @connection = java . sql . DriverManager . getConnection ( full_url , prop )
87+ @connection = com . amazon . redshift . jdbc42 . Driver . new . connect ( @url , prop )
8788 end
8889
8990 private
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ def initialize(options = {})
4141
4242 end
4343
44+ # When update driver class then also updating driver class using in connection(..) method below
4445 Java . net . snowflake . client . jdbc . SnowflakeDriver
4546 end
4647
@@ -80,7 +81,7 @@ def connect
8081 prop . setProperty ( 'warehouse' , @warehouse )
8182 prop . setProperty ( 'db' , @database )
8283
83- @connection = java . sql . DriverManager . getConnection ( @url , prop )
84+ @connection = com . snowflake . client . jdbc . SnowflakeDriver . new . connect ( @url , prop )
8485 end
8586
8687 def build_url ( url )
You can’t perform that action at this time.
0 commit comments