pg 0.15.1-x64-mingw32 → 0.16.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ data.tar.gz: ed7bab2dd53a3ae63b96d2e43b0b94438c1517fb
4
+ metadata.gz: dacd22ae85fe3a798d05c1b5b6c2e8544786c7e5
5
+ SHA512:
6
+ data.tar.gz: 50b8196d92f9a8ae7dcaaec73e68fca6d849350b8a3db3826ae7e950e1c1bb4820e1b12d73b65875a6224184c7c0c42890076a2220a4b4159a7c778b43014b86
7
+ metadata.gz: a156df14e7ab2ae58d3ed2bc5c0326ffb07ebe968cd843c8e55d48449609c2a8e93f064fbbdd2ee62661ed2e91dab077bff0e03ebc08658bdd0144c03530fb7b
Binary file
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,8 +1,402 @@
1
+ 2013-07-23 Michael Granger <ged@FaerieMUD.org>
2
+
3
+ * .hgtags:
4
+ Added tag v0.16.0 for changeset def8f41a7672
5
+ [315fa9728831] [tip]
6
+
7
+ * .hgsigs:
8
+ Added signature for changeset 4e0606f5f5aa
9
+ [def8f41a7672] [v0.16.0]
10
+
11
+ * History.rdoc, lib/pg.rb:
12
+ Bump the version, update history.
13
+ [4e0606f5f5aa]
14
+
15
+ 2013-07-19 Lars Kanis <kanis@comcard.de>
16
+
17
+ * .travis.yml:
18
+ Travis: Allow failures on rbx.
19
+ [7be3b156c8fb]
20
+
21
+ * spec/pg/column_mapping_spec.rb:
22
+ Too less quoting. Should fix compat with PostgreSQL 8.4.
23
+ [45fc78971757]
24
+
25
+ 2013-07-18 Lars Kanis <kanis@comcard.de>
26
+
27
+ * spec/pg/connection_spec.rb:
28
+ Test requires newer PostgreSQL version.
29
+ [10265c2fa41e]
30
+
31
+ * History.rdoc:
32
+ Update History.txt
33
+ [f19e8b3fc659]
34
+
35
+ * ext/pg_result.c, spec/pg/result_spec.rb:
36
+ Use nil as PG::Error#result in case of a NULL-result from libpq.
37
+
38
+ This previously returned a PG::Result object with internal NULL
39
+ pointer, that caused a misleading error "result has been cleared",
40
+ when accessed.
41
+
42
+ This fixes issue 166 : https://bitbucket.org/ged/ruby-pg/issue/166
43
+ [de6bee6a208c]
44
+
45
+ * ext/pg.h, ext/pg_connection.c, spec/pg/connection_spec.rb:
46
+ Recalculate the timeout of conn#wait_for_notify and conn#block in
47
+ case of socket events that require re-runs of select().
48
+
49
+ This previously caused a timeout higher than the given value,
50
+ because the timeout was set to the original value for every re-run.
51
+ [854b22230eba]
52
+
53
+ * spec/pg/connection_spec.rb:
54
+ Await a established connection to ensure the received errors match
55
+ exactly.
56
+
57
+ This test failed on Windows x64.
58
+ [6894f73d7039]
59
+
60
+ * Manifest.txt:
61
+ Add missing files to Manifest.txt.
62
+ [3b4bc9524bb3]
63
+
64
+ * Manifest.txt, ext/pg_column_mapping.c, ext/util.c, ext/util.h:
65
+ Add compat with Windows platform.
66
+ [3ac02d0ccf19]
67
+
68
+ * ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
69
+ Add compat with Ruby-1.8.7.
70
+ [7bcb3040fe34]
71
+
72
+ * spec/pg/column_mapping_spec.rb:
73
+ Use old BYTEA escaping for compat with PostgreSQL 8.4
74
+ [2fad9e274ad3]
75
+
76
+ 2013-07-04 Lars Kanis <lars@greiz-reinsdorf.de>
77
+
78
+ * ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
79
+ Add BinaryBolean converter.
80
+
81
+ Refactor converter tests.
82
+ [06c99b04f572]
83
+
84
+ * ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
85
+ Add BinaryFloat converter.
86
+ [493b0354c678]
87
+
88
+ 2013-07-03 Lars Kanis <lars@greiz-reinsdorf.de>
89
+
90
+ * ext/pg_column_mapping.c, lib/pg/result.rb,
91
+ spec/pg/column_mapping_spec.rb, spec/pg/result_spec.rb:
92
+ Change ColumnMapping#initialize to take one Array arg rather than a
93
+ parameter list.
94
+
95
+ Suggested by Aaron: https://groups.google.com/d/msg/ruby-
96
+ pg/PE5K6q9RzBs/M5prOno39DEJ
97
+ [c2ca10bf93c5]
98
+
99
+ * spec/pg/result_spec.rb:
100
+ Add test case for all value retrieving methods of PG::Result .
101
+ [e1055f877c58]
102
+
103
+ * spec/pg/column_mapping_spec.rb:
104
+ Add test case for default_mapping in Result#map_types!
105
+ [489220119795]
106
+
107
+ * lib/pg/result.rb, spec/pg/column_mapping_spec.rb:
108
+ Add convenience method PG::Result#map_types!
109
+ [de02df7fb198]
110
+
111
+ * spec/pg/column_mapping_spec.rb:
112
+ Add Boolean ColumnMapping spec and do Integer a bit more compact.
113
+ [4256841e088f]
114
+
115
+ 2013-07-01 Lars Kanis <kanis@comcard.de>
116
+
117
+ * ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb:
118
+ Add converter BinaryInteger.
119
+ [6f0c8f72962f]
120
+
121
+ * ext/pg_column_mapping.c, spec/pg/column_mapping_spec.rb,
122
+ spec/pg/result_spec.rb:
123
+ Use instances of PG::ColumnMapping::CConverter as representation of
124
+ the buildin converters instead of plain symbols. Symbol arguments
125
+ are converted to these instances, for convenience.
126
+
127
+ This allows to store and retrieve additional informations to the
128
+ conversion and also which conversions are supported.
129
+ [e4f6c37b5449]
130
+
131
+ * ext/pg_column_mapping.c:
132
+ Don't depend on TYPE(obj)==T_DATA of a proc object for compat with
133
+ rubinius.
134
+ [c33c4ac01aaf]
135
+
136
+ 2013-06-29 Lars Kanis <lars@greiz-reinsdorf.de>
137
+
138
+ * ext/pg.c, ext/pg.h, ext/pg_column_mapping.c, ext/pg_result.c,
139
+ spec/pg/result_spec.rb:
140
+ Add column based type mapping.
141
+
142
+ This allowes to speed up result retrieval by directly converting
143
+ integer and float values to proper ruby types.
144
+ [160c71c0b584]
145
+
146
+ 2013-07-06 Lars Kanis <lars@greiz-reinsdorf.de>
147
+
148
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
149
+ Use ConnectionBad instead of PG::Error for connection related
150
+
151
+ Replace rb_bug() for PQsocket() failure with rb_raise().
152
+ [ddb55d4a44d3]
153
+
154
+ 2013-07-17 Michael Granger <ged@FaerieMUD.org>
155
+
156
+ * .hgignore:
157
+ Add generated error codes file to the ignorelist
158
+ [67f6fa913c9d]
159
+
160
+ 2013-04-04 Cody Cutrer <cody@instructure.com>
161
+
162
+ * ext/pg_result.c:
163
+ refactor value retrieval into a single function
164
+
165
+ From d8bf9782f035c0a1d942d949535cd1800bc3e095 Mon Sep 17 00:00:00
166
+ 2001
167
+ [368a95c8d4c1]
168
+
169
+ 2013-06-26 Lars Kanis <kanis@comcard.de>
170
+
171
+ * ext/pg.h, ext/pg_connection.c, ext/pg_errors.c,
172
+ spec/pg/connection_spec.rb:
173
+ Add new error class 'ConnectionBad' that is raised if the connection
174
+
175
+ From 9d0acad61a693b9042842883fa8195ba973bf813 Mon Sep 17 00:00:00
176
+ 2001 could not be established. Use 'UnableToSend' error in case
177
+ that sending fails with async methods.
178
+ [b09cf9da723e]
179
+
180
+ * ext/gvl_wrappers.h, ext/pg_connection.c, spec/pg/connection_spec.rb:
181
+ Release GVL for PQconnect* and PQreset* functions, too.
182
+
183
+ From a1e24a52e3aaa59a552912f189a2ae36302ab696 Mon Sep 17 00:00:00
184
+ 2001 This fixes issue #165: https://bitbucket.org/ged/ruby-
185
+ pg/issue/165
186
+ [8b9b335c3f1f]
187
+
188
+ 2013-06-15 Lars Kanis <lars@greiz-reinsdorf.de>
189
+
190
+ * History.rdoc:
191
+ Add changes for 0.16.0 to History.rdoc.
192
+
193
+ From d4d92750850707aaca3b7b90fcb515ab1a401176 Mon Sep 17 00:00:00
194
+ 2001
195
+ [303cef15f662]
196
+
197
+ 2013-06-13 Lars Kanis <lars@greiz-reinsdorf.de>
198
+
199
+ * ext/pg_errors.c, spec/pg/connection_spec.rb:
200
+ Use distinct error class in case the connection is broken.
201
+
202
+ From 4d5c4301128b81c750d2dbbd0e7e0e6825b4685c Mon Sep 17 00:00:00
203
+ 2001
204
+ [12a4cbea487c]
205
+
206
+ * ext/pg_errors.c, spec/pg/result_spec.rb:
207
+ Rename PG:Errors to PG::ERROR_CLASSES as suggested by ged.
208
+
209
+ From 5401c5c9383bb7f0edebf558b02c4bba6870a7c5 Mon Sep 17 00:00:00
210
+ 2001
211
+ [a0972c3b8bbb]
212
+
213
+ 2013-06-07 Michael Granger <ged@FaerieMUD.org>
214
+
215
+ * .tm_properties:
216
+ Fix indent in project settings
217
+
218
+ From faafc7b075f9962bed37eb664462dc771de5fc6b Mon Sep 17 00:00:00
219
+ 2001
220
+ --HG-- extra : rebase_source :
221
+ 704ec9c8ffafa89e797faf2b298e7b6b078898fc
222
+ [0b45c1fb7575]
223
+
224
+ 2013-06-13 Lars Kanis <lars@greiz-reinsdorf.de>
225
+
226
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
227
+ Set proper encoding on the string returned by quote_ident,
228
+
229
+ From 72acd792eb92004655226fd31307dc821109f2e2 Mon Sep 17 00:00:00
230
+ 2001 escape_literal and escape_identifier. This fixes issue #163 :
231
+ https://bitbucket.org/ged/ruby-pg/issue/163 .
232
+ [30e475c4f9a0]
233
+
234
+ 2013-05-13 Lars Kanis <lars@greiz-reinsdorf.de>
235
+
236
+ * ext/pg_result.c:
237
+ Fix non working example for PGresult#error_field
238
+
239
+ From cb0dac677f049bee2817543c93c32fa0a07578f1 Mon Sep 17 00:00:00
240
+ 2001
241
+ [a0b1c8dbcf99]
242
+
243
+ * .travis.yml:
244
+ LD_LIBRARY_PATH is needless, thanks to the rpath option
245
+
246
+ From b74ba4ff89e7012b63080270425152d9e317e562 Mon Sep 17 00:00:00
247
+ 2001
248
+ [e169630b87f0]
249
+
250
+ 2013-05-18 Lars Kanis <lars@greiz-reinsdorf.de>
251
+
252
+ * Manifest.txt, Rakefile, ext/errorcodes.rb, ext/errorcodes.txt,
253
+ ext/pg.c, ext/pg.h, ext/pg_errors.c, ext/pg_result.c,
254
+ spec/pg/result_spec.rb, spec/pg_spec.rb:
255
+ Use inheritance to describe multiple types of PGErrors.
256
+
257
+ From fe657c793a9b8471d959ff94087c0857e0a767a7 Mon Sep 17 00:00:00
258
+ 2001 This resolves long standing bitbucket issue #5 .
259
+ [74aa9514a381]
260
+
261
+ 2013-05-14 Michael Granger <ged@FaerieMUD.org>
262
+
263
+ * ext/extconf.rb:
264
+ Merge pull request #12 from larskanis/add-support-for-diag-name-
265
+ fields
266
+
267
+ Add support for PG_DIAG_*_NAME error fields of PostgreSQL 9.3.
268
+ [e4465a9779fa]
269
+
270
+ * Merge pull request #11 from larskanis/try-rpath-manually-if-
271
+ rpathflag-is-empty
272
+
273
+ Try to use -rpath linker option, even if RbConfig doesn't know about
274
+ it.
275
+ [b4b9be725c09]
276
+
277
+ * ext/gvl_wrappers.h, spec/pg/connection_spec.rb:
278
+ Merge pull request #10 from larskanis/wrap-pqnotifies-per-gvl
279
+
280
+ Wrap PQnotifies per GVL.
281
+ [83e4520ded0e]
282
+
283
+ * spec/pg/connection_spec.rb:
284
+ Merge pull request #9 from larskanis/cancel-query-ubf
285
+
286
+ Ensure a query is canceled, if a thread is about to be killed.
287
+ [d9a6626143d6]
288
+
289
+ 2013-05-14 Lars Kanis <lars@greiz-reinsdorf.de>
290
+
291
+ * ext/extconf.rb, ext/pg.c, spec/lib/helpers.rb,
292
+ spec/pg/result_spec.rb:
293
+ Add support for PG_DIAG_*_NAME error fields.
294
+
295
+ This fixes issue #161 .
296
+ [e90cad5af52e]
297
+
298
+ 2013-05-12 Lars Kanis <lars@greiz-reinsdorf.de>
299
+
300
+ * spec/pg/connection_spec.rb:
301
+ Use async_exec for compat with Ruby-1.8
302
+ [52af48ad5023]
303
+
304
+ 2013-05-10 Lars Kanis <lars@greiz-reinsdorf.de>
305
+
306
+ * ext/gvl_wrappers.c, ext/gvl_wrappers.h, spec/pg/connection_spec.rb:
307
+ Ensure a query is canceled, if a thread is about to be killed.
308
+
309
+ This fixes blocked Ruby when pressing CTRL-C for a blocking query in
310
+ the main thread.
311
+ [e0492d4bbb9c]
312
+
313
+ 2013-05-11 Lars Kanis <lars@greiz-reinsdorf.de>
314
+
315
+ * ext/extconf.rb:
316
+ Try to use -rpath linker option, even if RbConfig doesn't know about
317
+ it.
318
+ [2dba8375f85b]
319
+
320
+ 2013-05-10 Lars Kanis <lars@greiz-reinsdorf.de>
321
+
322
+ * ext/gvl_wrappers.h, ext/pg_connection.c, spec/pg/connection_spec.rb:
323
+ Wrap PQnotifies per GVL.
324
+
325
+ PQnotifies doesn't do/wait for network communication, but PQnotifies
326
+ can deliver notifications per callback. The registered callback
327
+ function is then called with GVL locked. This results in a
328
+ rb_bug("rb_thread_call_with_gvl: called by a thread which has GVL.")
329
+ if we don't wrap PQnotifies likewise in order to unlock the GVL.
330
+ [6184e9c81ab5]
331
+
332
+ 2013-05-13 Michael Granger <ged@FaerieMUD.org>
333
+
334
+ * Merge pull request #8 from larskanis/fix-travis-tests
335
+
336
+ Fix travis tests
337
+ [8a0806192261]
338
+
339
+ 2013-05-10 Lars Kanis <lars@greiz-reinsdorf.de>
340
+
341
+ * Rakefile:
342
+ Allow 'rake compile' and 'rake gem' on non mercurial repos.
343
+
344
+ rake-compiler-0.9.0.pre.1 depends on ChangeLog for the compile task.
345
+ [982f66ccdd77]
346
+
347
+ * .travis.yml:
348
+ Update travis config.
349
+
350
+ Cross compile for i386-mingw32 on 1.8.7-p371 and x64-mingw32 on
351
+ 2.0.0-p0.
352
+ [fadc58d3804f]
353
+
354
+ * spec/lib/helpers.rb, spec/pg/connection_spec.rb:
355
+ Better spec for fallback_application_name.
356
+
357
+ The spec failed, if /bin/bash was more than 63 characters.
358
+ [8326e794b79e]
359
+
360
+ * spec/pg/result_spec.rb:
361
+ All versions of PostgreSQL starting from 8.4 know
362
+ DIAG_STATEMENT_POSITION and 8.3 is EOL.
363
+ [578e532297e4]
364
+
365
+ 2013-05-08 Lars Kanis <lars@greiz-reinsdorf.de>
366
+
367
+ * Merge pull request #7 from pedz/aix-build
368
+
369
+ Use a more standard method of adding library and include
370
+ directories.
371
+
372
+ This fixes built on AIX. See https://github.com/ged/ruby-pg/pull/7
373
+ [370ea51b888b]
374
+
375
+ 2013-04-08 Perry Smith <pedz@easesoftware.com>
376
+
377
+ * ext/extconf.rb:
378
+ Use a more standard method of adding library and include
379
+ directories.
380
+ [f11a13552a36]
381
+
382
+ 2013-05-02 Lars Kanis <lars@greiz-reinsdorf.de>
383
+
384
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
385
+ Return result of the block in conn#transaction instead of nil. This
386
+ fixes issue #158 .
387
+ [b94100f2674c]
388
+
389
+ 2013-05-01 Lars Kanis <kanis@comcard.de>
390
+
391
+ * ext/pg_connection.c:
392
+ Avoid warnings about uninitialized instance variables
393
+ [77410585716e]
394
+
1
395
  2013-04-08 Michael Granger <ged@FaerieMUD.org>
2
396
 
3
397
  * History.rdoc:
4
398
  Fix date in History
5
- [de1cdb0f7ba6] [tip]
399
+ [de1cdb0f7ba6]
6
400
 
7
401
  * .hgtags:
8
402
  Added tag v0.15.1 for changeset 4692c20bcbde
@@ -1,3 +1,30 @@
1
+ == v0.16.0 [2013-07-22] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Bugfixes:
4
+
5
+ - Avoid warnings about uninitialized instance variables.
6
+ - Use a more standard method of adding library and include directories.
7
+ This fixes build on AIX (Github #7) and Solaris (#164).
8
+ - Cancel the running query, if a thread is about to be killed (e.g. by CTRL-C).
9
+ - Fix GVL issue with wait_for_notify/notifies and notice callbacks.
10
+ - Set proper encoding on the string returned by quote_ident, escape_literal
11
+ and escape_identifier (#163).
12
+ - Use nil as PG::Error#result in case of a NULL-result from libpq (#166).
13
+ - Recalculate the timeout of conn#wait_for_notify and conn#block in case
14
+ of socket events that require re-runs of select().
15
+
16
+ Documentation fixes:
17
+
18
+ - Fix non working example for PGresult#error_field.
19
+
20
+ Enhancements:
21
+
22
+ - Add unique exception classes for each PostgreSQL error type (#5).
23
+ - Return result of the block in conn#transaction instead of nil (#158).
24
+ - Allow 'rake compile' and 'rake gem' on non mercurial repos.
25
+ - Add support for PG_DIAG_*_NAME error fields of PostgreSQL-9.3 (#161).
26
+
27
+
1
28
  == v0.15.1 [2013-04-08] Michael Granger <ged@FaerieMUD.org>
2
29
 
3
30
  Bugfixes:
@@ -156,11 +183,11 @@ Bugfixes:
156
183
  * accept a nil argument for no timeout (Sequel support)
157
184
  * Fixed API docs
158
185
  * Taint and encode event name and payload
159
- - Handle errors while rb_thread_select()ing in PGconn#block.
186
+ - Handle errors while rb_thread_select()ing in PGconn#block.
160
187
  (Brian Weaver).
161
188
  - Fixes for Win32 async queries (Rafał Bigaj)
162
189
  - Memory leak fixed: Closing opened WSA event. (rafal)
163
- - Fixes for #66 Win32 asynchronous queries hang on connection
190
+ - Fixes for #66 Win32 asynchronous queries hang on connection
164
191
  error. (rafal)
165
192
  - Fixed a typo in PGconn#error_message's documentation
166
193
  - fixing unused variable warnings for ruby 1.9.3 (Aaron Patterson)
@@ -173,7 +200,7 @@ Bugfixes:
173
200
 
174
201
  Enhancements:
175
202
 
176
- * Added a PGresult#values method to fetch all result rows as an Array of
203
+ * Added a PGresult#values method to fetch all result rows as an Array of
177
204
  Arrays. Thanks to Jason Yanowitz (JYanowitz at enovafinancial dot com) for
178
205
  the patch.
179
206