sequel_pg 1.8.1 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG +4 -0
- data/ext/sequel_pg/sequel_pg.c +7 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7e8add8de4c52910c3da49f3604b1bd10992174d18c6b83ee9973f3cc674df2f
|
4
|
+
data.tar.gz: 7c5b6dbf5b48299699cf5f56cf5b62ddb7b6736438a18a044592ec1b1aad8bed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8911f1f4470918a27a624dbcc3ef67956a836e84c159a3bb3487ff136c7ee471db436d3872e91045c966ad385a0a9e9c6505e80d8ab573b2ea441c454f71bbf
|
7
|
+
data.tar.gz: fc43429b58160b8ce16bb7bf313a56e9518fae265a829450de19d831787e4cd176da4e75f9840a1f070beb4cf66bbdc0d76e52ed0a883b43bb33075bdc749bcc
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
=== 1.8.2 (2018-05-25)
|
2
|
+
|
3
|
+
* Use Kernel.BigDecimal instead of BigDecimal.new to avoid verbose mode deprecation warnings (jeremyevans)
|
4
|
+
|
1
5
|
=== 1.8.1 (2017-12-13)
|
2
6
|
|
3
7
|
* Fix issue when using Dataset#as_hash and Dataset#to_hash_groups with the null_dataset extension (jeremyevans)
|
data/ext/sequel_pg/sequel_pg.c
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#define SEQUEL_PG_VERSION_INTEGER
|
1
|
+
#define SEQUEL_PG_VERSION_INTEGER 10802
|
2
2
|
|
3
3
|
#include <string.h>
|
4
4
|
#include <stdio.h>
|
@@ -43,7 +43,7 @@ PGresult* pgresult_get(VALUE);
|
|
43
43
|
|
44
44
|
static VALUE spg_Sequel;
|
45
45
|
static VALUE spg_Blob;
|
46
|
-
static VALUE
|
46
|
+
static VALUE spg_Kernel;
|
47
47
|
static VALUE spg_Date;
|
48
48
|
static VALUE spg_SQLTime;
|
49
49
|
static VALUE spg_PGError;
|
@@ -64,6 +64,7 @@ static VALUE spg_pos_inf;
|
|
64
64
|
static VALUE spg_neg_inf;
|
65
65
|
static VALUE spg_usec_per_day;
|
66
66
|
|
67
|
+
static ID spg_id_BigDecimal;
|
67
68
|
static ID spg_id_new;
|
68
69
|
static ID spg_id_local;
|
69
70
|
static ID spg_id_year;
|
@@ -491,7 +492,7 @@ static VALUE spg__col_value(VALUE self, PGresult *res, long i, long j, VALUE* co
|
|
491
492
|
}
|
492
493
|
break;
|
493
494
|
case 1700: /* numeric */
|
494
|
-
rv = rb_funcall(
|
495
|
+
rv = rb_funcall(spg_Kernel, spg_id_BigDecimal, 1, rb_str_new(v, PQgetlength(res, i, j)));
|
495
496
|
break;
|
496
497
|
case 1082: /* date */
|
497
498
|
rv = spg_date(v, self);
|
@@ -1002,6 +1003,7 @@ void Init_sequel_pg(void) {
|
|
1002
1003
|
}
|
1003
1004
|
}
|
1004
1005
|
|
1006
|
+
spg_id_BigDecimal = rb_intern("BigDecimal");
|
1005
1007
|
spg_id_new = rb_intern("new");
|
1006
1008
|
spg_id_local = rb_intern("local");
|
1007
1009
|
spg_id_year = rb_intern("year");
|
@@ -1046,7 +1048,7 @@ void Init_sequel_pg(void) {
|
|
1046
1048
|
|
1047
1049
|
spg_Blob = rb_funcall(rb_funcall(spg_Sequel, cg, 1, rb_str_new2("SQL")), cg, 1, rb_str_new2("Blob"));
|
1048
1050
|
spg_SQLTime= rb_funcall(spg_Sequel, cg, 1, rb_str_new2("SQLTime"));
|
1049
|
-
|
1051
|
+
spg_Kernel = rb_funcall(rb_cObject, cg, 1, rb_str_new2("Kernel"));
|
1050
1052
|
spg_Date = rb_funcall(rb_cObject, cg, 1, rb_str_new2("Date"));
|
1051
1053
|
spg_PGError = rb_funcall(rb_funcall(rb_cObject, cg, 1, rb_str_new2("PG")), cg, 1, rb_str_new2("Error"));
|
1052
1054
|
|
@@ -1057,7 +1059,7 @@ void Init_sequel_pg(void) {
|
|
1057
1059
|
|
1058
1060
|
rb_global_variable(&spg_Sequel);
|
1059
1061
|
rb_global_variable(&spg_Blob);
|
1060
|
-
rb_global_variable(&
|
1062
|
+
rb_global_variable(&spg_Kernel);
|
1061
1063
|
rb_global_variable(&spg_Date);
|
1062
1064
|
rb_global_variable(&spg_SQLTime);
|
1063
1065
|
rb_global_variable(&spg_PGError);
|
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.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Evans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.6
|
94
|
+
rubygems_version: 2.7.6
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Faster SELECTs when using Sequel with pg
|