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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4534a4f3fc0a9874f98a9975d3e6438f569fdd8
4
- data.tar.gz: 31ead4011ba3060f4883c62b1fba0431db2d593e
3
+ metadata.gz: eba88f39e22e5f7445e0e8b975616d1146c3dd17
4
+ data.tar.gz: 0c8dc37d422b021ce8d91ab95a42d92e134c44db
5
5
  SHA512:
6
- metadata.gz: b4c43e04b77565a9a0dfc1ef933b2eab36e1635837d5e740c18ca13dc2edaf2cf783a7e640cd54df40a0a3aa6205158d66d5952470e7208d7c6c95854503c4bc
7
- data.tar.gz: 3351d0c50c38a078fbe04fe2cbcf5cbe6ab22cade617a08d4f1c1daabb44420d594e9af75b2b04a8537219572b221b95992c731e6187ddaecdd700b6871e532b
6
+ metadata.gz: ea8abb9503383bd05f4c08be8edc257c70b2d9f5006b0a9355dc636a5cc504148645c5f44dcb251901d9ed4c59ddbe8c714a7c950242e7c4b2f9d90f5f0c98b8
7
+ data.tar.gz: 7eeb8d687b21c2a5e666c8ca9b2d26059067ea7f2978dc752456ef1518ffb717cbc5d9cc554463735752936730bafadab731620e366964d5e7afa0170b53af8e
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) {
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.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-05-31 00:00:00.000000000 Z
11
+ date: 2013-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg