patriot-mysql2-client 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/patriot/util/db_client/mysql2_client.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmVmOTA0YmI4NmQ1OTM1ZjQ3NmFkMTA1ZDIwMzllOGE5N2M3NmUzOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjNiNzY0NjVkOWU3MDRlZDI4OWQwOGYyZTEwMmM0YmQ0YmNmMjU3ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2Y1ZTQ5MTZkNGIzNmY5NzFhMzEyZWQyYTU1Yzg5NzAyYzc1ZTY0YjdkZTlk
|
10
|
+
NjY3NjEwM2ZhYTQ2YjA5NzY3ZDZjMTQ3YjY5Y2FkYTNjMWY3YjI2OGYyNjY1
|
11
|
+
YmIxMGY1ZWJjMGRlZWZhODUwYTcxYWRmMzY5M2FkODUwOTFlM2E=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjdlNTIyYTgwODFiZTdhMDM4Yzc3YjAzNTI1NGRjMmFjZTI2NWM0NDdjN2Y0
|
14
|
+
Zjk5MjNiZmJkMzc3OTRmZWQ5MzI0NTBlNjdkMGFmMWI1ZjliMzM1MzU0MDQ5
|
15
|
+
NjI3YzZmZWM1NDkwZDAzNjAxNDBlZmY2YjUyY2I4MzZhMjgwZjU=
|
@@ -59,7 +59,7 @@ module Patriot
|
|
59
59
|
# @see Patriot::Util::DBClient::Base#quote
|
60
60
|
def quote(v)
|
61
61
|
return 'NULL' if v.nil?
|
62
|
-
return "'#{v.to_s}'" if v.is_a?(DateTime)
|
62
|
+
return "'#{v.to_s}'" if v.is_a?(DateTime) || v.is_a?(Time)
|
63
63
|
val = (v.is_a?(String) ? "'#{Mysql2::Client.escape(v)}'" : v)
|
64
64
|
return val
|
65
65
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: patriot-mysql2-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Teruyoshi Zenmyo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mysql2
|