pg 0.19.0.pre20160820113039-x64-mingw32 → 0.19.0.pre20160904200247-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ChangeLog +445 -185
- data/ext/pg.c +1 -1
- data/ext/pg_binary_decoder.c +1 -1
- data/ext/pg_binary_encoder.c +1 -1
- data/ext/pg_connection.c +30 -2
- data/ext/pg_result.c +1 -1
- data/ext/pg_text_decoder.c +1 -1
- data/ext/pg_text_encoder.c +1 -1
- data/ext/pg_type_map.c +1 -1
- data/ext/pg_type_map_all_strings.c +1 -1
- data/ext/pg_type_map_by_class.c +1 -1
- data/ext/pg_type_map_by_column.c +1 -1
- data/ext/pg_type_map_by_mri_type.c +1 -1
- data/ext/pg_type_map_by_oid.c +1 -1
- data/ext/pg_type_map_in_ruby.c +1 -1
- data/ext/util.c +1 -1
- data/lib/2.0/pg_ext.so +0 -0
- data/lib/2.1/pg_ext.so +0 -0
- data/lib/2.2/pg_ext.so +0 -0
- data/lib/2.3/pg_ext.so +0 -0
- data/lib/libpq.dll +0 -0
- data/lib/pg.rb +2 -2
- data/sample/disk_usage_report.rb +1 -1
- data/sample/pg_statistics.rb +1 -1
- data/sample/replication_monitor.rb +1 -1
- data/spec/pg/connection_spec.rb +3 -3
- metadata +20 -26
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a155a76de930068345b75e52f1ca79d27f83d14f
|
4
|
+
data.tar.gz: b00da54809eea7aeb0a1a4437f6cb6e680365466
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40ef92e285af54bd428d9335b6560862c2a703d9b26c40d2faf47ef7b4534ee9ce6a75c0801b684b2806b01e922264ef3ce393da6925d29d05c28f8ad2dddd0f
|
7
|
+
data.tar.gz: 82b6fbd6b2f1e0730fc24952684a3f7215610021cfccb763c1e67e6b7d02e5cd42d242808d4b832229e7b4471c276852be1ca1e99548e73cc4de38daa8890b0e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/ChangeLog
CHANGED
@@ -1,26 +1,136 @@
|
|
1
|
-
2016-
|
1
|
+
2016-09-04 Lars Kanis <lars@greiz-reinsdorf.de>
|
2
2
|
|
3
|
-
*
|
4
|
-
|
3
|
+
* ext/pg_connection.c:
|
4
|
+
Replace rb_ary_new_from_args() which is missing in Ruby-2.0
|
5
5
|
|
6
|
-
|
6
|
+
We don't really need an Array at all, but storing the values on the
|
7
|
+
stack is enough.
|
8
|
+
[4d9c4ee44d11] [tip]
|
7
9
|
|
8
|
-
*
|
9
|
-
|
10
|
-
|
10
|
+
* ext/pg_connection.c:
|
11
|
+
Use the asynchronous interface for setting the default_encoding.
|
12
|
+
|
13
|
+
This is another attempt to solve issue https://bitbucket.org/ged
|
14
|
+
/ruby-pg/issues/245 While setting the encoding per
|
15
|
+
PQsetClientEncoding was already adjusted to release the GVL in a
|
16
|
+
previous commit, it did not solve the particular issue with
|
17
|
+
pgbouncer.
|
18
|
+
|
19
|
+
Using the async interface has the advantage, that signals or
|
20
|
+
exception events can be processed by the given thread, while a query
|
21
|
+
is running.
|
22
|
+
[a646a1394e9d]
|
23
|
+
|
24
|
+
* spec/pg/connection_spec.rb:
|
25
|
+
Spec: Use a more effective test for default_internal.
|
26
|
+
|
27
|
+
UFT-8 is the standard for internal_encoding anyway, so that not
|
28
|
+
setting it did not result in a failure.
|
29
|
+
[08e7e13687e7]
|
30
|
+
|
31
|
+
2016-08-20 Michael Granger <ged@FaerieMUD.org>
|
32
|
+
|
33
|
+
* certs/ged.pem, pg.gemspec:
|
34
|
+
Correct key+cert upgrade.
|
35
|
+
|
36
|
+
Refs #241.
|
37
|
+
[7431b5c1430d]
|
38
|
+
|
39
|
+
* README.rdoc:
|
40
|
+
Merged with upstream
|
41
|
+
[cf9ac513102e]
|
42
|
+
|
43
|
+
* BSDL, README.rdoc, ext/pg.c:
|
44
|
+
Update copyright year, license files
|
45
|
+
[c77d0997b4e4]
|
46
|
+
|
47
|
+
* README.rdoc, certs/ged.pem:
|
48
|
+
Update/upgrade my signing cert
|
49
|
+
|
50
|
+
Fixes #241.
|
51
|
+
[741c94c3bada]
|
52
|
+
|
53
|
+
2016-08-17 Michael Granger <ged@FaerieMUD.org>
|
54
|
+
|
55
|
+
* pg.gemspec:
|
56
|
+
Bump prerelease version in the gemspec
|
57
|
+
[f7472e7a7902]
|
58
|
+
|
59
|
+
2016-08-20 Lars Kanis <lars@greiz-reinsdorf.de>
|
60
|
+
|
61
|
+
* History.rdoc, lib/pg/connection.rb:
|
62
|
+
Fix wrong exception when running SQL while in #copy_data for output.
|
63
|
+
|
64
|
+
It raised "undefined method `result_status' for nil:NilClass"
|
65
|
+
previously and raises "no COPY in progress" now.
|
66
|
+
|
67
|
+
This also fixes the failing test of the previous commit.
|
68
|
+
[dbfc3856e543]
|
69
|
+
|
70
|
+
* spec/pg/connection_spec.rb:
|
71
|
+
Add tests for running SQL statements while in #copy_data.
|
72
|
+
|
73
|
+
The test for output currently fails.
|
74
|
+
[9b2b1cd54d49]
|
75
|
+
|
76
|
+
2016-08-18 Lars Kanis <lars@greiz-reinsdorf.de>
|
77
|
+
|
78
|
+
* Rakefile:
|
79
|
+
Don't update ext/errorcodes.def with every run of rake gem.
|
80
|
+
|
81
|
+
This fixes the previous commit.
|
82
|
+
[43a48561adde]
|
83
|
+
|
84
|
+
2016-08-17 Lars Kanis <lars@greiz-reinsdorf.de>
|
85
|
+
|
86
|
+
* .hgignore, History.rdoc, Rakefile, ext/errorcodes.def:
|
87
|
+
Add errorcodes.def to git in order to allow build from git per
|
88
|
+
bundler.
|
89
|
+
[29ca3eed927d]
|
11
90
|
|
12
91
|
* History.rdoc:
|
13
|
-
Update History.rdoc
|
14
|
-
[
|
92
|
+
Update History.rdoc once more.
|
93
|
+
[6874ea8622a1]
|
15
94
|
|
16
|
-
*
|
17
|
-
|
95
|
+
* README.rdoc:
|
96
|
+
Update README regarding to Ruby and PostgreSQL versions.
|
97
|
+
[73930bce99d9]
|
18
98
|
|
19
|
-
|
20
|
-
|
99
|
+
* spec/pg/basic_type_mapping_spec.rb:
|
100
|
+
Run JSON test on PostgreSQL-9.4+, only.
|
21
101
|
|
22
|
-
|
23
|
-
[
|
102
|
+
Earlier versions miss the JSONB type.
|
103
|
+
[6b23964f70c3]
|
104
|
+
|
105
|
+
* appveyor.yml:
|
106
|
+
Update Appveyor to use Ruby 2.3 and remove 2.0 and 2.1.
|
107
|
+
[8ff3d0b07cda]
|
108
|
+
|
109
|
+
* .travis.yml:
|
110
|
+
Remove ruby versions before 2.2, because hoe-deveiate isn't
|
111
|
+
compatible with these versions.
|
112
|
+
[73279f9db276]
|
113
|
+
|
114
|
+
* lib/pg/basic_type_mapping.rb, lib/pg/text_decoder.rb,
|
115
|
+
lib/pg/text_encoder.rb, spec/pg/basic_type_mapping_spec.rb:
|
116
|
+
Add JSON coders and add them to BasicTypeMapForResults and
|
117
|
+
BasicTypeMapBasedOnResult
|
118
|
+
|
119
|
+
Fixes bitbucket issue #212 .
|
120
|
+
[b76471234f7a]
|
121
|
+
|
122
|
+
2016-08-14 Lars Kanis <lars@greiz-reinsdorf.de>
|
123
|
+
|
124
|
+
* lib/pg/basic_type_mapping.rb:
|
125
|
+
Improve documentation to PG::BasicTypeMapForQueries
|
126
|
+
[e7181c452c64]
|
127
|
+
|
128
|
+
* History.rdoc:
|
129
|
+
Update History.rdoc
|
130
|
+
[9c3699255853]
|
131
|
+
|
132
|
+
* Merge git master
|
133
|
+
[9b7987626074]
|
24
134
|
|
25
135
|
2016-06-27 Michael Granger <ged@FaerieMUD.org>
|
26
136
|
|
@@ -40,6 +150,25 @@
|
|
40
150
|
Add mechanism for trying to build without pg_config
|
41
151
|
[22a3a8ef3244]
|
42
152
|
|
153
|
+
2016-08-13 Lars Kanis <lars@greiz-reinsdorf.de>
|
154
|
+
|
155
|
+
* Rakefile.cross:
|
156
|
+
Update OpenSSL and PostgreSQL for binary Windows gems.
|
157
|
+
[edbd5b8dbb85]
|
158
|
+
|
159
|
+
* History.rdoc:
|
160
|
+
Update History.rdoc
|
161
|
+
[aca7b024ba0c]
|
162
|
+
|
163
|
+
* ext/gvl_wrappers.h, ext/pg_connection.c:
|
164
|
+
Release GVL while calling PQsetClientEncoding()
|
165
|
+
|
166
|
+
PQsetClientEncoding() is also called within PG::Connection.new which
|
167
|
+
could block due to network delay.
|
168
|
+
|
169
|
+
This fixes bitbucket issue #245 .
|
170
|
+
[41f81b72476f]
|
171
|
+
|
43
172
|
2015-12-25 Lars Kanis <lars@greiz-reinsdorf.de>
|
44
173
|
|
45
174
|
* ext/pg.h, ext/pg_binary_encoder.c, ext/pg_coder.c,
|
@@ -298,12 +427,6 @@
|
|
298
427
|
Merge branch 'master@1' of ../ruby-pg.git.bare
|
299
428
|
[b324f3f65a0c]
|
300
429
|
|
301
|
-
* README.rdoc, ext/pg_copy_coder.c, lib/pg/basic_type_mapping.rb,
|
302
|
-
lib/pg/connection.rb:
|
303
|
-
Add a lot more of documentation, how COPY can be used with type
|
304
|
-
coders and type maps.
|
305
|
-
[256c059e4802]
|
306
|
-
|
307
430
|
2015-11-13 Michael Granger <ged@FaerieMUD.org>
|
308
431
|
|
309
432
|
* .hgtags:
|
@@ -342,6 +465,14 @@
|
|
342
465
|
Only use fivefish formatter when building from repo
|
343
466
|
[6161d8eeb3f1]
|
344
467
|
|
468
|
+
2015-12-26 Lars Kanis <lars@greiz-reinsdorf.de>
|
469
|
+
|
470
|
+
* README.rdoc, ext/pg_copy_coder.c, lib/pg/basic_type_mapping.rb,
|
471
|
+
lib/pg/connection.rb:
|
472
|
+
Add a lot more of documentation, how COPY can be used with type
|
473
|
+
coders and type maps.
|
474
|
+
[256c059e4802]
|
475
|
+
|
345
476
|
2015-11-13 Lars Kanis <lars@greiz-reinsdorf.de>
|
346
477
|
|
347
478
|
* History.rdoc:
|
@@ -480,6 +611,20 @@
|
|
480
611
|
* Merge branch 'master' of github.com:larskanis/ruby-pg
|
481
612
|
[d27d6d5a6545]
|
482
613
|
|
614
|
+
2015-06-29 Lars Kanis <kanis@comcard.de>
|
615
|
+
|
616
|
+
* History.rdoc:
|
617
|
+
Merge branch 'master' of https://github.com/larskanis/ruby-pg
|
618
|
+
|
619
|
+
Conflicts: History.rdoc
|
620
|
+
[affb47533d82]
|
621
|
+
|
622
|
+
* History.rdoc, ext/util.c, spec/pg/type_spec.rb:
|
623
|
+
Fix data type resulting in wrong base64 encoding.
|
624
|
+
[5fb9170f6a7d]
|
625
|
+
|
626
|
+
2015-08-20 Lars Kanis <lars@greiz-reinsdorf.de>
|
627
|
+
|
483
628
|
* README.rdoc:
|
484
629
|
Add Appveyor status badge to the README.
|
485
630
|
[c9637c6efcfb]
|
@@ -510,18 +655,6 @@
|
|
510
655
|
Add CI-tests on appveyor.
|
511
656
|
[c2dc9e491853]
|
512
657
|
|
513
|
-
2015-06-29 Lars Kanis <kanis@comcard.de>
|
514
|
-
|
515
|
-
* History.rdoc:
|
516
|
-
Merge branch 'master' of https://github.com/larskanis/ruby-pg
|
517
|
-
|
518
|
-
Conflicts: History.rdoc
|
519
|
-
[affb47533d82]
|
520
|
-
|
521
|
-
* History.rdoc, ext/util.c, spec/pg/type_spec.rb:
|
522
|
-
Fix data type resulting in wrong base64 encoding.
|
523
|
-
[5fb9170f6a7d]
|
524
|
-
|
525
658
|
2015-06-17 Lars Kanis <lars@greiz-reinsdorf.de>
|
526
659
|
|
527
660
|
* Gemfile, Rakefile, Rakefile.cross:
|
@@ -599,6 +732,18 @@
|
|
599
732
|
* Merged
|
600
733
|
[3d56a65c78c5]
|
601
734
|
|
735
|
+
2015-05-25 Michael Granger <ged@FaerieMUD.org>
|
736
|
+
|
737
|
+
* ext/pg_connection.c:
|
738
|
+
Change instance_of checks to kind_of for subclassing [#220]
|
739
|
+
[eb4d3c003bd6]
|
740
|
+
|
741
|
+
* lib/pg/basic_type_mapping.rb:
|
742
|
+
Whitespace fixes
|
743
|
+
[4a4368e30bcf]
|
744
|
+
|
745
|
+
2015-06-08 Lars Kanis <lars@greiz-reinsdorf.de>
|
746
|
+
|
602
747
|
* Gemfile, Rakefile, Rakefile.cross:
|
603
748
|
Add rake task 'gem:windows' which makes use of the new rake-
|
604
749
|
compiler-dock.
|
@@ -611,16 +756,6 @@
|
|
611
756
|
PostgreSQL-9.4.0
|
612
757
|
[630a22437026]
|
613
758
|
|
614
|
-
2015-05-25 Michael Granger <ged@FaerieMUD.org>
|
615
|
-
|
616
|
-
* ext/pg_connection.c:
|
617
|
-
Change instance_of checks to kind_of for subclassing [#220]
|
618
|
-
[eb4d3c003bd6]
|
619
|
-
|
620
|
-
* lib/pg/basic_type_mapping.rb:
|
621
|
-
Whitespace fixes
|
622
|
-
[4a4368e30bcf]
|
623
|
-
|
624
759
|
2015-05-14 Michael Granger <ged@FaerieMUD.org>
|
625
760
|
|
626
761
|
* .hgtags:
|
@@ -718,6 +853,26 @@
|
|
718
853
|
Merge from git branch.
|
719
854
|
[b60c89ee93c8]
|
720
855
|
|
856
|
+
2015-02-03 Michael Granger <ged@FaerieMUD.org>
|
857
|
+
|
858
|
+
* README.rdoc, ext/pg.c:
|
859
|
+
Update copyright notices
|
860
|
+
[447962e0dcba]
|
861
|
+
|
862
|
+
* spec/pg/connection_spec.rb:
|
863
|
+
Whitespace fixes
|
864
|
+
[f4a85f78807d]
|
865
|
+
|
866
|
+
2014-08-22 Chris Bandy <bandy.chris@gmail.com>
|
867
|
+
|
868
|
+
* lib/pg/connection.rb, spec/pg/connection_spec.rb:
|
869
|
+
Allow URI connection string
|
870
|
+
|
871
|
+
(Imported from https://github.com/ged/ruby-pg/pull/3)
|
872
|
+
[d4579ef9eae4]
|
873
|
+
|
874
|
+
2015-02-11 Lars Kanis <lars@greiz-reinsdorf.de>
|
875
|
+
|
721
876
|
* ext/pg.h, ext/pg_text_decoder.c:
|
722
877
|
Merge branch 'non-c99-compiler'
|
723
878
|
[b111c84b8445]
|
@@ -760,24 +915,6 @@
|
|
760
915
|
implementation.
|
761
916
|
[df67241d1a4f]
|
762
917
|
|
763
|
-
2015-02-03 Michael Granger <ged@FaerieMUD.org>
|
764
|
-
|
765
|
-
* README.rdoc, ext/pg.c:
|
766
|
-
Update copyright notices
|
767
|
-
[447962e0dcba]
|
768
|
-
|
769
|
-
* spec/pg/connection_spec.rb:
|
770
|
-
Whitespace fixes
|
771
|
-
[f4a85f78807d]
|
772
|
-
|
773
|
-
2014-08-22 Chris Bandy <bandy.chris@gmail.com>
|
774
|
-
|
775
|
-
* lib/pg/connection.rb, spec/pg/connection_spec.rb:
|
776
|
-
Allow URI connection string
|
777
|
-
|
778
|
-
(Imported from https://github.com/ged/ruby-pg/pull/3)
|
779
|
-
[d4579ef9eae4]
|
780
|
-
|
781
918
|
2015-01-27 Lars Kanis <lars@greiz-reinsdorf.de>
|
782
919
|
|
783
920
|
* lib/pg/text_decoder.rb, spec/pg/type_spec.rb:
|
@@ -865,6 +1002,13 @@
|
|
865
1002
|
Add a Rake task for generating the gemspec
|
866
1003
|
[ec6d6ce61a15]
|
867
1004
|
|
1005
|
+
2014-12-31 Lars Kanis <lars@greiz-reinsdorf.de>
|
1006
|
+
|
1007
|
+
* Rakefile.cross, lib/pg.rb, misc/postgresql-9.4.0.with-buggy-
|
1008
|
+
mingw-w64.patch:
|
1009
|
+
Add workaround for buggy mingw-w64 toolchain on Ubuntu-14.10
|
1010
|
+
[f5c7f9158ee2]
|
1011
|
+
|
868
1012
|
2014-12-26 Lars Kanis <lars@greiz-reinsdorf.de>
|
869
1013
|
|
870
1014
|
* lib/pg/basic_type_mapping.rb:
|
@@ -1203,6 +1347,16 @@
|
|
1203
1347
|
Add type mapping and performance improvements
|
1204
1348
|
[0da90c2b2812]
|
1205
1349
|
|
1350
|
+
* spec/helpers.rb, spec/pg/connection_spec.rb:
|
1351
|
+
Merged with 4cc778c5ead7
|
1352
|
+
[67bb0f34ca05]
|
1353
|
+
|
1354
|
+
2014-08-20 Michael Granger <ged@FaerieMUD.org>
|
1355
|
+
|
1356
|
+
* spec/helpers.rb, spec/pg/connection_spec.rb:
|
1357
|
+
Check connection status with a matcher in specs
|
1358
|
+
[b32840b98e4b]
|
1359
|
+
|
1206
1360
|
2014-10-09 Lars Kanis <lars@greiz-reinsdorf.de>
|
1207
1361
|
|
1208
1362
|
* Rakefile, Rakefile.cross, ext/extconf.rb:
|
@@ -1295,6 +1449,35 @@
|
|
1295
1449
|
alloc_query_params1() and avoids code duplication within type maps.
|
1296
1450
|
[2afa6cc41d55]
|
1297
1451
|
|
1452
|
+
2014-10-09 Lars Kanis <lars@greiz-reinsdorf.de>
|
1453
|
+
|
1454
|
+
* Rakefile, Rakefile.cross, ext/extconf.rb:
|
1455
|
+
gcc option -static-libgcc is required for i386-mingw32 build.
|
1456
|
+
|
1457
|
+
Don't use native pg_config for cross build. The paths were
|
1458
|
+
overwritten anyways until now.
|
1459
|
+
|
1460
|
+
Remove code that was only needed for static build to libpq.
|
1461
|
+
[4cc778c5ead7]
|
1462
|
+
|
1463
|
+
2014-10-09 Lars Kanis <kanis@comcard.de>
|
1464
|
+
|
1465
|
+
* Rakefile, Rakefile.cross, lib/pg.rb:
|
1466
|
+
Bundle libpq.dll into gem, because PostgreSQL-9.3 does no longer
|
1467
|
+
support static linking.
|
1468
|
+
[a37e27d356e5]
|
1469
|
+
|
1470
|
+
2014-10-04 Lars Kanis <lars@greiz-reinsdorf.de>
|
1471
|
+
|
1472
|
+
* spec/helpers.rb, spec/pg/connection_spec.rb:
|
1473
|
+
Add missing spec for hash form parameters to #exec_params .
|
1474
|
+
[04a6a0136a12]
|
1475
|
+
|
1476
|
+
* spec/pg/type_map_by_column_spec.rb:
|
1477
|
+
Fix handling of query parameters in hash form in conjunction with
|
1478
|
+
type map.
|
1479
|
+
[a5f028117537]
|
1480
|
+
|
1298
1481
|
* spec/pg/connection_spec.rb:
|
1299
1482
|
Add missing spec for hash form parameters to #exec_params .
|
1300
1483
|
[23ad5d676b53]
|
@@ -2601,36 +2784,6 @@
|
|
2601
2784
|
integer and float values to proper ruby types.
|
2602
2785
|
[71ddc0446d26]
|
2603
2786
|
|
2604
|
-
2014-10-11 Michael Granger <ged@FaerieMUD.org>
|
2605
|
-
|
2606
|
-
* spec/helpers.rb, spec/pg/connection_spec.rb:
|
2607
|
-
Merged with 4cc778c5ead7
|
2608
|
-
[67bb0f34ca05]
|
2609
|
-
|
2610
|
-
2014-10-09 Lars Kanis <lars@greiz-reinsdorf.de>
|
2611
|
-
|
2612
|
-
* Rakefile, Rakefile.cross, ext/extconf.rb:
|
2613
|
-
gcc option -static-libgcc is required for i386-mingw32 build.
|
2614
|
-
|
2615
|
-
Don't use native pg_config for cross build. The paths were
|
2616
|
-
overwritten anyways until now.
|
2617
|
-
|
2618
|
-
Remove code that was only needed for static build to libpq.
|
2619
|
-
[4cc778c5ead7]
|
2620
|
-
|
2621
|
-
2014-10-09 Lars Kanis <kanis@comcard.de>
|
2622
|
-
|
2623
|
-
* Rakefile, Rakefile.cross, lib/pg.rb:
|
2624
|
-
Bundle libpq.dll into gem, because PostgreSQL-9.3 does no longer
|
2625
|
-
support static linking.
|
2626
|
-
[a37e27d356e5]
|
2627
|
-
|
2628
|
-
2014-10-04 Lars Kanis <lars@greiz-reinsdorf.de>
|
2629
|
-
|
2630
|
-
* spec/helpers.rb, spec/pg/connection_spec.rb:
|
2631
|
-
Add missing spec for hash form parameters to #exec_params .
|
2632
|
-
[04a6a0136a12]
|
2633
|
-
|
2634
2787
|
2014-08-24 Lars Kanis <lars@greiz-reinsdorf.de>
|
2635
2788
|
|
2636
2789
|
* ext/pg_connection.c:
|
@@ -2682,10 +2835,6 @@
|
|
2682
2835
|
|
2683
2836
|
2014-08-20 Michael Granger <ged@FaerieMUD.org>
|
2684
2837
|
|
2685
|
-
* spec/helpers.rb, spec/pg/connection_spec.rb:
|
2686
|
-
Check connection status with a matcher in specs
|
2687
|
-
[b32840b98e4b]
|
2688
|
-
|
2689
2838
|
* ext/pg_connection.c, lib/pg/connection.rb,
|
2690
2839
|
spec/pg/connection_spec.rb:
|
2691
2840
|
Implement PG::Connection#conninfo and use it to test #188
|
@@ -2710,19 +2859,17 @@
|
|
2710
2859
|
* Merge with 6c2444dc63e1
|
2711
2860
|
[d7160a9fb5dc]
|
2712
2861
|
|
2713
|
-
2013-12-30 Lars Kanis <lars@greiz-reinsdorf.de>
|
2714
|
-
|
2715
|
-
* ext/pg_connection.c:
|
2716
|
-
Fix typo in documentation.
|
2717
|
-
[6c2444dc63e1]
|
2718
|
-
|
2719
|
-
2014-06-05 Michael Granger <ged@FaerieMUD.org>
|
2720
|
-
|
2721
2862
|
* .rvm.gems, Rakefile, spec/helpers.rb, spec/lib/helpers.rb,
|
2722
2863
|
spec/pg/connection_spec.rb, spec/pg/result_spec.rb, spec/pg_spec.rb:
|
2723
2864
|
Convert specs to expect syntax for RSpec 3
|
2724
2865
|
[c9108c846ab2]
|
2725
2866
|
|
2867
|
+
2013-12-30 Lars Kanis <lars@greiz-reinsdorf.de>
|
2868
|
+
|
2869
|
+
* ext/pg_connection.c:
|
2870
|
+
Fix typo in documentation.
|
2871
|
+
[6c2444dc63e1]
|
2872
|
+
|
2726
2873
|
2013-12-18 Michael Granger <ged@FaerieMUD.org>
|
2727
2874
|
|
2728
2875
|
* .hgtags:
|
@@ -2877,15 +3024,6 @@
|
|
2877
3024
|
* merge tip
|
2878
3025
|
[90252df3c5c8]
|
2879
3026
|
|
2880
|
-
* lib/pg/connection.rb, spec/pg/connection_spec.rb:
|
2881
|
-
Add PG::Connection#copy_data as a convenience method.
|
2882
|
-
[5096385267ab]
|
2883
|
-
|
2884
|
-
* ext/pg_result.c:
|
2885
|
-
Return self from PG::Result#check instead of nil. This allowes to
|
2886
|
-
stack method calls.
|
2887
|
-
[8255d4f73334]
|
2888
|
-
|
2889
3027
|
2013-08-15 Lars Kanis <lars@greiz-reinsdorf.de>
|
2890
3028
|
|
2891
3029
|
* Rakefile.cross:
|
@@ -2895,6 +3033,17 @@
|
|
2895
3033
|
This is 'i586-mingw32msvc-gcc' versus 'i586-pc-mingw32msvc'.
|
2896
3034
|
[fbee9586e8f7]
|
2897
3035
|
|
3036
|
+
2013-08-18 Lars Kanis <lars@greiz-reinsdorf.de>
|
3037
|
+
|
3038
|
+
* lib/pg/connection.rb, spec/pg/connection_spec.rb:
|
3039
|
+
Add PG::Connection#copy_data as a convenience method.
|
3040
|
+
[5096385267ab]
|
3041
|
+
|
3042
|
+
* ext/pg_result.c:
|
3043
|
+
Return self from PG::Result#check instead of nil. This allowes to
|
3044
|
+
stack method calls.
|
3045
|
+
[8255d4f73334]
|
3046
|
+
|
2898
3047
|
2013-08-14 Lars Kanis <lars@greiz-reinsdorf.de>
|
2899
3048
|
|
2900
3049
|
* Gemfile, Rakefile:
|
@@ -2936,6 +3085,10 @@
|
|
2936
3085
|
Travis: Allow failures on rbx.
|
2937
3086
|
[7be3b156c8fb]
|
2938
3087
|
|
3088
|
+
* spec/pg/column_mapping_spec.rb:
|
3089
|
+
Too less quoting. Should fix compat with PostgreSQL 8.4.
|
3090
|
+
[45fc78971757]
|
3091
|
+
|
2939
3092
|
2013-07-18 Lars Kanis <kanis@comcard.de>
|
2940
3093
|
|
2941
3094
|
* spec/pg/connection_spec.rb:
|
@@ -2971,6 +3124,92 @@
|
|
2971
3124
|
This test failed on Windows x64.
|
2972
3125
|
[6894f73d7039]
|
2973
3126
|
|
3127
|
+
* Manifest.txt:
|
3128
|
+
Add missing files to Manifest.txt.
|
3129
|
+
[3b4bc9524bb3]
|
3130
|
+
|
3131
|
+
* Manifest.txt, ext/pg_column_mapping.c, ext/util.c, ext/util.h:
|
3132
|
+
Add compat with Windows platform.
|
3133
|
+
[3ac02d0ccf19]
|
3134
|
+
|
3135
|
+
* ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
|
3136
|
+
Add compat with Ruby-1.8.7.
|
3137
|
+
[7bcb3040fe34]
|
3138
|
+
|
3139
|
+
* spec/pg/column_mapping_spec.rb:
|
3140
|
+
Use old BYTEA escaping for compat with PostgreSQL 8.4
|
3141
|
+
[2fad9e274ad3]
|
3142
|
+
|
3143
|
+
2013-07-04 Lars Kanis <lars@greiz-reinsdorf.de>
|
3144
|
+
|
3145
|
+
* ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
|
3146
|
+
Add BinaryBolean converter.
|
3147
|
+
|
3148
|
+
Refactor converter tests.
|
3149
|
+
[06c99b04f572]
|
3150
|
+
|
3151
|
+
* ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
|
3152
|
+
Add BinaryFloat converter.
|
3153
|
+
[493b0354c678]
|
3154
|
+
|
3155
|
+
2013-07-03 Lars Kanis <lars@greiz-reinsdorf.de>
|
3156
|
+
|
3157
|
+
* ext/pg_column_mapping.c, lib/pg/result.rb,
|
3158
|
+
spec/pg/column_mapping_spec.rb, spec/pg/result_spec.rb:
|
3159
|
+
Change ColumnMapping#initialize to take one Array arg rather than a
|
3160
|
+
parameter list.
|
3161
|
+
|
3162
|
+
Suggested by Aaron: https://groups.google.com/d/msg/ruby-
|
3163
|
+
pg/PE5K6q9RzBs/M5prOno39DEJ
|
3164
|
+
[c2ca10bf93c5]
|
3165
|
+
|
3166
|
+
* spec/pg/result_spec.rb:
|
3167
|
+
Add test case for all value retrieving methods of PG::Result .
|
3168
|
+
[e1055f877c58]
|
3169
|
+
|
3170
|
+
* spec/pg/column_mapping_spec.rb:
|
3171
|
+
Add test case for default_mapping in Result#map_types!
|
3172
|
+
[489220119795]
|
3173
|
+
|
3174
|
+
* lib/pg/result.rb, spec/pg/column_mapping_spec.rb:
|
3175
|
+
Add convenience method PG::Result#map_types!
|
3176
|
+
[de02df7fb198]
|
3177
|
+
|
3178
|
+
* spec/pg/column_mapping_spec.rb:
|
3179
|
+
Add Boolean ColumnMapping spec and do Integer a bit more compact.
|
3180
|
+
[4256841e088f]
|
3181
|
+
|
3182
|
+
2013-07-01 Lars Kanis <kanis@comcard.de>
|
3183
|
+
|
3184
|
+
* ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
|
3185
|
+
Add converter BinaryInteger.
|
3186
|
+
[6f0c8f72962f]
|
3187
|
+
|
3188
|
+
* ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb,
|
3189
|
+
spec/pg/result_spec.rb:
|
3190
|
+
Use instances of PG::ColumnMapping::CConverter as representation of
|
3191
|
+
the buildin converters instead of plain symbols. Symbol arguments
|
3192
|
+
are converted to these instances, for convenience.
|
3193
|
+
|
3194
|
+
This allows to store and retrieve additional informations to the
|
3195
|
+
conversion and also which conversions are supported.
|
3196
|
+
[e4f6c37b5449]
|
3197
|
+
|
3198
|
+
* ext/pg_column_mapping.c:
|
3199
|
+
Don't depend on TYPE(obj)==T_DATA of a proc object for compat with
|
3200
|
+
rubinius.
|
3201
|
+
[c33c4ac01aaf]
|
3202
|
+
|
3203
|
+
2013-06-29 Lars Kanis <lars@greiz-reinsdorf.de>
|
3204
|
+
|
3205
|
+
* ext/pg.c, ext/pg.h, ext/pg_column_mapping.c, ext/pg_result.c,
|
3206
|
+
spec/pg/result_spec.rb:
|
3207
|
+
Add column based type mapping.
|
3208
|
+
|
3209
|
+
This allowes to speed up result retrieval by directly converting
|
3210
|
+
integer and float values to proper ruby types.
|
3211
|
+
[160c71c0b584]
|
3212
|
+
|
2974
3213
|
2013-07-06 Lars Kanis <lars@greiz-reinsdorf.de>
|
2975
3214
|
|
2976
3215
|
* ext/pg_connection.c, spec/pg/connection_spec.rb:
|
@@ -3256,14 +3495,14 @@
|
|
3256
3495
|
avoid warnings about truncated identifier.
|
3257
3496
|
|
3258
3497
|
Thanks to Svoop for this report.
|
3259
|
-
[
|
3498
|
+
[9a6791fe9409]
|
3260
3499
|
|
3261
3500
|
* lib/pg/connection.rb, spec/pg/connection_spec.rb:
|
3262
3501
|
Send a shortened $0 as application_name to the server in order to
|
3263
3502
|
avoid warnings about truncated identifier.
|
3264
3503
|
|
3265
3504
|
Thanks to Svoop for this report.
|
3266
|
-
[
|
3505
|
+
[134e067259ee] <v0.15-stable>
|
3267
3506
|
|
3268
3507
|
2013-03-26 Michael Granger <ged@FaerieMUD.org>
|
3269
3508
|
|
@@ -3351,17 +3590,6 @@
|
|
3351
3590
|
Merge with https://bitbucket.org/ged/ruby-pg
|
3352
3591
|
[3230e6c245e0]
|
3353
3592
|
|
3354
|
-
* Rakefile, Rakefile.cross:
|
3355
|
-
Add support for cross build for multiple platforms (i386-mingw32 and
|
3356
|
-
x64-mingw32).
|
3357
|
-
|
3358
|
-
Update OpenSSL for cross build to 1.0.1e Update PostgreSQL for cross
|
3359
|
-
build to 9.2.3
|
3360
|
-
|
3361
|
-
Remove -lws2_32 for PostgreSQL build. It fails to compile for
|
3362
|
-
x64-mingw32 elsewise.
|
3363
|
-
[6a2a1a53dedc]
|
3364
|
-
|
3365
3593
|
2013-03-12 Michael Granger <ged@FaerieMUD.org>
|
3366
3594
|
|
3367
3595
|
* Rakefile.cross:
|
@@ -3376,6 +3604,19 @@
|
|
3376
3604
|
Bump versions of dev dependencies
|
3377
3605
|
[cba92fb4b89e]
|
3378
3606
|
|
3607
|
+
2013-03-13 Lars Kanis <kanis@comcard.de>
|
3608
|
+
|
3609
|
+
* Rakefile, Rakefile.cross:
|
3610
|
+
Add support for cross build for multiple platforms (i386-mingw32 and
|
3611
|
+
x64-mingw32).
|
3612
|
+
|
3613
|
+
Update OpenSSL for cross build to 1.0.1e Update PostgreSQL for cross
|
3614
|
+
build to 9.2.3
|
3615
|
+
|
3616
|
+
Remove -lws2_32 for PostgreSQL build. It fails to compile for
|
3617
|
+
x64-mingw32 elsewise.
|
3618
|
+
[6a2a1a53dedc]
|
3619
|
+
|
3379
3620
|
2013-03-06 Michael Granger <ged@FaerieMUD.org>
|
3380
3621
|
|
3381
3622
|
* README.rdoc:
|
@@ -3627,61 +3868,6 @@
|
|
3627
3868
|
Make source settings override TM2 defaults
|
3628
3869
|
[c5706b3f73af]
|
3629
3870
|
|
3630
|
-
2012-12-26 Lars Kanis <kanis@comcard.de>
|
3631
|
-
|
3632
|
-
* ext/extconf.rb, ext/pg_connection.c, spec/pg/connection_spec.rb:
|
3633
|
-
merge in default branch
|
3634
|
-
[ca39e311d1eb] <use_gvl_for_blocking_functions>
|
3635
|
-
|
3636
|
-
* ext/gvl_wrappers.h:
|
3637
|
-
Add some documentation to gvl_wrappers
|
3638
|
-
[ffeb6a0afd1f] <use_gvl_for_blocking_functions>
|
3639
|
-
|
3640
|
-
* spec/pg/connection_spec.rb:
|
3641
|
-
Add test case for threading with Connection#exec in ruby 1.9
|
3642
|
-
[73b9aa38e8c0] <use_gvl_for_blocking_functions>
|
3643
|
-
|
3644
|
-
* ext/extconf.rb, ext/gvl_wrappers.c, ext/gvl_wrappers.h, ext/pg.h,
|
3645
|
-
ext/pg_connection.c:
|
3646
|
-
Add wrappers to blocking functions and callbacks in order to release
|
3647
|
-
the GVL of ruby 1.9 as long as not in ruby code
|
3648
|
-
[2f2c681424ed] <use_gvl_for_blocking_functions>
|
3649
|
-
|
3650
|
-
2012-07-02 Lars Kanis <kanis@comcard.de>
|
3651
|
-
|
3652
|
-
* ext/pg_connection.c, spec/pg/connection_spec.rb:
|
3653
|
-
Fix encoding of values delivered to the row processor and add specs
|
3654
|
-
for binary and text data.
|
3655
|
-
[bb9c6625fbc9] <row_processor>
|
3656
|
-
|
3657
|
-
* ext/pg_connection.c:
|
3658
|
-
Polish the documentation a little bit
|
3659
|
-
[b7633be3c941] <row_processor>
|
3660
|
-
|
3661
|
-
2012-07-01 Lars Kanis <kanis@comcard.de>
|
3662
|
-
|
3663
|
-
* ext/pg_connection.c:
|
3664
|
-
Get rid of gcc warning about (non-)const PGresult to
|
3665
|
-
pg_new_result_for_callback()
|
3666
|
-
[1a25786ed8f3] <row_processor>
|
3667
|
-
|
3668
|
-
* ext/pg_connection.c, spec/pg/connection_spec.rb:
|
3669
|
-
Fix wrong encoding for Result object passed to a notice-receiver
|
3670
|
-
block. Add proper specs for #set_notice_receiver.
|
3671
|
-
[4280826bb9b9] <row_processor>
|
3672
|
-
|
3673
|
-
* ext/extconf.rb, ext/pg.h, ext/pg_connection.c, ext/pg_result.c,
|
3674
|
-
spec/lib/helpers.rb, spec/pg/connection_spec.rb:
|
3675
|
-
Implement PostgreSQL-9.2 functions PG::Connection#set_row_processor,
|
3676
|
-
get_row_processor, skip_result
|
3677
|
-
[b7ce4843f4d1] <row_processor>
|
3678
|
-
|
3679
|
-
2012-06-28 Lars Kanis <kanis@comcard.de>
|
3680
|
-
|
3681
|
-
* ext/pg_result.c:
|
3682
|
-
Add PGRES_COPY_BOTH to documentation of PG::Result#result_status
|
3683
|
-
[63998b47da6e] <copy_both_docu>
|
3684
|
-
|
3685
3871
|
2013-01-29 Aaron Patterson <aaron.patterson@gmail.com>
|
3686
3872
|
|
3687
3873
|
* ext/pg_result.c, lib/pg/result.rb, spec/pg/result_spec.rb:
|
@@ -3710,8 +3896,22 @@
|
|
3710
3896
|
Fix encoding of messages delivered by notice callbacks
|
3711
3897
|
[048d07d14867]
|
3712
3898
|
|
3899
|
+
2012-12-29 Lars Kanis <kanis@comcard.de>
|
3900
|
+
|
3901
|
+
* ext/gvl_wrappers.h:
|
3902
|
+
Simplify function declaration for gvl_wrappers a bit more
|
3903
|
+
[39ba7e52207e] <use_gvl_for_blocking_functions>
|
3904
|
+
|
3713
3905
|
2012-12-26 Lars Kanis <kanis@comcard.de>
|
3714
3906
|
|
3907
|
+
* ext/extconf.rb, ext/pg_connection.c, spec/pg/connection_spec.rb:
|
3908
|
+
merge in default branch
|
3909
|
+
[ca39e311d1eb] <use_gvl_for_blocking_functions>
|
3910
|
+
|
3911
|
+
* ext/gvl_wrappers.h:
|
3912
|
+
Add some documentation to gvl_wrappers
|
3913
|
+
[ffeb6a0afd1f] <use_gvl_for_blocking_functions>
|
3914
|
+
|
3715
3915
|
* ext/pg.c:
|
3716
3916
|
Use proper const check instead of implicit relation
|
3717
3917
|
[d0c5d5f7f1e8]
|
@@ -3731,12 +3931,23 @@
|
|
3731
3931
|
single row mode of PostgreSQL 9.2)
|
3732
3932
|
[49e3fe1dafdf]
|
3733
3933
|
|
3734
|
-
2012-12-
|
3934
|
+
2012-12-26 Lars Kanis <kanis@comcard.de>
|
3735
3935
|
|
3736
|
-
*
|
3737
|
-
|
3738
|
-
|
3739
|
-
|
3936
|
+
* spec/pg/connection_spec.rb:
|
3937
|
+
Add test case for threading with Connection#exec in ruby 1.9
|
3938
|
+
[73b9aa38e8c0] <use_gvl_for_blocking_functions>
|
3939
|
+
|
3940
|
+
* ext/extconf.rb, ext/gvl_wrappers.c, ext/gvl_wrappers.h, ext/pg.h,
|
3941
|
+
ext/pg_connection.c:
|
3942
|
+
Add wrappers to blocking functions and callbacks in order to release
|
3943
|
+
the GVL of ruby 1.9 as long as not in ruby code
|
3944
|
+
[2f2c681424ed] <use_gvl_for_blocking_functions>
|
3945
|
+
|
3946
|
+
* ext/extconf.rb, ext/gvl_wrappers.c, ext/gvl_wrappers.h, ext/pg.h,
|
3947
|
+
ext/pg_connection.c:
|
3948
|
+
Add wrappers to blocking functions and callbacks in order to release
|
3949
|
+
the GVL of ruby 1.9 as long as not in ruby code
|
3950
|
+
[6ad8aa8e10a5] <use_gvl_for_blocking_functions>
|
3740
3951
|
|
3741
3952
|
2012-12-19 Michael Granger <ged@FaerieMUD.org>
|
3742
3953
|
|
@@ -3760,6 +3971,14 @@
|
|
3760
3971
|
fix spacing on README.rdoc:21 to improve display on Github
|
3761
3972
|
[807f040166da]
|
3762
3973
|
|
3974
|
+
2012-12-26 Lars Kanis <kanis@comcard.de>
|
3975
|
+
|
3976
|
+
* ext/extconf.rb, ext/gvl_wrappers.c, ext/gvl_wrappers.h, ext/pg.h,
|
3977
|
+
ext/pg_connection.c:
|
3978
|
+
Add wrappers to blocking functions and callbacks in order to release
|
3979
|
+
the GVL of ruby 1.9 while not in ruby code
|
3980
|
+
[c31ea26b15e9] <use_gvl_for_blocking_functions>
|
3981
|
+
|
3763
3982
|
2012-12-19 Lars Kanis <kanis@comcard.de>
|
3764
3983
|
|
3765
3984
|
* spec/pg/connection_spec.rb:
|
@@ -3776,6 +3995,11 @@
|
|
3776
3995
|
Add spec for PG::Result#field_values
|
3777
3996
|
[3618eb238aba]
|
3778
3997
|
|
3998
|
+
* ext/extconf.rb, ext/pg.c, ext/pg_connection.c,
|
3999
|
+
spec/pg/connection_spec.rb:
|
4000
|
+
Add single row mode of PostgreSQL 9.2
|
4001
|
+
[5cf348b75c1c] <single_row_mode>
|
4002
|
+
|
3779
4003
|
* lib/pg/connection.rb, spec/lib/helpers.rb:
|
3780
4004
|
Restore compatibility with PostgreSQL down to 8.3
|
3781
4005
|
[e4900f62e56d]
|
@@ -3897,6 +4121,15 @@
|
|
3897
4121
|
Add PGRES_COPY_BOTH to documentation of PG::Result#result_status
|
3898
4122
|
[5e0e06440b1a]
|
3899
4123
|
|
4124
|
+
* ext/pg_connection.c, spec/pg/connection_spec.rb:
|
4125
|
+
Fix encoding of values delivered to the row processor and add specs
|
4126
|
+
for binary and text data.
|
4127
|
+
[bb9c6625fbc9] <row_processor>
|
4128
|
+
|
4129
|
+
* ext/pg_connection.c:
|
4130
|
+
Polish the documentation a little bit
|
4131
|
+
[b7633be3c941] <row_processor>
|
4132
|
+
|
3900
4133
|
2012-06-23 Michael Granger <ged@FaerieMUD.org>
|
3901
4134
|
|
3902
4135
|
* .hgtags:
|
@@ -3907,6 +4140,33 @@
|
|
3907
4140
|
Added signature for changeset a45710f8db30
|
3908
4141
|
[634e0a42a101] [v0.14.0]
|
3909
4142
|
|
4143
|
+
2012-07-01 Lars Kanis <kanis@comcard.de>
|
4144
|
+
|
4145
|
+
* merge copy_both_docu
|
4146
|
+
[6e8ef5d4d216]
|
4147
|
+
|
4148
|
+
* ext/pg_connection.c:
|
4149
|
+
Get rid of gcc warning about (non-)const PGresult to
|
4150
|
+
pg_new_result_for_callback()
|
4151
|
+
[1a25786ed8f3] <row_processor>
|
4152
|
+
|
4153
|
+
* ext/pg_connection.c, spec/pg/connection_spec.rb:
|
4154
|
+
Fix wrong encoding for Result object passed to a notice-receiver
|
4155
|
+
block. Add proper specs for #set_notice_receiver.
|
4156
|
+
[4280826bb9b9] <row_processor>
|
4157
|
+
|
4158
|
+
* ext/extconf.rb, ext/pg.h, ext/pg_connection.c, ext/pg_result.c,
|
4159
|
+
spec/lib/helpers.rb, spec/pg/connection_spec.rb:
|
4160
|
+
Implement PostgreSQL-9.2 functions PG::Connection#set_row_processor,
|
4161
|
+
get_row_processor, skip_result
|
4162
|
+
[b7ce4843f4d1] <row_processor>
|
4163
|
+
|
4164
|
+
2012-06-28 Lars Kanis <kanis@comcard.de>
|
4165
|
+
|
4166
|
+
* ext/pg_result.c:
|
4167
|
+
Add PGRES_COPY_BOTH to documentation of PG::Result#result_status
|
4168
|
+
[63998b47da6e] <copy_both_docu>
|
4169
|
+
|
3910
4170
|
2012-06-17 Lars Kanis <kanis@comcard.de>
|
3911
4171
|
|
3912
4172
|
* Rakefile.cross, ext/extconf.rb,
|
data/ext/pg.c
CHANGED
data/ext/pg_binary_decoder.c
CHANGED
data/ext/pg_binary_encoder.c
CHANGED
data/ext/pg_connection.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
* pg_connection.c - PG::Connection class extension
|
3
|
-
* $Id
|
3
|
+
* $Id$
|
4
4
|
*
|
5
5
|
*/
|
6
6
|
|
@@ -3671,6 +3671,34 @@ pgconn_external_encoding(VALUE self)
|
|
3671
3671
|
}
|
3672
3672
|
|
3673
3673
|
|
3674
|
+
static VALUE
|
3675
|
+
pgconn_set_client_encoding_async1( VALUE args )
|
3676
|
+
{
|
3677
|
+
VALUE self = ((VALUE*)args)[0];
|
3678
|
+
VALUE encname = ((VALUE*)args)[1];
|
3679
|
+
VALUE query_format = rb_str_new_cstr("set client_encoding to '%s'");
|
3680
|
+
VALUE query = rb_funcall(query_format, rb_intern("%"), 1, encname);
|
3681
|
+
|
3682
|
+
pgconn_async_exec(1, &query, self);
|
3683
|
+
return 0;
|
3684
|
+
}
|
3685
|
+
|
3686
|
+
|
3687
|
+
static VALUE
|
3688
|
+
pgconn_set_client_encoding_async2( VALUE arg )
|
3689
|
+
{
|
3690
|
+
UNUSED(arg);
|
3691
|
+
return 1;
|
3692
|
+
}
|
3693
|
+
|
3694
|
+
|
3695
|
+
static VALUE
|
3696
|
+
pgconn_set_client_encoding_async( VALUE self, const char *encname )
|
3697
|
+
{
|
3698
|
+
VALUE args[] = { self, rb_str_new_cstr(encname) };
|
3699
|
+
return rb_rescue(pgconn_set_client_encoding_async1, (VALUE)&args, pgconn_set_client_encoding_async2, Qnil);
|
3700
|
+
}
|
3701
|
+
|
3674
3702
|
|
3675
3703
|
/*
|
3676
3704
|
* call-seq:
|
@@ -3689,7 +3717,7 @@ pgconn_set_default_encoding( VALUE self )
|
|
3689
3717
|
|
3690
3718
|
if (( enc = rb_default_internal_encoding() )) {
|
3691
3719
|
encname = pg_get_rb_encoding_as_pg_encoding( enc );
|
3692
|
-
if (
|
3720
|
+
if ( pgconn_set_client_encoding_async(self, encname) != 0 )
|
3693
3721
|
rb_warn( "Failed to set the default_internal encoding to %s: '%s'",
|
3694
3722
|
encname, PQerrorMessage(conn) );
|
3695
3723
|
pgconn_set_internal_encoding_index( self );
|
data/ext/pg_result.c
CHANGED
data/ext/pg_text_decoder.c
CHANGED
data/ext/pg_text_encoder.c
CHANGED
data/ext/pg_type_map.c
CHANGED
data/ext/pg_type_map_by_class.c
CHANGED
data/ext/pg_type_map_by_column.c
CHANGED
data/ext/pg_type_map_by_oid.c
CHANGED
data/ext/pg_type_map_in_ruby.c
CHANGED
data/ext/util.c
CHANGED
data/lib/2.0/pg_ext.so
CHANGED
Binary file
|
data/lib/2.1/pg_ext.so
CHANGED
Binary file
|
data/lib/2.2/pg_ext.so
CHANGED
Binary file
|
data/lib/2.3/pg_ext.so
CHANGED
Binary file
|
data/lib/libpq.dll
CHANGED
Binary file
|
data/lib/pg.rb
CHANGED
@@ -24,10 +24,10 @@ end
|
|
24
24
|
module PG
|
25
25
|
|
26
26
|
# Library version
|
27
|
-
VERSION = '0.19.0.
|
27
|
+
VERSION = '0.19.0.pre20160904200247'
|
28
28
|
|
29
29
|
# VCS revision
|
30
|
-
REVISION = %q$Revision
|
30
|
+
REVISION = %q$Revision$
|
31
31
|
|
32
32
|
class NotAllCopyDataRetrieved < PG::Error
|
33
33
|
end
|
data/sample/disk_usage_report.rb
CHANGED
data/sample/pg_statistics.rb
CHANGED
@@ -36,7 +36,7 @@ end
|
|
36
36
|
###
|
37
37
|
class PGMonitor
|
38
38
|
|
39
|
-
VERSION = %q$Id
|
39
|
+
VERSION = %q$Id$
|
40
40
|
|
41
41
|
# When to consider a slave as 'behind', measured in WAL segments.
|
42
42
|
# The default WAL segment size is 16, so we'll alert after
|
data/spec/pg/connection_spec.rb
CHANGED
@@ -1358,12 +1358,12 @@ describe PG::Connection do
|
|
1358
1358
|
|
1359
1359
|
begin
|
1360
1360
|
prev_encoding = Encoding.default_internal
|
1361
|
-
Encoding.default_internal = Encoding::
|
1361
|
+
Encoding.default_internal = Encoding::ISO8859_2
|
1362
1362
|
|
1363
1363
|
conn = PG.connect( @conninfo )
|
1364
|
-
expect( conn.internal_encoding ).to eq( Encoding::
|
1364
|
+
expect( conn.internal_encoding ).to eq( Encoding::ISO8859_2 )
|
1365
1365
|
res = conn.exec( "SELECT foo FROM defaultinternaltest" )
|
1366
|
-
expect( res[0]['foo'].encoding ).to eq( Encoding::
|
1366
|
+
expect( res[0]['foo'].encoding ).to eq( Encoding::ISO8859_2 )
|
1367
1367
|
ensure
|
1368
1368
|
conn.exec( "DROP TABLE defaultinternaltest" )
|
1369
1369
|
conn.finish if conn
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.0.
|
4
|
+
version: 0.19.0.pre20160904200247
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -11,32 +11,26 @@ bindir: bin
|
|
11
11
|
cert_chain:
|
12
12
|
- |
|
13
13
|
-----BEGIN CERTIFICATE-----
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
inYLQagqAF6goWTXgAJCdPd6SNeeSNqA6vlY7CV1Jh5kfNJJ6xu/CVij1GzCLu/5
|
33
|
-
DMOr26DBv+qLJRRC/2h34uX71q5QgeOyxvMg+7V3u/Q06DXyQ2VgeeqiwDFFpEH0
|
34
|
-
PFkdPO6ZqbTRcLfNH7mFgCBJjsfSjJrn0sPBlYyOXgCoByfZnZyrIMH/UY+lgQqS
|
35
|
-
6Von1VDsfQm0eJh5zYZD64ZF86phSR7mUX3mXItwH04HrZwkWpvgd871DZVR3i1n
|
36
|
-
w8aNA5re5+Rt/Vvjxj5AcEnZnZiz5x959NaddQocX32Z1unHw44pzRNUur1GInfW
|
37
|
-
p4vpx2kUSFSAGjtCbDGTNV2AH8w9OU4xEmNz8c5lyoA=
|
14
|
+
MIIDPDCCAiSgAwIBAgIBAzANBgkqhkiG9w0BAQUFADBEMQ0wCwYDVQQDDARsYXJz
|
15
|
+
MR8wHQYKCZImiZPyLGQBGRYPZ3JlaXotcmVpbnNkb3JmMRIwEAYKCZImiZPyLGQB
|
16
|
+
GRYCZGUwHhcNMTYwNjI1MTUyOTE0WhcNMTcwNjI1MTUyOTE0WjBEMQ0wCwYDVQQD
|
17
|
+
DARsYXJzMR8wHQYKCZImiZPyLGQBGRYPZ3JlaXotcmVpbnNkb3JmMRIwEAYKCZIm
|
18
|
+
iZPyLGQBGRYCZGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZb4Uv
|
19
|
+
RFJfRu/VEWiy3psh2jinETjiuBrL0NeRFGf8H7iU9+gx/DI/FFhfHGLrDeIskrJx
|
20
|
+
YIWDMmEjVO10UUdj7wu4ZhmU++0Cd7Kq9/TyP/shIP3IjqHjVLCnJ3P6f1cl5rxZ
|
21
|
+
gqo+d3BAoDrmPk0rtaf6QopwUw9RBiF8V4HqvpiY+ruJotP5UQDP4/lVOKvA8PI9
|
22
|
+
P0GmVbFBrbc7Zt5h78N3UyOK0u+nvOC23BvyHXzCtcFsXCoEkt+Wwh0RFqVZdnjM
|
23
|
+
LMO2vULHKKHDdX54K/sbVCj9pN9h1aotNzrEyo55zxn0G9PHg/G3P8nMvAXPkUTe
|
24
|
+
brhXrfCwWRvOXA4TAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0G
|
25
|
+
A1UdDgQWBBRAHK81igrXodaDj8a8/BIKsaZrETANBgkqhkiG9w0BAQUFAAOCAQEA
|
26
|
+
q2VlqIpcq21tixYN4SvBjHbFlZ3Ji8ibEqAF5LnECFgTKHZHLC32Uz3rxrHQpuQm
|
27
|
+
ZlzQY8fDCsGc0lh6YrHbUGg7BoDyTJnRMGBnXGHHsXSIYpmC7x+qAxp8xf1AvvEl
|
28
|
+
kmcb7LJN+2QzrpgJmDpNIPJMejM5NOvg1e+qvpNWpOf1u/S0HMpw4u4I99wbiZSo
|
29
|
+
ZQVoPQLB5AFRh5V3qOk6/qF1TxIAQl+OEqUGT7UWv2XYYaZS2FLbK8MqRyWzAYSc
|
30
|
+
PizTJCem24R2bzZN5VGvA5tpqgwytgcFq1PZofgFxK2uKPCS+tmsA8wIjjGzFsnR
|
31
|
+
WfgqWGyHn5K4wejsMic/uA==
|
38
32
|
-----END CERTIFICATE-----
|
39
|
-
date: 2016-
|
33
|
+
date: 2016-09-04 00:00:00.000000000 Z
|
40
34
|
dependencies:
|
41
35
|
- !ruby/object:Gem::Dependency
|
42
36
|
name: hoe-mercurial
|
metadata.gz.sig
CHANGED
Binary file
|