rsql 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rsql.rb +1 -1
- data/lib/rsql/mysql_results.rb +4 -2
- metadata +5 -5
data/lib/rsql.rb
CHANGED
data/lib/rsql/mysql_results.rb
CHANGED
@@ -222,8 +222,10 @@ module RSQL
|
|
222
222
|
while vals = results.fetch_row
|
223
223
|
row = []
|
224
224
|
fields.each_with_index do |field, i|
|
225
|
-
|
226
|
-
|
225
|
+
if raw
|
226
|
+
val = vals[i]
|
227
|
+
else
|
228
|
+
val = eval_context.bang_eval(field.name, vals[i])
|
227
229
|
if val.nil?
|
228
230
|
val = 'NULL'
|
229
231
|
elsif HEX_RANGE.include?(field.type) && val =~ /[^[:print:]\s]/
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 6
|
10
|
+
version: 0.2.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brad Robel-Forrest
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-01-
|
18
|
+
date: 2012-01-16 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: net-ssh
|
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
166
|
requirements: []
|
167
167
|
|
168
168
|
rubyforge_project:
|
169
|
-
rubygems_version: 1.8.
|
169
|
+
rubygems_version: 1.8.15
|
170
170
|
signing_key:
|
171
171
|
specification_version: 3
|
172
172
|
summary: Ruby based MySQL command line with recipes.
|