mysql2-cs-bind 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mysql2-cs-bind.rb +1 -1
- data/mysql2-cs-bind.gemspec +1 -1
- metadata +2 -2
data/lib/mysql2-cs-bind.rb
CHANGED
@@ -31,7 +31,7 @@ class Mysql2::Client
|
|
31
31
|
rawvalue = values.pop()
|
32
32
|
if rawvalue.nil?
|
33
33
|
sql[pos] = 'NULL'
|
34
|
-
elsif rawvalue.
|
34
|
+
elsif rawvalue.respond_to?(:strftime)
|
35
35
|
sql[pos] = "'" + rawvalue.strftime('%Y-%m-%d %H:%M:%S') + "'"
|
36
36
|
elsif rawvalue.is_a?(Array)
|
37
37
|
sql[pos] = rawvalue.map{|v| "'" + Mysql2::Client.escape(v.to_s) + "'" }.join(",")
|
data/mysql2-cs-bind.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql2-cs-bind
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mysql2
|