File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,20 @@ def disconnect!
36
36
# end
37
37
# end
38
38
39
+ # DIFFERENCE: we delve into jdbc shared code and this does self.class.new_client.
40
+ def connect
41
+ @raw_connection = jdbc_connection_class ( @config [ :adapter_spec ] ) . new ( @config , self )
42
+ @raw_connection . configure_connection
43
+ end
44
+
45
+ def reconnect
46
+ if active?
47
+ @raw_connection . rollback rescue nil
48
+ else
49
+ connect
50
+ end
51
+ end
52
+
39
53
end
40
54
end
41
55
end
Original file line number Diff line number Diff line change @@ -669,20 +669,6 @@ def build_statement_pool
669
669
StatementPool . new ( self . class . type_cast_config_to_integer ( @config [ :statement_limit ] ) )
670
670
end
671
671
672
- # DIFFERENCE: we delve into jdbc shared code and this does self.class.new_client.
673
- def connect
674
- @raw_connection = jdbc_connection_class ( @config [ :adapter_spec ] ) . new ( @config , self )
675
- @raw_connection . configure_connection
676
- end
677
-
678
- def reconnect
679
- if active?
680
- @raw_connection . rollback rescue nil
681
- else
682
- connect
683
- end
684
- end
685
-
686
672
def configure_connection
687
673
if @config [ :timeout ] && @config [ :retries ]
688
674
raise ArgumentError , "Cannot specify both timeout and retries arguments"
You can’t perform that action at this time.
0 commit comments