sequel_pg 1.6.6 → 1.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/ext/sequel_pg/sequel_pg.c +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eba88f39e22e5f7445e0e8b975616d1146c3dd17
|
4
|
+
data.tar.gz: 0c8dc37d422b021ce8d91ab95a42d92e134c44db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea8abb9503383bd05f4c08be8edc257c70b2d9f5006b0a9355dc636a5cc504148645c5f44dcb251901d9ed4c59ddbe8c714a7c950242e7c4b2f9d90f5f0c98b8
|
7
|
+
data.tar.gz: 7eeb8d687b21c2a5e666c8ca9b2d26059067ea7f2978dc752456ef1518ffb717cbc5d9cc554463735752936730bafadab731620e366964d5e7afa0170b53af8e
|
data/CHANGELOG
CHANGED
data/ext/sequel_pg/sequel_pg.c
CHANGED
@@ -253,12 +253,17 @@ static VALUE parse_pg_array(VALUE self, VALUE pg_array_string, VALUE converter)
|
|
253
253
|
|
254
254
|
static VALUE spg_time(const char *s) {
|
255
255
|
VALUE now;
|
256
|
-
int hour, minute, second, tokens;
|
256
|
+
int hour, minute, second, tokens, i;
|
257
257
|
char subsec[7];
|
258
258
|
int usec = 0;
|
259
259
|
|
260
|
-
tokens = sscanf(s, "%2d:%2d:%2d.%
|
260
|
+
tokens = sscanf(s, "%2d:%2d:%2d.%6s", &hour, &minute, &second, subsec);
|
261
261
|
if(tokens == 4) {
|
262
|
+
for(i=0; i<6; i++) {
|
263
|
+
if(subsec[i] == '-') {
|
264
|
+
subsec[i] = '\0';
|
265
|
+
}
|
266
|
+
}
|
262
267
|
usec = atoi(subsec);
|
263
268
|
usec *= (int) pow(10, (6 - strlen(subsec)));
|
264
269
|
} else if(tokens < 3) {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel_pg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Evans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|