pg 0.21.0-x64-mingw32 → 1.0.0-x64-mingw32
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ChangeLog +62 -82
- data/History.rdoc +28 -0
- data/Manifest.txt +0 -1
- data/README.rdoc +3 -4
- data/Rakefile +3 -4
- data/Rakefile.cross +16 -20
- data/ext/errorcodes.def +8 -0
- data/ext/errorcodes.txt +3 -1
- data/ext/extconf.rb +12 -32
- data/ext/gvl_wrappers.c +4 -0
- data/ext/gvl_wrappers.h +23 -39
- data/ext/pg.c +15 -48
- data/ext/pg.h +7 -77
- data/ext/pg_binary_decoder.c +1 -1
- data/ext/pg_binary_encoder.c +1 -1
- data/ext/pg_connection.c +91 -130
- data/ext/pg_result.c +5 -9
- 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/2.4/pg_ext.so +0 -0
- data/lib/2.5/pg_ext.so +0 -0
- data/lib/libpq.dll +0 -0
- data/lib/pg.rb +2 -6
- data/lib/pg/connection.rb +7 -2
- data/spec/helpers.rb +8 -12
- data/spec/pg/connection_spec.rb +228 -185
- data/spec/pg/result_spec.rb +3 -3
- data/spec/pg/type_spec.rb +1 -1
- data/spec/pg_spec.rb +1 -1
- metadata +36 -24
- metadata.gz.sig +0 -0
- data/lib/pg/deprecated_constants.rb +0 -21
data/spec/pg/result_spec.rb
CHANGED
@@ -39,7 +39,7 @@ describe PG::Result do
|
|
39
39
|
expect( e.to_a ).to eq [{'a'=>'1', 'b'=>'2'}]
|
40
40
|
end
|
41
41
|
|
42
|
-
context "result streaming"
|
42
|
+
context "result streaming" do
|
43
43
|
it "can iterate over all tuples in single row mode" do
|
44
44
|
@conn.send_query( "SELECT generate_series(2,4) AS a; SELECT 1 AS b, generate_series(5,6) AS c" )
|
45
45
|
@conn.set_single_row_mode
|
@@ -199,7 +199,7 @@ describe PG::Result do
|
|
199
199
|
expect( out_bytes ).to eq( in_bytes )
|
200
200
|
end
|
201
201
|
|
202
|
-
it "returns the parameter type of the specified prepared statement parameter"
|
202
|
+
it "returns the parameter type of the specified prepared statement parameter" do
|
203
203
|
query = 'SELECT * FROM pg_stat_activity WHERE user = $1::name AND query = $2::text'
|
204
204
|
@conn.prepare( 'queryfinder', query )
|
205
205
|
res = @conn.describe_prepared( 'queryfinder' )
|
@@ -386,7 +386,7 @@ describe PG::Result do
|
|
386
386
|
end
|
387
387
|
|
388
388
|
it "the raised result is nil in case of a connection error" do
|
389
|
-
c =
|
389
|
+
c = PG::Connection.connect_start( '127.0.0.1', 54320, "", "", "me", "xxxx", "somedb" )
|
390
390
|
expect {
|
391
391
|
c.exec "select 1"
|
392
392
|
}.to raise_error {|error|
|
data/spec/pg/type_spec.rb
CHANGED
@@ -75,7 +75,7 @@ describe "PG::Type derivations" do
|
|
75
75
|
expect( intdec_incrementer.decode("3") ).to eq( 4 )
|
76
76
|
end
|
77
77
|
|
78
|
-
it "should decode integers of different lengths
|
78
|
+
it "should decode integers of different lengths from text format" do
|
79
79
|
30.times do |zeros|
|
80
80
|
expect( textdec_int.decode("1" + "0"*zeros) ).to eq( 10 ** zeros )
|
81
81
|
expect( textdec_int.decode(zeros==0 ? "0" : "9"*zeros) ).to eq( 10 ** zeros - 1 )
|
data/spec/pg_spec.rb
CHANGED
@@ -7,7 +7,7 @@ require 'pg'
|
|
7
7
|
|
8
8
|
describe PG do
|
9
9
|
|
10
|
-
it "knows what version of the libpq library is loaded"
|
10
|
+
it "knows what version of the libpq library is loaded" do
|
11
11
|
expect( PG.library_version ).to be_an( Integer )
|
12
12
|
expect( PG.library_version ).to be >= 90100
|
13
13
|
end
|
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.
|
4
|
+
version: 1.0.0
|
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
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
14
|
+
MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDANnZWQx
|
15
|
+
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
16
|
+
HhcNMTcwOTI3MDAzMDQ0WhcNMTgwOTI3MDAzMDQ0WjA+MQwwCgYDVQQDDANnZWQx
|
17
|
+
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
18
|
+
ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC/JWGRHO+USzR97vXjkFgt
|
19
|
+
83qeNf2KHkcvrRTSnR64i6um/ziin0I0oX23H7VYrDJC9A/uoUa5nGRJS5Zw/+wW
|
20
|
+
ENcvWVZS4iUzi4dsYJGY6yEOsXh2CcF46+QevV8iE+Umb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l0ia7PfubcBThSIdz61eCb8gRi/RiZZwb3/7+eyEncLJzt2Ob9fGSF
|
36
|
+
X0qdrKi+2aZZ0NGuFj9AItBsVmAvkBGIpX4TEKQp5haEbPpmaqO5nIIhV26PXmyT
|
37
|
+
OMKv6pWsoS81vw5KAGBmfX8nht/Py90DQrbRvakATGI=
|
32
38
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
39
|
+
date: 2018-01-10 00:00:00.000000000 Z
|
34
40
|
dependencies:
|
35
41
|
- !ruby/object:Gem::Dependency
|
36
42
|
name: hoe-mercurial
|
@@ -95,6 +101,9 @@ dependencies:
|
|
95
101
|
- - "~>"
|
96
102
|
- !ruby/object:Gem::Version
|
97
103
|
version: '0.6'
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 0.6.2
|
98
107
|
type: :development
|
99
108
|
prerelease: false
|
100
109
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -102,6 +111,9 @@ dependencies:
|
|
102
111
|
- - "~>"
|
103
112
|
- !ruby/object:Gem::Version
|
104
113
|
version: '0.6'
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 0.6.2
|
105
117
|
- !ruby/object:Gem::Dependency
|
106
118
|
name: hoe-bundler
|
107
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,7 +173,7 @@ dependencies:
|
|
161
173
|
description: |-
|
162
174
|
Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].
|
163
175
|
|
164
|
-
It works with {PostgreSQL 9.
|
176
|
+
It works with {PostgreSQL 9.2 and later}[http://www.postgresql.org/support/versioning/].
|
165
177
|
|
166
178
|
A small example usage:
|
167
179
|
|
@@ -262,13 +274,13 @@ files:
|
|
262
274
|
- lib/2.2/pg_ext.so
|
263
275
|
- lib/2.3/pg_ext.so
|
264
276
|
- lib/2.4/pg_ext.so
|
277
|
+
- lib/2.5/pg_ext.so
|
265
278
|
- lib/libpq.dll
|
266
279
|
- lib/pg.rb
|
267
280
|
- lib/pg/basic_type_mapping.rb
|
268
281
|
- lib/pg/coder.rb
|
269
282
|
- lib/pg/connection.rb
|
270
283
|
- lib/pg/constants.rb
|
271
|
-
- lib/pg/deprecated_constants.rb
|
272
284
|
- lib/pg/exceptions.rb
|
273
285
|
- lib/pg/result.rb
|
274
286
|
- lib/pg/text_decoder.rb
|
@@ -305,7 +317,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
305
317
|
version: '2.0'
|
306
318
|
- - "<"
|
307
319
|
- !ruby/object:Gem::Version
|
308
|
-
version: '2.
|
320
|
+
version: '2.6'
|
309
321
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
310
322
|
requirements:
|
311
323
|
- - ">="
|
@@ -313,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
313
325
|
version: '0'
|
314
326
|
requirements: []
|
315
327
|
rubyforge_project:
|
316
|
-
rubygems_version: 2.6.
|
328
|
+
rubygems_version: 2.6.14
|
317
329
|
signing_key:
|
318
330
|
specification_version: 4
|
319
331
|
summary: Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/]
|
metadata.gz.sig
CHANGED
Binary file
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
#encoding: utf-8
|
3
|
-
|
4
|
-
# Warn about use of deprecated constants when this is autoloaded
|
5
|
-
callsite = caller(3).first
|
6
|
-
|
7
|
-
warn <<END_OF_WARNING
|
8
|
-
The PGconn, PGresult, and PGError constants are deprecated, and will be
|
9
|
-
removed as of version 1.0.
|
10
|
-
|
11
|
-
You should use PG::Connection, PG::Result, and PG::Error instead, respectively.
|
12
|
-
|
13
|
-
Called from #{callsite}
|
14
|
-
END_OF_WARNING
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
PGconn = PG::Connection
|
19
|
-
PGresult = PG::Result
|
20
|
-
PGError = PG::Error
|
21
|
-
|