mysql_framework 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efd0a31b4662bc56a6c491b52d176f7400d26b848c7580593dd3aec47406754e
4
- data.tar.gz: 3f76b0e9586b56d5c0293590decdbd2240831ff03f5015c159b440d10b25b59b
3
+ metadata.gz: b58087950c7f077b63745aea37c1b706a76a8288ac60a5f3e02bf3bc937dde99
4
+ data.tar.gz: 49949a1605bc8bfafe114e0a4a5448f84be21cce1939e7ddd708828d389993ca
5
5
  SHA512:
6
- metadata.gz: b84eb01ebca2b310102b0dc84b4242d464349ac55c9f4f3b9133a6c06a16b73900c71de2b663e77c28553b9ad38b897036fc72344b2bbb969ab71e983dbd0595
7
- data.tar.gz: 9be88e92dd00c7b12c6e936b93767badef60c3582599c2c093751f40dd5ba5f02c2e94170bb2cd17c8f8f799be8ebef68ffa23526df818c7b81778ad7d4fc051
6
+ metadata.gz: 6a591cbb848fbcae354dd9c3a2c55c0ba1b44435701810018355ed9ca521efc2eb7a05613f92be2c9d175ea094a9b02fb1286e48ecd452d5e5985aad28ae1431
7
+ data.tar.gz: 6e64a6146a7949577a377019d4d7dd8b5439b023fb5a91780f367d371377ace7a632c91343fe490698887d8277586cf2dbdd7aac385cbb0c52c00223293a27c6
@@ -77,12 +77,14 @@ module MysqlFramework
77
77
 
78
78
  # This method is called to execute a query which will return multiple result sets in an array
79
79
  def query_multiple_results(query_string, provided_client = nil)
80
- with_client(provided_client) do |client|
80
+ results = with_client(provided_client) do |client|
81
81
  result = []
82
- result << client.query(query_string).to_a
83
- result << client.store_result&.to_a while client.next_result
82
+ result << client.query(query_string)
83
+ result << client.store_result while client.next_result
84
84
  result.compact
85
85
  end
86
+
87
+ results.map(&:to_a)
86
88
  end
87
89
 
88
90
  # This method is called to use a client within a transaction
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MysqlFramework
4
- VERSION = '0.0.5'
4
+ VERSION = '0.0.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysql_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sage
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-25 00:00:00.000000000 Z
11
+ date: 2018-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler