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.
@@ -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.is_a?(Time)
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(",")
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "mysql2-cs-bind"
5
- gem.version = "0.0.4"
5
+ gem.version = "0.0.5"
6
6
  gem.authors = ["TAGOMORI Satoshi"]
7
7
  gem.email = ["tagomoris@gmail.com"]
8
8
  gem.homepage = "https://github.com/tagomoris/mysql2-cs-bind"
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
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-07-18 00:00:00.000000000 Z
12
+ date: 2012-10-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mysql2