db 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/db/query.rb +7 -1
- data/lib/db/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdc24fd3f82f67c2497814f94088dd293a31ea6ac31f1e4a2915208d4b93ccf1
|
4
|
+
data.tar.gz: f9f993cf1f225ca8d959a1a86b97e584dd40e17fc26a6c6f39a8e532d3957ec9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0087a87a73f5ae71c9fe5b2fabb864d44a5cac11b6a3d34db73303888b285fd3c592fecb2e37369f07d298fc4096b326a1a0f963e534cceaf82b4d2ff75da7ca'
|
7
|
+
data.tar.gz: 5f22a3f4e4653864089ad85c7cfeca5e8e3bf0cd9cb383653e114761d49e14e6ffd1e648f567556942269a31ba4f36cd04398fabfc112bc4364e62e1d8793827
|
data/lib/db/query.rb
CHANGED
@@ -116,7 +116,13 @@ module DB
|
|
116
116
|
# Send the query to the remote server to be executed. See {Context::Session#call} for more details.
|
117
117
|
# @returns [Enumerable] The resulting records.
|
118
118
|
def call(&block)
|
119
|
-
|
119
|
+
if block_given?
|
120
|
+
@context.call(@buffer, &block)
|
121
|
+
else
|
122
|
+
@context.call(@buffer) do |connection|
|
123
|
+
return connection.next_result
|
124
|
+
end
|
125
|
+
end
|
120
126
|
end
|
121
127
|
|
122
128
|
def to_s
|
data/lib/db/version.rb
CHANGED