pg 0.21.0-x86-mingw32 → 1.0.0-x86-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 +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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ccd144b59e3613e20037bc75e4553c4bcb8f022
|
4
|
+
data.tar.gz: 151c565653fa214e6706ba6ec769cccee64fe1ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3139288c4416c57c686ee77ad5dc6946ad534ea0beae3e961e2f497fdbfc25e8ec65d6f95bd6249de7413f284d006cb8d6d803c3ac617be0f6b307f7fc417a8
|
7
|
+
data.tar.gz: 781515533e062e4cf83166e49f3d001d67fba7306bb0f33506d89336ff7e24b585cb252641ed034192f7f394bc0b961783bd61dc7981d74b5751db0e6c15ba7b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/ChangeLog
CHANGED
@@ -1,39 +1,11 @@
|
|
1
1
|
2017-06-12 Michael Granger <ged@FaerieMUD.org>
|
2
2
|
|
3
|
-
* .hgtags:
|
4
|
-
Added tag v0.21.0 for changeset deae742eacfa
|
5
|
-
[c8b7f9e0a79b] [tip]
|
6
|
-
|
7
|
-
* .hgsigs:
|
8
|
-
Added signature for changeset f275e318641f
|
9
|
-
[deae742eacfa] [v0.21.0]
|
10
|
-
|
11
|
-
* .tm_properties, spec/pg/result_spec.rb:
|
12
|
-
Eliminate use of deprecated PGError constant from specs
|
13
|
-
[f275e318641f]
|
14
|
-
|
15
|
-
* History.rdoc:
|
16
|
-
Add some more History
|
17
|
-
[866ae581d077]
|
18
|
-
|
19
|
-
* Manifest.txt, lib/pg.rb:
|
20
|
-
Merge with 5b2a4c21f962 (deprecation warnings)
|
21
|
-
[81f046a32b14]
|
22
|
-
|
23
|
-
* Manifest.txt:
|
24
|
-
Add missing deprecated_constants.rb to manifest
|
25
|
-
[5b2a4c21f962]
|
26
|
-
|
27
3
|
* Closing branch.
|
28
|
-
[d199582de47f] <olleolleolle/readmerdoc-use-svg-for-travis-build-badg-1489403729779>
|
4
|
+
[d199582de47f] [tip] <olleolleolle/readmerdoc-use-svg-for-travis-build-badg-1489403729779>
|
29
5
|
|
30
6
|
* Merge with bitbucket upstream
|
31
7
|
[7cb095bb8e34]
|
32
8
|
|
33
|
-
* .hgignore, .hoerc, History.rdoc, Manifest.txt, lib/pg.rb:
|
34
|
-
Bunp minor version, update history, fix manifest/ignore files
|
35
|
-
[4729196c11cb]
|
36
|
-
|
37
9
|
2017-06-12 Lars Kanis <lars@greiz-reinsdorf.de>
|
38
10
|
|
39
11
|
* Merged in olleolleolle/ruby-pg/olleolleolle/readmerdoc-use-svg-for-
|
@@ -48,6 +20,24 @@
|
|
48
20
|
README.rdoc: use SVG for Travis build badge
|
49
21
|
[75dcedbff32e] <olleolleolle/readmerdoc-use-svg-for-travis-build-badg-1489403729779>
|
50
22
|
|
23
|
+
2017-06-12 Michael Granger <ged@FaerieMUD.org>
|
24
|
+
|
25
|
+
* .hgignore, .hoerc, History.rdoc, Manifest.txt, lib/pg.rb:
|
26
|
+
Bunp minor version, update history, fix manifest/ignore files
|
27
|
+
[4729196c11cb]
|
28
|
+
|
29
|
+
* Merged with bitbucket default
|
30
|
+
[f6063a34ae2b]
|
31
|
+
|
32
|
+
2017-04-07 Lars Kanis <lars@greiz-reinsdorf.de>
|
33
|
+
|
34
|
+
* lib/pg.rb:
|
35
|
+
Move add_dll_directory to the Runtime namespace.
|
36
|
+
|
37
|
+
RubyInstaller::Runtime.add_dll_directory is deprecated with
|
38
|
+
rubyinstaller-2.4.1-1rc1.
|
39
|
+
[050a996456b1]
|
40
|
+
|
51
41
|
2017-05-31 Michael Granger <ged@FaerieMUD.org>
|
52
42
|
|
53
43
|
* Rakefile, lib/pg.rb, lib/pg/connection.rb,
|
@@ -55,11 +45,6 @@
|
|
55
45
|
Deprecate the old PGconn, PGresult, and PGError constants.
|
56
46
|
[3ce331d8c88e]
|
57
47
|
|
58
|
-
2017-06-12 Michael Granger <ged@FaerieMUD.org>
|
59
|
-
|
60
|
-
* Merged with bitbucket default
|
61
|
-
[f6063a34ae2b]
|
62
|
-
|
63
48
|
2017-06-01 Michael Granger <ged@FaerieMUD.org>
|
64
49
|
|
65
50
|
* ext/pg_result.c, pg.gemspec, sample/copydata.rb:
|
@@ -68,15 +53,6 @@
|
|
68
53
|
Also add an example of the nicer #copy_data way of doing `COPY`.
|
69
54
|
[c4a1abc36c47]
|
70
55
|
|
71
|
-
2017-04-07 Lars Kanis <lars@greiz-reinsdorf.de>
|
72
|
-
|
73
|
-
* lib/pg.rb:
|
74
|
-
Move add_dll_directory to the Runtime namespace.
|
75
|
-
|
76
|
-
RubyInstaller::Runtime.add_dll_directory is deprecated with
|
77
|
-
rubyinstaller-2.4.1-1rc1.
|
78
|
-
[050a996456b1]
|
79
|
-
|
80
56
|
2017-03-13 Michael Granger <ged@FaerieMUD.org>
|
81
57
|
|
82
58
|
* .gems, .rvm.gems, Rakefile, pg.gemspec:
|
@@ -213,6 +189,18 @@
|
|
213
189
|
Merged with d62b04efb055
|
214
190
|
[cefe252948ed]
|
215
191
|
|
192
|
+
2016-10-21 Lars Kanis <lars@greiz-reinsdorf.de>
|
193
|
+
|
194
|
+
* lib/pg/text_encoder.rb:
|
195
|
+
Fix typo in JSON#encode
|
196
|
+
[d62b04efb055]
|
197
|
+
|
198
|
+
* History.rdoc, lib/pg/text_decoder.rb, lib/pg/text_encoder.rb:
|
199
|
+
Use secure JSON methods for JSON (de)serialisation.
|
200
|
+
|
201
|
+
This fixes issue #248 : https://bitbucket.org/ged/ruby-pg/issues/248
|
202
|
+
[fe3e883bead2]
|
203
|
+
|
216
204
|
2016-09-21 Michael Granger <ged@FaerieMUD.org>
|
217
205
|
|
218
206
|
* .hgtags:
|
@@ -227,18 +215,6 @@
|
|
227
215
|
Bump the minor version, update history.
|
228
216
|
[8beaa5d72670]
|
229
217
|
|
230
|
-
2016-10-21 Lars Kanis <lars@greiz-reinsdorf.de>
|
231
|
-
|
232
|
-
* lib/pg/text_encoder.rb:
|
233
|
-
Fix typo in JSON#encode
|
234
|
-
[d62b04efb055]
|
235
|
-
|
236
|
-
* History.rdoc, lib/pg/text_decoder.rb, lib/pg/text_encoder.rb:
|
237
|
-
Use secure JSON methods for JSON (de)serialisation.
|
238
|
-
|
239
|
-
This fixes issue #248 : https://bitbucket.org/ged/ruby-pg/issues/248
|
240
|
-
[fe3e883bead2]
|
241
|
-
|
242
218
|
2016-09-04 Lars Kanis <lars@greiz-reinsdorf.de>
|
243
219
|
|
244
220
|
* ext/pg_connection.c:
|
@@ -281,22 +257,6 @@
|
|
281
257
|
Merged with upstream
|
282
258
|
[cf9ac513102e]
|
283
259
|
|
284
|
-
* BSDL, README.rdoc, ext/pg.c:
|
285
|
-
Update copyright year, license files
|
286
|
-
[c77d0997b4e4]
|
287
|
-
|
288
|
-
* README.rdoc, certs/ged.pem:
|
289
|
-
Update/upgrade my signing cert
|
290
|
-
|
291
|
-
Fixes #241.
|
292
|
-
[741c94c3bada]
|
293
|
-
|
294
|
-
2016-08-17 Michael Granger <ged@FaerieMUD.org>
|
295
|
-
|
296
|
-
* pg.gemspec:
|
297
|
-
Bump prerelease version in the gemspec
|
298
|
-
[f7472e7a7902]
|
299
|
-
|
300
260
|
2016-08-20 Lars Kanis <lars@greiz-reinsdorf.de>
|
301
261
|
|
302
262
|
* History.rdoc, lib/pg/connection.rb:
|
@@ -370,6 +330,26 @@
|
|
370
330
|
Update History.rdoc
|
371
331
|
[9c3699255853]
|
372
332
|
|
333
|
+
2016-08-20 Michael Granger <ged@FaerieMUD.org>
|
334
|
+
|
335
|
+
* BSDL, README.rdoc, ext/pg.c:
|
336
|
+
Update copyright year, license files
|
337
|
+
[c77d0997b4e4]
|
338
|
+
|
339
|
+
* README.rdoc, certs/ged.pem:
|
340
|
+
Update/upgrade my signing cert
|
341
|
+
|
342
|
+
Fixes #241.
|
343
|
+
[741c94c3bada]
|
344
|
+
|
345
|
+
2016-08-17 Michael Granger <ged@FaerieMUD.org>
|
346
|
+
|
347
|
+
* pg.gemspec:
|
348
|
+
Bump prerelease version in the gemspec
|
349
|
+
[f7472e7a7902]
|
350
|
+
|
351
|
+
2016-08-14 Lars Kanis <lars@greiz-reinsdorf.de>
|
352
|
+
|
373
353
|
* Merge git master
|
374
354
|
[9b7987626074]
|
375
355
|
|
@@ -2977,12 +2957,6 @@
|
|
2977
2957
|
Merged with 4cc778c5ead7
|
2978
2958
|
[67bb0f34ca05]
|
2979
2959
|
|
2980
|
-
2014-08-20 Michael Granger <ged@FaerieMUD.org>
|
2981
|
-
|
2982
|
-
* spec/helpers.rb, spec/pg/connection_spec.rb:
|
2983
|
-
Check connection status with a matcher in specs
|
2984
|
-
[b32840b98e4b]
|
2985
|
-
|
2986
2960
|
2014-10-09 Lars Kanis <lars@greiz-reinsdorf.de>
|
2987
2961
|
|
2988
2962
|
* Rakefile, Rakefile.cross, ext/extconf.rb:
|
@@ -3058,6 +3032,10 @@
|
|
3058
3032
|
|
3059
3033
|
2014-08-20 Michael Granger <ged@FaerieMUD.org>
|
3060
3034
|
|
3035
|
+
* spec/helpers.rb, spec/pg/connection_spec.rb:
|
3036
|
+
Check connection status with a matcher in specs
|
3037
|
+
[b32840b98e4b]
|
3038
|
+
|
3061
3039
|
* ext/pg_connection.c, lib/pg/connection.rb,
|
3062
3040
|
spec/pg/connection_spec.rb:
|
3063
3041
|
Implement PG::Connection#conninfo and use it to test #188
|
@@ -3082,17 +3060,19 @@
|
|
3082
3060
|
* Merge with 6c2444dc63e1
|
3083
3061
|
[d7160a9fb5dc]
|
3084
3062
|
|
3085
|
-
* .rvm.gems, Rakefile, spec/helpers.rb, spec/lib/helpers.rb,
|
3086
|
-
spec/pg/connection_spec.rb, spec/pg/result_spec.rb, spec/pg_spec.rb:
|
3087
|
-
Convert specs to expect syntax for RSpec 3
|
3088
|
-
[c9108c846ab2]
|
3089
|
-
|
3090
3063
|
2013-12-30 Lars Kanis <lars@greiz-reinsdorf.de>
|
3091
3064
|
|
3092
3065
|
* ext/pg_connection.c:
|
3093
3066
|
Fix typo in documentation.
|
3094
3067
|
[6c2444dc63e1]
|
3095
3068
|
|
3069
|
+
2014-06-05 Michael Granger <ged@FaerieMUD.org>
|
3070
|
+
|
3071
|
+
* .rvm.gems, Rakefile, spec/helpers.rb, spec/lib/helpers.rb,
|
3072
|
+
spec/pg/connection_spec.rb, spec/pg/result_spec.rb, spec/pg_spec.rb:
|
3073
|
+
Convert specs to expect syntax for RSpec 3
|
3074
|
+
[c9108c846ab2]
|
3075
|
+
|
3096
3076
|
2013-12-18 Michael Granger <ged@FaerieMUD.org>
|
3097
3077
|
|
3098
3078
|
* .hgtags:
|
data/History.rdoc
CHANGED
@@ -1,3 +1,28 @@
|
|
1
|
+
== v1.0.0 [2018-01-10] Michael Granger <ged@FaerieMUD.org>
|
2
|
+
|
3
|
+
Deprecated:
|
4
|
+
- Deprecate Ruby older than 2.2.
|
5
|
+
- Deprecate Connection#socket in favor of #socket_io.
|
6
|
+
|
7
|
+
Removed:
|
8
|
+
- Remove compatibility code for Ruby < 2.0 and PostgreSQL < 9.2.
|
9
|
+
- Remove partial compatibility with Rubinius.
|
10
|
+
|
11
|
+
Enhancements:
|
12
|
+
- Update error codes to PostgreSQL-10
|
13
|
+
- Update Windows binary gems to Ruby-2.5, PostgreSQL 10.1 and
|
14
|
+
OpenSSL 1.1.0g.
|
15
|
+
|
16
|
+
Bugfixes:
|
17
|
+
- Fix URI detection for connection strings. #265 (thanks to jjoos)
|
18
|
+
- MINGW: Workaround segfault due to GCC linker error in conjunction with MSVC.
|
19
|
+
This happens when linking to PostgreSQL-10.0-x64 from EnterpriseDB.
|
20
|
+
|
21
|
+
Documentation fixes:
|
22
|
+
- Add PostgreSQL version since when the given function is supported. #263
|
23
|
+
- Better documentation to `encoder` and `decoder` arguments of COPY related methods.
|
24
|
+
|
25
|
+
|
1
26
|
== v0.21.0 [2017-06-12] Michael Granger <ged@FaerieMUD.org>
|
2
27
|
|
3
28
|
Enhancements:
|
@@ -10,6 +35,9 @@ Enhancements:
|
|
10
35
|
Documentation fixes:
|
11
36
|
- Update the docs for PG::Result#cmd_tuples
|
12
37
|
|
38
|
+
New Samples:
|
39
|
+
- Add an example of the nicer #copy_data way of doing `COPY`.
|
40
|
+
|
13
41
|
|
14
42
|
== v0.20.0 [2017-03-10] Michael Granger <ged@FaerieMUD.org>
|
15
43
|
|
data/Manifest.txt
CHANGED
data/README.rdoc
CHANGED
@@ -11,7 +11,7 @@ docs :: http://deveiate.org/code/pg
|
|
11
11
|
|
12
12
|
Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].
|
13
13
|
|
14
|
-
It works with {PostgreSQL 9.
|
14
|
+
It works with {PostgreSQL 9.2 and later}[http://www.postgresql.org/support/versioning/].
|
15
15
|
|
16
16
|
A small example usage:
|
17
17
|
|
@@ -37,8 +37,8 @@ A small example usage:
|
|
37
37
|
|
38
38
|
== Requirements
|
39
39
|
|
40
|
-
* Ruby 2.2
|
41
|
-
* PostgreSQL 9.
|
40
|
+
* Ruby 2.2 or newer
|
41
|
+
* PostgreSQL 9.2.x or later (with headers, -dev packages, etc).
|
42
42
|
|
43
43
|
It usually work with earlier versions of Ruby/PostgreSQL as well, but those are
|
44
44
|
not regularly tested.
|
@@ -165,4 +165,3 @@ to this library over the years.
|
|
165
165
|
|
166
166
|
We are thankful to the people at the ruby-list and ruby-dev mailing lists.
|
167
167
|
And to the people who developed PostgreSQL.
|
168
|
-
|
data/Rakefile
CHANGED
@@ -61,7 +61,7 @@ $hoespec = Hoe.spec 'pg' do
|
|
61
61
|
self.developer 'Lars Kanis', 'lars@greiz-reinsdorf.de'
|
62
62
|
|
63
63
|
self.dependency 'rake-compiler', '~> 1.0', :developer
|
64
|
-
self.dependency 'rake-compiler-dock', '~> 0.6', :developer
|
64
|
+
self.dependency 'rake-compiler-dock', ['~> 0.6', '>= 0.6.2'], :developer
|
65
65
|
self.dependency 'hoe-deveiate', '~> 0.9', :developer
|
66
66
|
self.dependency 'hoe-bundler', '~> 1.0', :developer
|
67
67
|
self.dependency 'rspec', '~> 3.5', :developer
|
@@ -105,8 +105,6 @@ task :maint do
|
|
105
105
|
ENV['MAINTAINER_MODE'] = 'yes'
|
106
106
|
end
|
107
107
|
|
108
|
-
ENV['RUBY_CC_VERSION'] ||= '1.8.7:1.9.2:2.0.0'
|
109
|
-
|
110
108
|
# Rake-compiler task
|
111
109
|
Rake::ExtensionTask.new do |ext|
|
112
110
|
ext.name = 'pg_ext'
|
@@ -155,6 +153,7 @@ end
|
|
155
153
|
file '.hg/branch' do
|
156
154
|
warn "WARNING: You need the Mercurial repo to update the ChangeLog"
|
157
155
|
end
|
156
|
+
Rake::Task["ChangeLog"].clear
|
158
157
|
file 'ChangeLog' do |task|
|
159
158
|
if File.exist?('.hg/branch')
|
160
159
|
$stderr.puts "Updating the changelog..."
|
@@ -185,7 +184,7 @@ end
|
|
185
184
|
|
186
185
|
desc "Update list of server error codes"
|
187
186
|
task :update_error_codes do
|
188
|
-
URL_ERRORCODES_TXT = "http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;f=src/backend/utils/errcodes.txt;hb=refs/tags/
|
187
|
+
URL_ERRORCODES_TXT = "http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;f=src/backend/utils/errcodes.txt;hb=refs/tags/REL_10_1"
|
189
188
|
|
190
189
|
ERRORCODES_TXT = "ext/errorcodes.txt"
|
191
190
|
sh "wget #{URL_ERRORCODES_TXT.inspect} -O #{ERRORCODES_TXT.inspect} || curl #{URL_ERRORCODES_TXT.inspect} -o #{ERRORCODES_TXT.inspect}"
|
data/Rakefile.cross
CHANGED
@@ -29,8 +29,8 @@ class CrossLibrary < OpenStruct
|
|
29
29
|
self.host_platform = toolchain
|
30
30
|
|
31
31
|
# Cross-compilation constants
|
32
|
-
self.openssl_version = ENV['OPENSSL_VERSION'] || '1.
|
33
|
-
self.postgresql_version = ENV['POSTGRESQL_VERSION'] || '
|
32
|
+
self.openssl_version = ENV['OPENSSL_VERSION'] || '1.1.0g'
|
33
|
+
self.postgresql_version = ENV['POSTGRESQL_VERSION'] || '10.1'
|
34
34
|
|
35
35
|
# Check if symlinks work in the current working directory.
|
36
36
|
# This fails, if rake-compiler-dock is running on a Windows box.
|
@@ -54,8 +54,8 @@ class CrossLibrary < OpenStruct
|
|
54
54
|
self.openssl_tarball = static_sourcesdir + File.basename( openssl_source_uri.path )
|
55
55
|
self.openssl_makefile = static_openssl_builddir + 'Makefile'
|
56
56
|
|
57
|
-
self.
|
58
|
-
self.
|
57
|
+
self.libssl = static_openssl_builddir + 'libssl.a'
|
58
|
+
self.libcrypto = static_openssl_builddir + 'libcrypto.a'
|
59
59
|
|
60
60
|
self.openssl_patches = Rake::FileList[ (MISCDIR + "openssl-#{openssl_version}.*.patch").to_s ]
|
61
61
|
|
@@ -82,8 +82,6 @@ class CrossLibrary < OpenStruct
|
|
82
82
|
CLEAN.include( static_builddir.to_s )
|
83
83
|
|
84
84
|
|
85
|
-
ENV['RUBY_CC_VERSION'] ||= '1.9.3:2.0.0'
|
86
|
-
|
87
85
|
def download(url, save_to)
|
88
86
|
part = save_to+".part"
|
89
87
|
sh "wget #{url.to_s.inspect} -O #{part.inspect} || curl #{url.to_s.inspect} -o #{part.inspect}"
|
@@ -126,11 +124,9 @@ class CrossLibrary < OpenStruct
|
|
126
124
|
end
|
127
125
|
|
128
126
|
self.cmd_prelude = [
|
129
|
-
|
130
|
-
"
|
127
|
+
"env",
|
128
|
+
"CROSS_COMPILE=#{host_platform}-",
|
131
129
|
"CFLAGS=-DDSO_WIN32",
|
132
|
-
"AR=#{host_platform}-ar",
|
133
|
-
"RANLIB=#{host_platform}-ranlib"
|
134
130
|
]
|
135
131
|
|
136
132
|
|
@@ -145,7 +141,7 @@ class CrossLibrary < OpenStruct
|
|
145
141
|
end
|
146
142
|
|
147
143
|
desc "compile static openssl libraries"
|
148
|
-
task :openssl_libs => [
|
144
|
+
task :openssl_libs => [ libssl, libcrypto ]
|
149
145
|
|
150
146
|
task :compile_static_openssl => openssl_makefile do |t|
|
151
147
|
chdir( static_openssl_builddir ) do
|
@@ -156,14 +152,14 @@ class CrossLibrary < OpenStruct
|
|
156
152
|
end
|
157
153
|
end
|
158
154
|
|
159
|
-
desc "compile static #{
|
160
|
-
file
|
161
|
-
|
155
|
+
desc "compile static #{libssl}"
|
156
|
+
file libssl => :compile_static_openssl do |t|
|
157
|
+
rm t.name.gsub(/\.a$/, ".dll.a")
|
162
158
|
end
|
163
159
|
|
164
|
-
desc "compile static #{
|
165
|
-
file
|
166
|
-
|
160
|
+
desc "compile static #{libcrypto}"
|
161
|
+
file libcrypto => :compile_static_openssl do |t|
|
162
|
+
rm t.name.gsub(/\.a$/, ".dll.a")
|
167
163
|
end
|
168
164
|
|
169
165
|
|
@@ -207,7 +203,7 @@ class CrossLibrary < OpenStruct
|
|
207
203
|
cmd << "CFLAGS=-L#{static_openssl_builddir}"
|
208
204
|
cmd << "LDFLAGS=-L#{static_openssl_builddir}"
|
209
205
|
cmd << "LDFLAGS_SL=-L#{static_openssl_builddir}"
|
210
|
-
cmd << "LIBS=-lwsock32 -lgdi32"
|
206
|
+
cmd << "LIBS=-lwsock32 -lgdi32 -lws2_32"
|
211
207
|
cmd << "CPPFLAGS=-I#{static_openssl_builddir}/include"
|
212
208
|
|
213
209
|
run( *cmd )
|
@@ -226,7 +222,7 @@ class CrossLibrary < OpenStruct
|
|
226
222
|
sh 'make',
|
227
223
|
"-j#{NUM_CPUS}",
|
228
224
|
postgresql_lib.basename.to_s,
|
229
|
-
'SHLIB_LINK=-
|
225
|
+
'SHLIB_LINK=-lssl -lcrypto -lcrypt32 -lgdi32 -lsecur32 -lwsock32 -lws2_32'
|
230
226
|
end
|
231
227
|
end
|
232
228
|
|
@@ -297,6 +293,6 @@ task 'gem:windows' => ['ChangeLog'] do
|
|
297
293
|
mkdir ~/.gem &&
|
298
294
|
(cp build/gem/gem-*.pem ~/.gem/ || true) &&
|
299
295
|
bundle install --local &&
|
300
|
-
rake cross native gem RUBY_CC_VERSION=2.4.0:2.3.0:2.2.2:2.1.6:2.0.0
|
296
|
+
rake cross native gem RUBY_CC_VERSION=2.5.0:2.4.0:2.3.0:2.2.2:2.1.6:2.0.0
|
301
297
|
EOT
|
302
298
|
end
|
data/ext/errorcodes.def
CHANGED
@@ -230,6 +230,10 @@
|
|
230
230
|
VALUE klass = define_error_class( "NumericValueOutOfRange", "22" );
|
231
231
|
register_error_class( "22003", klass );
|
232
232
|
}
|
233
|
+
{
|
234
|
+
VALUE klass = define_error_class( "SequenceGeneratorLimitExceeded", "22" );
|
235
|
+
register_error_class( "2200H", klass );
|
236
|
+
}
|
233
237
|
{
|
234
238
|
VALUE klass = define_error_class( "StringDataLengthMismatch", "22" );
|
235
239
|
register_error_class( "22026", klass );
|
@@ -587,6 +591,10 @@
|
|
587
591
|
VALUE klass = define_error_class( "WrongObjectType", "42" );
|
588
592
|
register_error_class( "42809", klass );
|
589
593
|
}
|
594
|
+
{
|
595
|
+
VALUE klass = define_error_class( "GeneratedAlways", "42" );
|
596
|
+
register_error_class( "428C9", klass );
|
597
|
+
}
|
590
598
|
{
|
591
599
|
VALUE klass = define_error_class( "UndefinedColumn", "42" );
|
592
600
|
register_error_class( "42703", klass );
|