jdbc-helper 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/jdbc-helper/connection.rb +6 -2
- data/lib/jdbc-helper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 339d00f2071a8153323eb1d53610aec8ff33ce98
|
4
|
+
data.tar.gz: 11a6d3e5b2ba8f75cca979c5df6074aeb9787c8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2c0207b3aa27f8caf1d19ab37c681a8dc854c7f663fec5ee2085f0e5693d45d3b841319ce4fa2501ddb8239d11c989a82137f2b6d759df00548de9014afe936
|
7
|
+
data.tar.gz: cd0988661b3f5cbf4df5f9440a3baf9919fceeb1618f12643a3630af6feae810a280d6f7bf649f40a3e44177b4fb66a68c6c337e7decba5d0b34d16358c2310a
|
data/CHANGELOG.md
CHANGED
@@ -116,7 +116,7 @@ class Connection
|
|
116
116
|
attr_reader :url
|
117
117
|
|
118
118
|
# JDBC driver of the connection
|
119
|
-
# @return [String]
|
119
|
+
# @return [String|Class|#connect]
|
120
120
|
attr_reader :driver
|
121
121
|
|
122
122
|
# Returns the underlying JDBC Connection object.
|
@@ -167,7 +167,11 @@ class Connection
|
|
167
167
|
when Class
|
168
168
|
@driver.new.connect(@url, props)
|
169
169
|
else
|
170
|
-
|
170
|
+
if @driver.respond_to?(:connect)
|
171
|
+
@driver.connect(@url, props)
|
172
|
+
else
|
173
|
+
raise ArgumentError.new('Invalid type for :driver')
|
174
|
+
end
|
171
175
|
end
|
172
176
|
@spool = StatementPool.send :new, self
|
173
177
|
@bstmt = nil
|
data/lib/jdbc-helper/version.rb
CHANGED