sequel_pg 1.6.6-x86-mswin32-60 → 1.6.7-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.6.7 (2013-06-06)
2
+
3
+ * Correctly handle fractional seconds in the time type (jeremyevans)
4
+
1
5
  === 1.6.6 (2013-05-31)
2
6
 
3
7
  * Work correctly when using the named_timezones extension (jeremyevans)
@@ -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.%s", &hour, &minute, &second, subsec);
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) {
data/lib/1.8/sequel_pg.so CHANGED
Binary file
data/lib/1.9/sequel_pg.so CHANGED
Binary file
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel_pg
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 6
9
- - 6
10
- version: 1.6.6
9
+ - 7
10
+ version: 1.6.7
11
11
  platform: x86-mswin32-60
12
12
  authors:
13
13
  - Jeremy Evans
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-04-12 00:00:00 Z
18
+ date: 2013-06-06 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: pg