oedipus 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/oedipus/oedipus.c +1 -1
- data/lib/oedipus/version.rb +1 -1
- data/spec/integration/connection_spec.rb +4 -0
- metadata +7 -7
data/ext/oedipus/oedipus.c
CHANGED
@@ -233,7 +233,7 @@ static VALUE odp_replace_bind_values(OdpMysql * conn, VALUE sql, VALUE * bind_va
|
|
233
233
|
break;
|
234
234
|
}
|
235
235
|
|
236
|
-
if (
|
236
|
+
if (!(ODP_KIND_OF_P(bind_values[i], rb_cNumeric))) {
|
237
237
|
char escaped_str[escaped_value_lengths[i]];
|
238
238
|
char quoted_str[escaped_value_lengths[i]];
|
239
239
|
|
data/lib/oedipus/version.rb
CHANGED
@@ -135,5 +135,9 @@ describe Oedipus::Connection do
|
|
135
135
|
REPLACE INTO posts_rt (id, title) VALUES (?, ?)
|
136
136
|
SQL
|
137
137
|
end
|
138
|
+
|
139
|
+
it "handles nil" do
|
140
|
+
conn.execute("REPLACE INTO posts_rt (id, title, state, body) VALUES (?, 'question?', 'other?', ?)", 1, nil)
|
141
|
+
end
|
138
142
|
end
|
139
143
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oedipus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-05-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &10245200 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *10245200
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake-compiler
|
27
|
-
requirement: &
|
27
|
+
requirement: &10244200 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *10244200
|
36
36
|
description: ! "== Sphinx 2 Comes to Ruby\n\nOedipus brings full support for Sphinx
|
37
37
|
2 to Ruby:\n\n - real-time indexes (insert, replace, update, delete)\n - faceted
|
38
38
|
search (variations on a base query)\n - multi-queries (multiple queries executed
|
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
segments:
|
113
113
|
- 0
|
114
|
-
hash:
|
114
|
+
hash: -3872912040138826603
|
115
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
segments:
|
122
122
|
- 0
|
123
|
-
hash:
|
123
|
+
hash: -3872912040138826603
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project: oedipus
|
126
126
|
rubygems_version: 1.8.11
|