pg 0.19.0.pre20160817083826-x64-mingw32 → 0.19.0.pre20160820113039-x64-mingw32

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: b604e85fd0276d2f1916b75e7dd0bbe3f17e9cb9
4
- data.tar.gz: 66d513fa0601a2f2b6da377df12f17bcaad6f95b
3
+ metadata.gz: 985d3096e77c8baed3edfd38e6598e066abeb571
4
+ data.tar.gz: ca0e179fba5c2132a5083317f6fad778c5bd44b9
5
5
  SHA512:
6
- metadata.gz: e59d445f1d12feb0cafe8233d802d4858ff561d92b0965b0c930b047eb8578af6372738b144e498a56110b25b21fdca108d9b7409cee2d4eab1c32b8d84411f9
7
- data.tar.gz: b9ce6a6135aea6517c08a4d106db5fc772fe517d78b4c70fd874c5dc8218c8bd4f0bd21d9438a3aeaa85e4ec9b6826c8c425ab026c26068919cad7d0c7765520
6
+ metadata.gz: 961e70ed7b3300fd6fc3cf8fde85035efa54a88b861a82ab7be8fbbd80902b97fd7f03b5fa622638f21d19d39f2f67edc85420aee0765a357fc832da2139cb59
7
+ data.tar.gz: 68c697e5b1ca739efa120af9e52ef4d35d61a660dce7336c3c372d4e9b3ba6cea911381018f4e82902bd58a72d3e4d56bb806d83605edac7e3397a75fd70d31e
Binary file
data.tar.gz.sig CHANGED
Binary file
data/BSDL CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 1993-2010 Yukihiro Matsumoto. All rights reserved.
1
+ Copyright (C) 1993-2013 Yukihiro Matsumoto. All rights reserved.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without
4
4
  modification, are permitted provided that the following conditions
@@ -19,4 +19,4 @@ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19
19
  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20
20
  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21
21
  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22
- SUCH DAMAGE.
22
+ SUCH DAMAGE.
data/ChangeLog CHANGED
@@ -1,61 +1,26 @@
1
- 2016-08-18 Lars Kanis <lars@greiz-reinsdorf.de>
2
-
3
- * Rakefile:
4
- Don't update ext/errorcodes.def with every run of rake gem.
1
+ 2016-08-14 Lars Kanis <lars@greiz-reinsdorf.de>
5
2
 
6
- This fixes the previous commit.
7
- [43a48561adde] [tip]
3
+ * Merge git master
4
+ [9b7987626074] [tip]
8
5
 
9
- 2016-08-17 Lars Kanis <lars@greiz-reinsdorf.de>
6
+ 2016-08-13 Lars Kanis <lars@greiz-reinsdorf.de>
10
7
 
11
- * .hgignore, History.rdoc, Rakefile, ext/errorcodes.def:
12
- Add errorcodes.def to git in order to allow build from git per
13
- bundler.
14
- [29ca3eed927d]
8
+ * Rakefile.cross:
9
+ Update OpenSSL and PostgreSQL for binary Windows gems.
10
+ [edbd5b8dbb85]
15
11
 
16
12
  * History.rdoc:
17
- Update History.rdoc once more.
18
- [6874ea8622a1]
19
-
20
- * README.rdoc:
21
- Update README regarding to Ruby and PostgreSQL versions.
22
- [73930bce99d9]
23
-
24
- * spec/pg/basic_type_mapping_spec.rb:
25
- Run JSON test on PostgreSQL-9.4+, only.
26
-
27
- Earlier versions miss the JSONB type.
28
- [6b23964f70c3]
29
-
30
- * appveyor.yml:
31
- Update Appveyor to use Ruby 2.3 and remove 2.0 and 2.1.
32
- [8ff3d0b07cda]
33
-
34
- * .travis.yml:
35
- Remove ruby versions before 2.2, because hoe-deveiate isn't
36
- compatible with these versions.
37
- [73279f9db276]
38
-
39
- * lib/pg/basic_type_mapping.rb, lib/pg/text_decoder.rb,
40
- lib/pg/text_encoder.rb, spec/pg/basic_type_mapping_spec.rb:
41
- Add JSON coders and add them to BasicTypeMapForResults and
42
- BasicTypeMapBasedOnResult
43
-
44
- Fixes bitbucket issue #212 .
45
- [b76471234f7a]
46
-
47
- 2016-08-14 Lars Kanis <lars@greiz-reinsdorf.de>
13
+ Update History.rdoc
14
+ [aca7b024ba0c]
48
15
 
49
- * lib/pg/basic_type_mapping.rb:
50
- Improve documentation to PG::BasicTypeMapForQueries
51
- [e7181c452c64]
16
+ * ext/gvl_wrappers.h, ext/pg_connection.c:
17
+ Release GVL while calling PQsetClientEncoding()
52
18
 
53
- * History.rdoc:
54
- Update History.rdoc
55
- [9c3699255853]
19
+ PQsetClientEncoding() is also called within PG::Connection.new which
20
+ could block due to network delay.
56
21
 
57
- * Merge git master
58
- [9b7987626074]
22
+ This fixes bitbucket issue #245 .
23
+ [41f81b72476f]
59
24
 
60
25
  2016-06-27 Michael Granger <ged@FaerieMUD.org>
61
26
 
@@ -75,25 +40,6 @@
75
40
  Add mechanism for trying to build without pg_config
76
41
  [22a3a8ef3244]
77
42
 
78
- 2016-08-13 Lars Kanis <lars@greiz-reinsdorf.de>
79
-
80
- * Rakefile.cross:
81
- Update OpenSSL and PostgreSQL for binary Windows gems.
82
- [edbd5b8dbb85]
83
-
84
- * History.rdoc:
85
- Update History.rdoc
86
- [aca7b024ba0c]
87
-
88
- * ext/gvl_wrappers.h, ext/pg_connection.c:
89
- Release GVL while calling PQsetClientEncoding()
90
-
91
- PQsetClientEncoding() is also called within PG::Connection.new which
92
- could block due to network delay.
93
-
94
- This fixes bitbucket issue #245 .
95
- [41f81b72476f]
96
-
97
43
  2015-12-25 Lars Kanis <lars@greiz-reinsdorf.de>
98
44
 
99
45
  * ext/pg.h, ext/pg_binary_encoder.c, ext/pg_coder.c,
@@ -352,6 +298,12 @@
352
298
  Merge branch 'master@1' of ../ruby-pg.git.bare
353
299
  [b324f3f65a0c]
354
300
 
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
+
355
307
  2015-11-13 Michael Granger <ged@FaerieMUD.org>
356
308
 
357
309
  * .hgtags:
@@ -390,14 +342,6 @@
390
342
  Only use fivefish formatter when building from repo
391
343
  [6161d8eeb3f1]
392
344
 
393
- 2015-12-26 Lars Kanis <lars@greiz-reinsdorf.de>
394
-
395
- * README.rdoc, ext/pg_copy_coder.c, lib/pg/basic_type_mapping.rb,
396
- lib/pg/connection.rb:
397
- Add a lot more of documentation, how COPY can be used with type
398
- coders and type maps.
399
- [256c059e4802]
400
-
401
345
  2015-11-13 Lars Kanis <lars@greiz-reinsdorf.de>
402
346
 
403
347
  * History.rdoc:
@@ -536,20 +480,6 @@
536
480
  * Merge branch 'master' of github.com:larskanis/ruby-pg
537
481
  [d27d6d5a6545]
538
482
 
539
- 2015-06-29 Lars Kanis <kanis@comcard.de>
540
-
541
- * History.rdoc:
542
- Merge branch 'master' of https://github.com/larskanis/ruby-pg
543
-
544
- Conflicts: History.rdoc
545
- [affb47533d82]
546
-
547
- * History.rdoc, ext/util.c, spec/pg/type_spec.rb:
548
- Fix data type resulting in wrong base64 encoding.
549
- [5fb9170f6a7d]
550
-
551
- 2015-08-20 Lars Kanis <lars@greiz-reinsdorf.de>
552
-
553
483
  * README.rdoc:
554
484
  Add Appveyor status badge to the README.
555
485
  [c9637c6efcfb]
@@ -580,6 +510,18 @@
580
510
  Add CI-tests on appveyor.
581
511
  [c2dc9e491853]
582
512
 
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
+
583
525
  2015-06-17 Lars Kanis <lars@greiz-reinsdorf.de>
584
526
 
585
527
  * Gemfile, Rakefile, Rakefile.cross:
@@ -657,18 +599,6 @@
657
599
  * Merged
658
600
  [3d56a65c78c5]
659
601
 
660
- 2015-05-25 Michael Granger <ged@FaerieMUD.org>
661
-
662
- * ext/pg_connection.c:
663
- Change instance_of checks to kind_of for subclassing [#220]
664
- [eb4d3c003bd6]
665
-
666
- * lib/pg/basic_type_mapping.rb:
667
- Whitespace fixes
668
- [4a4368e30bcf]
669
-
670
- 2015-06-08 Lars Kanis <lars@greiz-reinsdorf.de>
671
-
672
602
  * Gemfile, Rakefile, Rakefile.cross:
673
603
  Add rake task 'gem:windows' which makes use of the new rake-
674
604
  compiler-dock.
@@ -681,6 +611,16 @@
681
611
  PostgreSQL-9.4.0
682
612
  [630a22437026]
683
613
 
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
+
684
624
  2015-05-14 Michael Granger <ged@FaerieMUD.org>
685
625
 
686
626
  * .hgtags:
@@ -778,26 +718,6 @@
778
718
  Merge from git branch.
779
719
  [b60c89ee93c8]
780
720
 
781
- 2015-02-03 Michael Granger <ged@FaerieMUD.org>
782
-
783
- * README.rdoc, ext/pg.c:
784
- Update copyright notices
785
- [447962e0dcba]
786
-
787
- * spec/pg/connection_spec.rb:
788
- Whitespace fixes
789
- [f4a85f78807d]
790
-
791
- 2014-08-22 Chris Bandy <bandy.chris@gmail.com>
792
-
793
- * lib/pg/connection.rb, spec/pg/connection_spec.rb:
794
- Allow URI connection string
795
-
796
- (Imported from https://github.com/ged/ruby-pg/pull/3)
797
- [d4579ef9eae4]
798
-
799
- 2015-02-11 Lars Kanis <lars@greiz-reinsdorf.de>
800
-
801
721
  * ext/pg.h, ext/pg_text_decoder.c:
802
722
  Merge branch 'non-c99-compiler'
803
723
  [b111c84b8445]
@@ -840,6 +760,24 @@
840
760
  implementation.
841
761
  [df67241d1a4f]
842
762
 
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
+
843
781
  2015-01-27 Lars Kanis <lars@greiz-reinsdorf.de>
844
782
 
845
783
  * lib/pg/text_decoder.rb, spec/pg/type_spec.rb:
@@ -927,13 +865,6 @@
927
865
  Add a Rake task for generating the gemspec
928
866
  [ec6d6ce61a15]
929
867
 
930
- 2014-12-31 Lars Kanis <lars@greiz-reinsdorf.de>
931
-
932
- * Rakefile.cross, lib/pg.rb, misc/postgresql-9.4.0.with-buggy-
933
- mingw-w64.patch:
934
- Add workaround for buggy mingw-w64 toolchain on Ubuntu-14.10
935
- [f5c7f9158ee2]
936
-
937
868
  2014-12-26 Lars Kanis <lars@greiz-reinsdorf.de>
938
869
 
939
870
  * lib/pg/basic_type_mapping.rb:
@@ -1272,16 +1203,6 @@
1272
1203
  Add type mapping and performance improvements
1273
1204
  [0da90c2b2812]
1274
1205
 
1275
- * spec/helpers.rb, spec/pg/connection_spec.rb:
1276
- Merged with 4cc778c5ead7
1277
- [67bb0f34ca05]
1278
-
1279
- 2014-08-20 Michael Granger <ged@FaerieMUD.org>
1280
-
1281
- * spec/helpers.rb, spec/pg/connection_spec.rb:
1282
- Check connection status with a matcher in specs
1283
- [b32840b98e4b]
1284
-
1285
1206
  2014-10-09 Lars Kanis <lars@greiz-reinsdorf.de>
1286
1207
 
1287
1208
  * Rakefile, Rakefile.cross, ext/extconf.rb:
@@ -1374,35 +1295,6 @@
1374
1295
  alloc_query_params1() and avoids code duplication within type maps.
1375
1296
  [2afa6cc41d55]
1376
1297
 
1377
- 2014-10-09 Lars Kanis <lars@greiz-reinsdorf.de>
1378
-
1379
- * Rakefile, Rakefile.cross, ext/extconf.rb:
1380
- gcc option -static-libgcc is required for i386-mingw32 build.
1381
-
1382
- Don't use native pg_config for cross build. The paths were
1383
- overwritten anyways until now.
1384
-
1385
- Remove code that was only needed for static build to libpq.
1386
- [4cc778c5ead7]
1387
-
1388
- 2014-10-09 Lars Kanis <kanis@comcard.de>
1389
-
1390
- * Rakefile, Rakefile.cross, lib/pg.rb:
1391
- Bundle libpq.dll into gem, because PostgreSQL-9.3 does no longer
1392
- support static linking.
1393
- [a37e27d356e5]
1394
-
1395
- 2014-10-04 Lars Kanis <lars@greiz-reinsdorf.de>
1396
-
1397
- * spec/helpers.rb, spec/pg/connection_spec.rb:
1398
- Add missing spec for hash form parameters to #exec_params .
1399
- [04a6a0136a12]
1400
-
1401
- * spec/pg/type_map_by_column_spec.rb:
1402
- Fix handling of query parameters in hash form in conjunction with
1403
- type map.
1404
- [a5f028117537]
1405
-
1406
1298
  * spec/pg/connection_spec.rb:
1407
1299
  Add missing spec for hash form parameters to #exec_params .
1408
1300
  [23ad5d676b53]
@@ -2709,6 +2601,36 @@
2709
2601
  integer and float values to proper ruby types.
2710
2602
  [71ddc0446d26]
2711
2603
 
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
+
2712
2634
  2014-08-24 Lars Kanis <lars@greiz-reinsdorf.de>
2713
2635
 
2714
2636
  * ext/pg_connection.c:
@@ -2760,6 +2682,10 @@
2760
2682
 
2761
2683
  2014-08-20 Michael Granger <ged@FaerieMUD.org>
2762
2684
 
2685
+ * spec/helpers.rb, spec/pg/connection_spec.rb:
2686
+ Check connection status with a matcher in specs
2687
+ [b32840b98e4b]
2688
+
2763
2689
  * ext/pg_connection.c, lib/pg/connection.rb,
2764
2690
  spec/pg/connection_spec.rb:
2765
2691
  Implement PG::Connection#conninfo and use it to test #188
@@ -2784,17 +2710,19 @@
2784
2710
  * Merge with 6c2444dc63e1
2785
2711
  [d7160a9fb5dc]
2786
2712
 
2787
- * .rvm.gems, Rakefile, spec/helpers.rb, spec/lib/helpers.rb,
2788
- spec/pg/connection_spec.rb, spec/pg/result_spec.rb, spec/pg_spec.rb:
2789
- Convert specs to expect syntax for RSpec 3
2790
- [c9108c846ab2]
2791
-
2792
2713
  2013-12-30 Lars Kanis <lars@greiz-reinsdorf.de>
2793
2714
 
2794
2715
  * ext/pg_connection.c:
2795
2716
  Fix typo in documentation.
2796
2717
  [6c2444dc63e1]
2797
2718
 
2719
+ 2014-06-05 Michael Granger <ged@FaerieMUD.org>
2720
+
2721
+ * .rvm.gems, Rakefile, spec/helpers.rb, spec/lib/helpers.rb,
2722
+ spec/pg/connection_spec.rb, spec/pg/result_spec.rb, spec/pg_spec.rb:
2723
+ Convert specs to expect syntax for RSpec 3
2724
+ [c9108c846ab2]
2725
+
2798
2726
  2013-12-18 Michael Granger <ged@FaerieMUD.org>
2799
2727
 
2800
2728
  * .hgtags:
@@ -2949,17 +2877,6 @@
2949
2877
  * merge tip
2950
2878
  [90252df3c5c8]
2951
2879
 
2952
- 2013-08-15 Lars Kanis <lars@greiz-reinsdorf.de>
2953
-
2954
- * Rakefile.cross:
2955
- Use RbConfig::CONFIG['CC'] instead of ['host'] for determining cross
2956
- compilation platform.
2957
-
2958
- This is 'i586-mingw32msvc-gcc' versus 'i586-pc-mingw32msvc'.
2959
- [fbee9586e8f7]
2960
-
2961
- 2013-08-18 Lars Kanis <lars@greiz-reinsdorf.de>
2962
-
2963
2880
  * lib/pg/connection.rb, spec/pg/connection_spec.rb:
2964
2881
  Add PG::Connection#copy_data as a convenience method.
2965
2882
  [5096385267ab]
@@ -2969,6 +2886,15 @@
2969
2886
  stack method calls.
2970
2887
  [8255d4f73334]
2971
2888
 
2889
+ 2013-08-15 Lars Kanis <lars@greiz-reinsdorf.de>
2890
+
2891
+ * Rakefile.cross:
2892
+ Use RbConfig::CONFIG['CC'] instead of ['host'] for determining cross
2893
+ compilation platform.
2894
+
2895
+ This is 'i586-mingw32msvc-gcc' versus 'i586-pc-mingw32msvc'.
2896
+ [fbee9586e8f7]
2897
+
2972
2898
  2013-08-14 Lars Kanis <lars@greiz-reinsdorf.de>
2973
2899
 
2974
2900
  * Gemfile, Rakefile:
@@ -3010,10 +2936,6 @@
3010
2936
  Travis: Allow failures on rbx.
3011
2937
  [7be3b156c8fb]
3012
2938
 
3013
- * spec/pg/column_mapping_spec.rb:
3014
- Too less quoting. Should fix compat with PostgreSQL 8.4.
3015
- [45fc78971757]
3016
-
3017
2939
  2013-07-18 Lars Kanis <kanis@comcard.de>
3018
2940
 
3019
2941
  * spec/pg/connection_spec.rb:
@@ -3049,92 +2971,6 @@
3049
2971
  This test failed on Windows x64.
3050
2972
  [6894f73d7039]
3051
2973
 
3052
- * Manifest.txt:
3053
- Add missing files to Manifest.txt.
3054
- [3b4bc9524bb3]
3055
-
3056
- * Manifest.txt, ext/pg_column_mapping.c, ext/util.c, ext/util.h:
3057
- Add compat with Windows platform.
3058
- [3ac02d0ccf19]
3059
-
3060
- * ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
3061
- Add compat with Ruby-1.8.7.
3062
- [7bcb3040fe34]
3063
-
3064
- * spec/pg/column_mapping_spec.rb:
3065
- Use old BYTEA escaping for compat with PostgreSQL 8.4
3066
- [2fad9e274ad3]
3067
-
3068
- 2013-07-04 Lars Kanis <lars@greiz-reinsdorf.de>
3069
-
3070
- * ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
3071
- Add BinaryBolean converter.
3072
-
3073
- Refactor converter tests.
3074
- [06c99b04f572]
3075
-
3076
- * ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
3077
- Add BinaryFloat converter.
3078
- [493b0354c678]
3079
-
3080
- 2013-07-03 Lars Kanis <lars@greiz-reinsdorf.de>
3081
-
3082
- * ext/pg_column_mapping.c, lib/pg/result.rb,
3083
- spec/pg/column_mapping_spec.rb, spec/pg/result_spec.rb:
3084
- Change ColumnMapping#initialize to take one Array arg rather than a
3085
- parameter list.
3086
-
3087
- Suggested by Aaron: https://groups.google.com/d/msg/ruby-
3088
- pg/PE5K6q9RzBs/M5prOno39DEJ
3089
- [c2ca10bf93c5]
3090
-
3091
- * spec/pg/result_spec.rb:
3092
- Add test case for all value retrieving methods of PG::Result .
3093
- [e1055f877c58]
3094
-
3095
- * spec/pg/column_mapping_spec.rb:
3096
- Add test case for default_mapping in Result#map_types!
3097
- [489220119795]
3098
-
3099
- * lib/pg/result.rb, spec/pg/column_mapping_spec.rb:
3100
- Add convenience method PG::Result#map_types!
3101
- [de02df7fb198]
3102
-
3103
- * spec/pg/column_mapping_spec.rb:
3104
- Add Boolean ColumnMapping spec and do Integer a bit more compact.
3105
- [4256841e088f]
3106
-
3107
- 2013-07-01 Lars Kanis <kanis@comcard.de>
3108
-
3109
- * ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
3110
- Add converter BinaryInteger.
3111
- [6f0c8f72962f]
3112
-
3113
- * ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb,
3114
- spec/pg/result_spec.rb:
3115
- Use instances of PG::ColumnMapping::CConverter as representation of
3116
- the buildin converters instead of plain symbols. Symbol arguments
3117
- are converted to these instances, for convenience.
3118
-
3119
- This allows to store and retrieve additional informations to the
3120
- conversion and also which conversions are supported.
3121
- [e4f6c37b5449]
3122
-
3123
- * ext/pg_column_mapping.c:
3124
- Don't depend on TYPE(obj)==T_DATA of a proc object for compat with
3125
- rubinius.
3126
- [c33c4ac01aaf]
3127
-
3128
- 2013-06-29 Lars Kanis <lars@greiz-reinsdorf.de>
3129
-
3130
- * ext/pg.c, ext/pg.h, ext/pg_column_mapping.c, ext/pg_result.c,
3131
- spec/pg/result_spec.rb:
3132
- Add column based type mapping.
3133
-
3134
- This allowes to speed up result retrieval by directly converting
3135
- integer and float values to proper ruby types.
3136
- [160c71c0b584]
3137
-
3138
2974
  2013-07-06 Lars Kanis <lars@greiz-reinsdorf.de>
3139
2975
 
3140
2976
  * ext/pg_connection.c, spec/pg/connection_spec.rb:
@@ -3420,14 +3256,14 @@
3420
3256
  avoid warnings about truncated identifier.
3421
3257
 
3422
3258
  Thanks to Svoop for this report.
3423
- [9a6791fe9409]
3259
+ [134e067259ee] <v0.15-stable>
3424
3260
 
3425
3261
  * lib/pg/connection.rb, spec/pg/connection_spec.rb:
3426
3262
  Send a shortened $0 as application_name to the server in order to
3427
3263
  avoid warnings about truncated identifier.
3428
3264
 
3429
3265
  Thanks to Svoop for this report.
3430
- [134e067259ee] <v0.15-stable>
3266
+ [9a6791fe9409]
3431
3267
 
3432
3268
  2013-03-26 Michael Granger <ged@FaerieMUD.org>
3433
3269
 
@@ -3515,6 +3351,17 @@
3515
3351
  Merge with https://bitbucket.org/ged/ruby-pg
3516
3352
  [3230e6c245e0]
3517
3353
 
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
+
3518
3365
  2013-03-12 Michael Granger <ged@FaerieMUD.org>
3519
3366
 
3520
3367
  * Rakefile.cross:
@@ -3529,19 +3376,6 @@
3529
3376
  Bump versions of dev dependencies
3530
3377
  [cba92fb4b89e]
3531
3378
 
3532
- 2013-03-13 Lars Kanis <kanis@comcard.de>
3533
-
3534
- * Rakefile, Rakefile.cross:
3535
- Add support for cross build for multiple platforms (i386-mingw32 and
3536
- x64-mingw32).
3537
-
3538
- Update OpenSSL for cross build to 1.0.1e Update PostgreSQL for cross
3539
- build to 9.2.3
3540
-
3541
- Remove -lws2_32 for PostgreSQL build. It fails to compile for
3542
- x64-mingw32 elsewise.
3543
- [6a2a1a53dedc]
3544
-
3545
3379
  2013-03-06 Michael Granger <ged@FaerieMUD.org>
3546
3380
 
3547
3381
  * README.rdoc:
@@ -3793,6 +3627,61 @@
3793
3627
  Make source settings override TM2 defaults
3794
3628
  [c5706b3f73af]
3795
3629
 
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
+
3796
3685
  2013-01-29 Aaron Patterson <aaron.patterson@gmail.com>
3797
3686
 
3798
3687
  * ext/pg_result.c, lib/pg/result.rb, spec/pg/result_spec.rb:
@@ -3821,22 +3710,8 @@
3821
3710
  Fix encoding of messages delivered by notice callbacks
3822
3711
  [048d07d14867]
3823
3712
 
3824
- 2012-12-29 Lars Kanis <kanis@comcard.de>
3825
-
3826
- * ext/gvl_wrappers.h:
3827
- Simplify function declaration for gvl_wrappers a bit more
3828
- [39ba7e52207e] <use_gvl_for_blocking_functions>
3829
-
3830
3713
  2012-12-26 Lars Kanis <kanis@comcard.de>
3831
3714
 
3832
- * ext/extconf.rb, ext/pg_connection.c, spec/pg/connection_spec.rb:
3833
- merge in default branch
3834
- [ca39e311d1eb] <use_gvl_for_blocking_functions>
3835
-
3836
- * ext/gvl_wrappers.h:
3837
- Add some documentation to gvl_wrappers
3838
- [ffeb6a0afd1f] <use_gvl_for_blocking_functions>
3839
-
3840
3715
  * ext/pg.c:
3841
3716
  Use proper const check instead of implicit relation
3842
3717
  [d0c5d5f7f1e8]
@@ -3856,23 +3731,12 @@
3856
3731
  single row mode of PostgreSQL 9.2)
3857
3732
  [49e3fe1dafdf]
3858
3733
 
3859
- 2012-12-26 Lars Kanis <kanis@comcard.de>
3860
-
3861
- * spec/pg/connection_spec.rb:
3862
- Add test case for threading with Connection#exec in ruby 1.9
3863
- [73b9aa38e8c0] <use_gvl_for_blocking_functions>
3864
-
3865
- * ext/extconf.rb, ext/gvl_wrappers.c, ext/gvl_wrappers.h, ext/pg.h,
3866
- ext/pg_connection.c:
3867
- Add wrappers to blocking functions and callbacks in order to release
3868
- the GVL of ruby 1.9 as long as not in ruby code
3869
- [2f2c681424ed] <use_gvl_for_blocking_functions>
3734
+ 2012-12-19 Lars Kanis <kanis@comcard.de>
3870
3735
 
3871
- * ext/extconf.rb, ext/gvl_wrappers.c, ext/gvl_wrappers.h, ext/pg.h,
3872
- ext/pg_connection.c:
3873
- Add wrappers to blocking functions and callbacks in order to release
3874
- the GVL of ruby 1.9 as long as not in ruby code
3875
- [6ad8aa8e10a5] <use_gvl_for_blocking_functions>
3736
+ * ext/extconf.rb, ext/pg.c, ext/pg_connection.c,
3737
+ spec/pg/connection_spec.rb:
3738
+ Add single row mode of PostgreSQL 9.2
3739
+ [5cf348b75c1c] <single_row_mode>
3876
3740
 
3877
3741
  2012-12-19 Michael Granger <ged@FaerieMUD.org>
3878
3742
 
@@ -3896,14 +3760,6 @@
3896
3760
  fix spacing on README.rdoc:21 to improve display on Github
3897
3761
  [807f040166da]
3898
3762
 
3899
- 2012-12-26 Lars Kanis <kanis@comcard.de>
3900
-
3901
- * ext/extconf.rb, ext/gvl_wrappers.c, ext/gvl_wrappers.h, ext/pg.h,
3902
- ext/pg_connection.c:
3903
- Add wrappers to blocking functions and callbacks in order to release
3904
- the GVL of ruby 1.9 while not in ruby code
3905
- [c31ea26b15e9] <use_gvl_for_blocking_functions>
3906
-
3907
3763
  2012-12-19 Lars Kanis <kanis@comcard.de>
3908
3764
 
3909
3765
  * spec/pg/connection_spec.rb:
@@ -3920,11 +3776,6 @@
3920
3776
  Add spec for PG::Result#field_values
3921
3777
  [3618eb238aba]
3922
3778
 
3923
- * ext/extconf.rb, ext/pg.c, ext/pg_connection.c,
3924
- spec/pg/connection_spec.rb:
3925
- Add single row mode of PostgreSQL 9.2
3926
- [5cf348b75c1c] <single_row_mode>
3927
-
3928
3779
  * lib/pg/connection.rb, spec/lib/helpers.rb:
3929
3780
  Restore compatibility with PostgreSQL down to 8.3
3930
3781
  [e4900f62e56d]
@@ -4046,15 +3897,6 @@
4046
3897
  Add PGRES_COPY_BOTH to documentation of PG::Result#result_status
4047
3898
  [5e0e06440b1a]
4048
3899
 
4049
- * ext/pg_connection.c, spec/pg/connection_spec.rb:
4050
- Fix encoding of values delivered to the row processor and add specs
4051
- for binary and text data.
4052
- [bb9c6625fbc9] <row_processor>
4053
-
4054
- * ext/pg_connection.c:
4055
- Polish the documentation a little bit
4056
- [b7633be3c941] <row_processor>
4057
-
4058
3900
  2012-06-23 Michael Granger <ged@FaerieMUD.org>
4059
3901
 
4060
3902
  * .hgtags:
@@ -4065,33 +3907,6 @@
4065
3907
  Added signature for changeset a45710f8db30
4066
3908
  [634e0a42a101] [v0.14.0]
4067
3909
 
4068
- 2012-07-01 Lars Kanis <kanis@comcard.de>
4069
-
4070
- * merge copy_both_docu
4071
- [6e8ef5d4d216]
4072
-
4073
- * ext/pg_connection.c:
4074
- Get rid of gcc warning about (non-)const PGresult to
4075
- pg_new_result_for_callback()
4076
- [1a25786ed8f3] <row_processor>
4077
-
4078
- * ext/pg_connection.c, spec/pg/connection_spec.rb:
4079
- Fix wrong encoding for Result object passed to a notice-receiver
4080
- block. Add proper specs for #set_notice_receiver.
4081
- [4280826bb9b9] <row_processor>
4082
-
4083
- * ext/extconf.rb, ext/pg.h, ext/pg_connection.c, ext/pg_result.c,
4084
- spec/lib/helpers.rb, spec/pg/connection_spec.rb:
4085
- Implement PostgreSQL-9.2 functions PG::Connection#set_row_processor,
4086
- get_row_processor, skip_result
4087
- [b7ce4843f4d1] <row_processor>
4088
-
4089
- 2012-06-28 Lars Kanis <kanis@comcard.de>
4090
-
4091
- * ext/pg_result.c:
4092
- Add PGRES_COPY_BOTH to documentation of PG::Result#result_status
4093
- [63998b47da6e] <copy_both_docu>
4094
-
4095
3910
  2012-06-17 Lars Kanis <kanis@comcard.de>
4096
3911
 
4097
3912
  * Rakefile.cross, ext/extconf.rb,
@@ -19,6 +19,8 @@ Enhancements:
19
19
  Bugfixes:
20
20
  - Release GVL while calling PQsetClientEncoding(). #245
21
21
  - Add __EXTENSIONS__ to Solaris/SmartOS for Ruby >= 2.3.x. #236
22
+ - Fix wrong exception when running SQL while in Connection#copy_data
23
+ block for output
22
24
 
23
25
 
24
26
  == v0.18.4 [2015-11-13] Michael Granger <ged@FaerieMUD.org>
@@ -66,6 +66,10 @@ There's also {a Google+ group}[http://goo.gl/TFy1U] and a
66
66
  {mailing list}[http://groups.google.com/group/ruby-pg] if you get stuck, or just
67
67
  want to chat about something.
68
68
 
69
+ If you want to install as a signed gem, the public certs of the gem signers
70
+ can be found in {the `certs` directory}[https://bitbucket.org/ged/ruby-pg/src/tip/certs/]
71
+ of the repository.
72
+
69
73
 
70
74
  == Type Casts
71
75
 
@@ -133,7 +137,7 @@ Lars Kanis <lars@greiz-reinsdorf.de>.
133
137
 
134
138
  == Copying
135
139
 
136
- Copyright (c) 1997-2015 by the authors.
140
+ Copyright (c) 1997-2016 by the authors.
137
141
 
138
142
  * Jeff Davis <ruby-pg@j-davis.com>
139
143
  * Guy Decoux (ts) <decoux@moulon.inra.fr>
@@ -145,7 +149,7 @@ Copyright (c) 1997-2015 by the authors.
145
149
  * Noboru Saitou <noborus@netlab.jp>
146
150
 
147
151
  You may redistribute this software under the same terms as Ruby itself; see
148
- http://www.ruby-lang.org/en/LICENSE.txt or the LICENSE file in the source
152
+ https://www.ruby-lang.org/en/about/license.txt or the BSDL file in the source
149
153
  for details.
150
154
 
151
155
  Portions of the code are from the PostgreSQL project, and are distributed
data/ext/pg.c CHANGED
@@ -1,12 +1,13 @@
1
1
  /*
2
2
  * pg.c - Toplevel extension
3
- * $Id$
3
+ * $Id: pg.c,v c77d0997b4e4 2016/08/20 17:30:03 ged $
4
4
  *
5
5
  * Author/s:
6
6
  *
7
7
  * - Jeff Davis <ruby-pg@j-davis.com>
8
8
  * - Guy Decoux (ts) <decoux@moulon.inra.fr>
9
9
  * - Michael Granger <ged@FaerieMUD.org>
10
+ * - Lars Kanis <lars@greiz-reinsdorf.de>
10
11
  * - Dave Lee
11
12
  * - Eiji Matsumoto <usagi@ruby.club.or.jp>
12
13
  * - Yukihiro Matsumoto <matz@ruby-lang.org>
@@ -15,10 +16,10 @@
15
16
  * See Contributors.rdoc for the many additional fine people that have contributed
16
17
  * to this library over the years.
17
18
  *
18
- * Copyright (c) 1997-2015 by the authors.
19
+ * Copyright (c) 1997-2016 by the authors.
19
20
  *
20
21
  * You may redistribute this software under the same terms as Ruby itself; see
21
- * http://www.ruby-lang.org/en/LICENSE.txt or the LICENSE file in the source
22
+ * https://www.ruby-lang.org/en/about/license.txt or the BSDL file in the source
22
23
  * for details.
23
24
  *
24
25
  * Portions of the code are from the PostgreSQL project, and are distributed
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_column_map.c - PG::ColumnMap class extension
3
- * $Id$
3
+ * $Id: pg_binary_decoder.c,v fcf731d3dff7 2015/09/08 12:25:06 jfali $
4
4
  *
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_column_map.c - PG::ColumnMap class extension
3
- * $Id$
3
+ * $Id: pg_binary_encoder.c,v e61a06f1f5ed 2015/12/25 21:14:21 lars $
4
4
  *
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_connection.c - PG::Connection class extension
3
- * $Id$
3
+ * $Id: pg_connection.c,v 41f81b72476f 2016/08/13 19:24:45 lars $
4
4
  *
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_result.c - PG::Result class extension
3
- * $Id$
3
+ * $Id: pg_result.c,v 982082c0d77b 2016/01/31 19:28:55 ged $
4
4
  *
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_text_decoder.c - PG::TextDecoder module
3
- * $Id$
3
+ * $Id: pg_text_decoder.c,v fcf731d3dff7 2015/09/08 12:25:06 jfali $
4
4
  *
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_text_encoder.c - PG::TextEncoder module
3
- * $Id$
3
+ * $Id: pg_text_encoder.c,v e61a06f1f5ed 2015/12/25 21:14:21 lars $
4
4
  *
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_column_map.c - PG::ColumnMap class extension
3
- * $Id$
3
+ * $Id: pg_type_map.c,v fcf731d3dff7 2015/09/08 12:25:06 jfali $
4
4
  *
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_type_map_all_strings.c - PG::TypeMapAllStrings class extension
3
- * $Id$
3
+ * $Id: pg_type_map_all_strings.c,v c53f993a4254 2014/12/12 21:57:29 lars $
4
4
  *
5
5
  * This is the default typemap.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_type_map_by_class.c - PG::TypeMapByClass class extension
3
- * $Id$
3
+ * $Id: pg_type_map_by_class.c,v eeb8a82c5328 2014/11/10 19:34:02 lars $
4
4
  *
5
5
  * This type map can be used to select value encoders based on the class
6
6
  * of the given value to be send.
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_column_map.c - PG::ColumnMap class extension
3
- * $Id$
3
+ * $Id: pg_type_map_by_column.c,v fcf731d3dff7 2015/09/08 12:25:06 jfali $
4
4
  *
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_type_map_by_mri_type.c - PG::TypeMapByMriType class extension
3
- * $Id$
3
+ * $Id: pg_type_map_by_mri_type.c,v 1269b8ad77b8 2015/02/06 16:38:23 lars $
4
4
  *
5
5
  * This type map can be used to select value encoders based on the MRI-internal
6
6
  * value type code.
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_type_map_by_oid.c - PG::TypeMapByOid class extension
3
- * $Id$
3
+ * $Id: pg_type_map_by_oid.c,v c99d26015e3c 2014/12/12 20:58:25 lars $
4
4
  *
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_type_map_in_ruby.c - PG::TypeMapInRuby class extension
3
- * $Id$
3
+ * $Id: pg_type_map_in_ruby.c,v 3d89d3aae4fd 2015/01/05 16:19:41 kanis $
4
4
  *
5
5
  */
6
6
 
data/ext/util.c CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * util.c - Utils for ruby-pg
3
- * $Id$
3
+ * $Id: util.c,v 5fb9170f6a7d 2015/06/29 11:15:12 kanis $
4
4
  *
5
5
  */
6
6
 
Binary file
Binary file
Binary file
Binary file
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.pre20160817083826'
27
+ VERSION = '0.19.0.pre20160820113039'
28
28
 
29
29
  # VCS revision
30
- REVISION = %q$Revision$
30
+ REVISION = %q$Revision: b3a270f74fdd $
31
31
 
32
32
  class NotAllCopyDataRetrieved < PG::Error
33
33
  end
@@ -186,7 +186,7 @@ class PG::Connection
186
186
  raise
187
187
  else
188
188
  res = get_last_result
189
- if res.result_status != PGRES_COMMAND_OK
189
+ if !res || res.result_status != PGRES_COMMAND_OK
190
190
  while get_copy_data
191
191
  end
192
192
  while get_result
@@ -24,7 +24,7 @@ rescue LoadError # 1.8 support
24
24
  raise
25
25
  end
26
26
 
27
- SCRIPT_VERSION = %q$Id$
27
+ SCRIPT_VERSION = %q$Id: disk_usage_report.rb,v 76ebae01c937 2013/03/26 17:50:02 ged $
28
28
 
29
29
 
30
30
  ### Gather data and output it to $stdout.
@@ -32,7 +32,7 @@ end
32
32
  ### Optionally run in a continuous loop, displaying deltas.
33
33
  ###
34
34
  class Stats
35
- VERSION = %q$Id$
35
+ VERSION = %q$Id: pg_statistics.rb,v 36ca5b412583 2012/04/17 23:32:25 mahlon $
36
36
 
37
37
  def initialize( opts )
38
38
  @opts = opts
@@ -36,7 +36,7 @@ end
36
36
  ###
37
37
  class PGMonitor
38
38
 
39
- VERSION = %q$Id$
39
+ VERSION = %q$Id: replication_monitor.rb,v 36ca5b412583 2012/04/17 23:32:25 mahlon $
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
@@ -643,6 +643,31 @@ describe PG::Connection do
643
643
  expect( @conn ).to still_be_usable
644
644
  end
645
645
 
646
+ it "gracefully handle SQL statements while in #copy_data for input" do
647
+ @conn.exec "ROLLBACK"
648
+ @conn.transaction do
649
+ @conn.exec( "CREATE TEMP TABLE copytable (col1 INT)" )
650
+ expect {
651
+ @conn.copy_data( "COPY copytable FROM STDOUT" ) do |res|
652
+ @conn.exec "SELECT 1"
653
+ end
654
+ }.to raise_error(PG::Error, /no COPY in progress/)
655
+ end
656
+ expect( @conn ).to still_be_usable
657
+ end
658
+
659
+ it "gracefully handle SQL statements while in #copy_data for output" do
660
+ @conn.exec "ROLLBACK"
661
+ @conn.transaction do
662
+ expect {
663
+ @conn.copy_data( "COPY (VALUES(1), (2)) TO STDOUT" ) do |res|
664
+ @conn.exec "SELECT 3"
665
+ end
666
+ }.to raise_error(PG::Error, /no COPY in progress/)
667
+ end
668
+ expect( @conn ).to still_be_usable
669
+ end
670
+
646
671
  it "should raise an error for non copy statements in #copy_data" do
647
672
  expect {
648
673
  @conn.copy_data( "SELECT 1" ){}
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.pre20160817083826
4
+ version: 0.19.0.pre20160820113039
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Michael Granger
@@ -11,26 +11,32 @@ bindir: bin
11
11
  cert_chain:
12
12
  - |
13
13
  -----BEGIN CERTIFICATE-----
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==
14
+ MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA+MQwwCgYDVQQDDANnZWQx
15
+ GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
16
+ HhcNMTYwODIwMTgxNzQyWhcNMTcwODIwMTgxNzQyWjA+MQwwCgYDVQQDDANnZWQx
17
+ GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
18
+ ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC/JWGRHO+USzR97vXjkFgt
19
+ 83qeNf2KHkcvrRTSnR64i6um/ziin0I0oX23H7VYrDJC9A/uoUa5nGRJS5Zw/+wW
20
+ ENcvWVZS4iUzi4dsYJGY6yEOsXh2CcF46+QevV8iE+UmbkU75V7Dy1JCaUOyizEt
21
+ TH5UHsOtUU7k9TYARt/TgYZKuaoAMZZd5qyVqhF1vV+7/Qzmp89NGflXf2xYP26a
22
+ 4MAX2qqKX/FKXqmFO+AGsbwYTEds1mksBF3fGsFgsQWxftG8GfZQ9+Cyu2+l1eOw
23
+ cZ+lPcg834G9DrqW2zhqUoLr1MTly4pqxYGb7XoDhoR7dd1kFE2a067+DzWC/ADt
24
+ +QkcqWUm5oh1fN0eqr7NsZlVJDulFgdiiYPQiIN7UNsii4Wc9aZqBoGcYfBeQNPZ
25
+ soo/6za/bWajOKUmDhpqvaiRv9EDpVLzuj53uDoukMMwxCMfgb04+ckQ0t2G7wqc
26
+ /D+K9JW9DDs3Yjgv9k4h7YMhW5gftosd+NkNC/+Y2CkCAwEAAaN1MHMwCQYDVR0T
27
+ BAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFHKN/nkRusdqCJEuq3lgB3fJvyTg
28
+ MBwGA1UdEQQVMBOBEWdlZEBGYWVyaWVNVUQub3JnMBwGA1UdEgQVMBOBEWdlZEBG
29
+ YWVyaWVNVUQub3JnMA0GCSqGSIb3DQEBCwUAA4IBgQAPJzKiT0zBU7kpqe0aS2qb
30
+ FI0PJ4y5I8buU4IZGUD5NEt/N7pZNfOyBxkrZkXhS44Fp+xwBH5ebLbq/WY78Bqd
31
+ db0z6ZgW4LMYMpWFfbXsRbd9TU2f52L8oMAhxOvF7Of5qJMVWuFQ8FPagk2iHrdH
32
+ inYLQagqAF6goWTXgAJCdPd6SNeeSNqA6vlY7CV1Jh5kfNJJ6xu/CVij1GzCLu/5
33
+ DMOr26DBv+qLJRRC/2h34uX71q5QgeOyxvMg+7V3u/Q06DXyQ2VgeeqiwDFFpEH0
34
+ PFkdPO6ZqbTRcLfNH7mFgCBJjsfSjJrn0sPBlYyOXgCoByfZnZyrIMH/UY+lgQqS
35
+ 6Von1VDsfQm0eJh5zYZD64ZF86phSR7mUX3mXItwH04HrZwkWpvgd871DZVR3i1n
36
+ w8aNA5re5+Rt/Vvjxj5AcEnZnZiz5x959NaddQocX32Z1unHw44pzRNUur1GInfW
37
+ p4vpx2kUSFSAGjtCbDGTNV2AH8w9OU4xEmNz8c5lyoA=
32
38
  -----END CERTIFICATE-----
33
- date: 2016-08-18 00:00:00.000000000 Z
39
+ date: 2016-08-20 00:00:00.000000000 Z
34
40
  dependencies:
35
41
  - !ruby/object:Gem::Dependency
36
42
  name: hoe-mercurial
metadata.gz.sig CHANGED
Binary file