pg 0.14.1 → 0.15.0.pre.432

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,9 +1,432 @@
1
+ 2013-02-03 Michael Granger <ged@FaerieMUD.org>
2
+
3
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
4
+ Split the dual-mode PG::Connection#exec into #exec and #exec_params.
5
+
6
+ PG::Connection#exec should be backward compatible with old code: it
7
+ just passes control to #exec_params directly instead of calling
8
+ PQexecParams() itself.
9
+
10
+ Thanks to Aaron Patterson for the idea.
11
+ [7c313c2355b7] [github/exec_params, tip]
12
+
13
+ 2013-01-31 Michael Granger <ged@FaerieMUD.org>
14
+
15
+ * ext/extconf.rb:
16
+ Add experimental -rpath to the LDFLAGS
17
+ [8496c624dffd] [github/rpath_ldflag]
18
+
19
+ 2013-01-30 Michael Granger <ged@FaerieMUD.org>
20
+
21
+ * .hoerc, ext/pg_connection.c, lib/pg/connection.rb,
22
+ sample/async_api.rb, sample/async_copyto.rb, sample/async_mixed.rb,
23
+ spec/pg/connection_spec.rb:
24
+ Add PG::Connection#socket_io to return a memoized IO for the
25
+ underlying socket.
26
+
27
+ This keeps the IO in scope until the Connection is garbage-
28
+ collected, preventing Ruby from auto-closing the connection to
29
+ PostgreSQL.
30
+ [c1e35a055da6] [github/master]
31
+
32
+ 2013-01-30 Michael Granger <ged@faeriemud.org>
33
+
34
+ * Close branch copy_both_docu.
35
+ [9a5a0ead9240] <copy_both_docu>
36
+
37
+ * Close branch row_processor.
38
+ [2503026a5b0c] <row_processor>
39
+
40
+ * Close branch use_gvl_for_blocking_functions.
41
+ [c576c578b389] <use_gvl_for_blocking_functions>
42
+
43
+ 2013-01-29 Michael Granger <ged@FaerieMUD.org>
44
+
45
+ * History.rdoc:
46
+ Add @tenderlove's patch credit to History, reworded some stuff
47
+ [dbfbd4a8e88b]
48
+
49
+ * lib/pg/result.rb:
50
+ Whitespace/docs fix
51
+ [6d150feff5b7]
52
+
53
+ * spec/pg/result_spec.rb:
54
+ Merge with github mirror
55
+ [114d4527bc34]
56
+
57
+ * Merge pull request #5 from larskanis/for_ged_2
58
+
59
+ Update History+Manifest files
60
+ [68885ed19424]
61
+
62
+ 2013-01-25 Michael Granger <ged@FaerieMUD.org>
63
+
64
+ * Merge pull request #4 from larskanis/for_ged
65
+
66
+ A bunch of cool stuff from Lars Kanis.
67
+ [0ac815e4c1c2]
68
+
69
+ 2013-01-27 Lars Kanis <lars@greiz-reinsdorf.de>
70
+
71
+ * Manifest.txt:
72
+ Update Manifest file.
73
+ [2ec7220191c3]
74
+
75
+ * ext/pg_connection.c:
76
+ Remove unused variable.
77
+ [ff8729fed34d]
78
+
79
+ * History.rdoc:
80
+ Update the History file.
81
+ [6e1539487554]
82
+
83
+ 2013-01-23 Lars Kanis <kanis@comcard.de>
84
+
85
+ * ext/pg_connection.c:
86
+ Free memory allocated per rb_fd_init().
87
+ [c66205b7855a]
88
+
89
+ * README.rdoc:
90
+ Link the travis build status icon to ged's repository.
91
+ [5230908c87b0]
92
+
93
+ * ext/pg_connection.c, spec/lib/helpers.rb,
94
+ spec/pg/connection_spec.rb:
95
+ conn#socket() can not be used with IO.for_fd() on Windows.
96
+ [35588686dd95]
97
+
98
+ * spec/pg/connection_spec.rb:
99
+ Fix race in threading spec.
100
+ [9a84576d9c1c]
101
+
102
+ * ext/extconf.rb, ext/pg_connection.c:
103
+ Refactor different variants of waiting for the connection socket.
104
+
105
+ Reduce the 4 variants of waiting to only 2 which are used by both
106
+
107
+ This also fixes 'Bad file descriptor' respectively wrong behaviour
108
+ of #wait_for_notify() on Windows and fixes timeout handling of
109
+
110
+ Make use of rb_thread_fd_select() on Ruby 1.9, to avoid deprecation
111
+ warnings on rb_thread_select().
112
+ [bdad1d6ed622]
113
+
114
+ 2013-01-22 Lars Kanis <kanis@comcard.de>
115
+
116
+ * spec/lib/helpers.rb, spec/pg/connection_spec.rb:
117
+ Avoid fork() in specs.
118
+
119
+ fork() is not implemented on windows and jruby.
120
+
121
+ On Rubinius fork() blocks in these tests or raises 'server closed
122
+ the connection unexpectedly' after the test.
123
+ [4a6fe373133f]
124
+
125
+ * ext/extconf.rb, ext/gvl_wrappers.c, ext/gvl_wrappers.h, ext/pg.h,
126
+ ext/pg_connection.c, spec/pg/connection_spec.rb:
127
+ Add wrappers to blocking functions and callbacks in order to release
128
+ the GVL of ruby 1.9 as long as not in ruby code.
129
+
130
+ This allowes better concurrency in threaded applications.
131
+ [ccc3e80c0058]
132
+
133
+ * spec/pg/connection_spec.rb:
134
+ Remove duplicated test.
135
+
136
+ It is equally defined in result_spec.rb.
137
+ [ce203ebe0b00]
138
+
139
+ * spec/pg/connection_spec.rb:
140
+ Don't do parameter test with 'keepalives' on PostgreSQL<9.0
141
+ [b73895632940]
142
+
143
+ * spec/pg/result_spec.rb:
144
+ Adjust PGError test to also match PostgreSQL 8.3
145
+ [69ac504b6895]
146
+
147
+ * spec/pg/connection_spec.rb:
148
+ Skip some tests that do not run on PostgreSQL<9.0
149
+ [451ee7c4195d]
150
+
151
+ * spec/pg/connection_spec.rb:
152
+ Replace Encoding::KOI8_U by Encoding::KOI8_R to allow testing with
153
+ PostgreSQL 8.3.
154
+ [5edc4ca287be]
155
+
156
+ * spec/pg/connection_spec.rb:
157
+ Async connection test seems to be a bit racy on 1.8.7. So allow
158
+ CONNECTION_OK, too.
159
+ [5f29f24727e9]
160
+
161
+ * spec/pg/result_spec.rb:
162
+ Avoid warning about deprecated expect{ }.should.
163
+ [72a839f5fe85]
164
+
165
+ * Merge http://github.com/ged/ruby-pg
166
+ [af2075f15962]
167
+
168
+ 2013-01-21 Lars Kanis <kanis@comcard.de>
169
+
170
+ * .travis.yml, README.rdoc:
171
+ Add configuration for travis-ci.org and add build status icon to
172
+ README.
173
+ [cce08abf93c8]
174
+
175
+ 2013-01-25 Michael Granger <ged@FaerieMUD.org>
176
+
177
+ * .tm_properties:
178
+ Make source settings override TM2 defaults
179
+ [c5706b3f73af]
180
+
181
+ 2013-01-29 Aaron Patterson <aaron.patterson@gmail.com>
182
+
183
+ * ext/pg_result.c, lib/pg/result.rb, spec/pg/result_spec.rb:
184
+ adding PG::Result#each_row for looping over result sets by row
185
+ [fe820dfcc7a6]
186
+
187
+ 2013-01-05 Lars Kanis <kanis@comcard.de>
188
+
189
+ * Rakefile.cross:
190
+ Update PostgreSQL to 9.2.2 for cross compilation task
191
+ [553bde8e3021]
192
+
193
+ 2013-01-03 Lars Kanis <kanis@comcard.de>
194
+
195
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
196
+ Fix text encoding for Connection#notifies
197
+ [c1522591aa08]
198
+
199
+ 2012-12-30 Lars Kanis <kanis@comcard.de>
200
+
201
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
202
+ Fix text encoding for Connection#wait_for_notify
203
+ [3dc45b1416b9]
204
+
205
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
206
+ Fix encoding of messages delivered by notice callbacks
207
+ [048d07d14867]
208
+
209
+ 2012-12-26 Lars Kanis <kanis@comcard.de>
210
+
211
+ * ext/extconf.rb, ext/pg_connection.c, spec/pg/connection_spec.rb:
212
+ merge in default branch
213
+ [ca39e311d1eb] <use_gvl_for_blocking_functions>
214
+
215
+ * ext/gvl_wrappers.h:
216
+ Add some documentation to gvl_wrappers
217
+ [ffeb6a0afd1f] <use_gvl_for_blocking_functions>
218
+
219
+ * ext/pg.c:
220
+ Use proper const check instead of implicit relation
221
+ [d0c5d5f7f1e8]
222
+
223
+ * spec/pg/connection_spec.rb:
224
+ Improve spec for Connection#set_single_row_mode
225
+ [0b318fe91ffc]
226
+
227
+ * ext/pg_connection.c:
228
+ Add some more documentation to Connection#set_single_row_mode
229
+ [43f891ee4f64]
230
+
231
+ 2012-12-26 larskanis <lars@greiz-reinsdorf.de>
232
+
233
+ * spec/pg/connection_spec.rb:
234
+ Merged in larskanis/ruby-pg/single_row_mode (pull request #13: Add
235
+ single row mode of PostgreSQL 9.2)
236
+ [49e3fe1dafdf]
237
+
238
+ 2012-12-26 Lars Kanis <kanis@comcard.de>
239
+
240
+ * spec/pg/connection_spec.rb:
241
+ Add test case for threading with Connection#exec in ruby 1.9
242
+ [73b9aa38e8c0] <use_gvl_for_blocking_functions>
243
+
244
+ * ext/extconf.rb, ext/gvl_wrappers.c, ext/gvl_wrappers.h, ext/pg.h,
245
+ ext/pg_connection.c:
246
+ Add wrappers to blocking functions and callbacks in order to release
247
+ the GVL of ruby 1.9 as long as not in ruby code
248
+ [2f2c681424ed] <use_gvl_for_blocking_functions>
249
+
250
+ 2012-12-19 Lars Kanis <kanis@comcard.de>
251
+
252
+ * ext/extconf.rb, ext/pg.c, ext/pg_connection.c,
253
+ spec/pg/connection_spec.rb:
254
+ Add single row mode of PostgreSQL 9.2
255
+ [5cf348b75c1c] <single_row_mode>
256
+
257
+ 2012-07-02 Lars Kanis <kanis@comcard.de>
258
+
259
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
260
+ Fix encoding of values delivered to the row processor and add specs
261
+ for binary and text data.
262
+ [bb9c6625fbc9] <row_processor>
263
+
264
+ * ext/pg_connection.c:
265
+ Polish the documentation a little bit
266
+ [b7633be3c941] <row_processor>
267
+
268
+ 2012-07-01 Lars Kanis <kanis@comcard.de>
269
+
270
+ * ext/pg_connection.c:
271
+ Get rid of gcc warning about (non-)const PGresult to
272
+ pg_new_result_for_callback()
273
+ [1a25786ed8f3] <row_processor>
274
+
275
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
276
+ Fix wrong encoding for Result object passed to a notice-receiver
277
+ block. Add proper specs for #set_notice_receiver.
278
+ [4280826bb9b9] <row_processor>
279
+
280
+ * ext/extconf.rb, ext/pg.h, ext/pg_connection.c, ext/pg_result.c,
281
+ spec/lib/helpers.rb, spec/pg/connection_spec.rb:
282
+ Implement PostgreSQL-9.2 functions PG::Connection#set_row_processor,
283
+ get_row_processor, skip_result
284
+ [b7ce4843f4d1] <row_processor>
285
+
286
+ 2012-06-28 Lars Kanis <kanis@comcard.de>
287
+
288
+ * ext/pg_result.c:
289
+ Add PGRES_COPY_BOTH to documentation of PG::Result#result_status
290
+ [63998b47da6e] <copy_both_docu>
291
+
292
+ 2012-12-19 Michael Granger <ged@FaerieMUD.org>
293
+
294
+ * lib/pg/connection.rb:
295
+ Remove accidentally-committed debugging statement
296
+ [05f5faf568cd]
297
+
298
+ * Merge with github mirror
299
+ [95448a126ab5]
300
+
301
+ 2012-12-17 Michael Granger <ged@FaerieMUD.org>
302
+
303
+ * Merge pull request #3 from michaelrkn/master
304
+
305
+ fix spacing in the README
306
+ [9561ce98b144]
307
+
308
+ 2012-12-17 michael <michaelrkn@gmail.com>
309
+
310
+ * README.rdoc:
311
+ fix spacing on README.rdoc:21 to improve display on Github
312
+ [807f040166da]
313
+
314
+ 2012-12-19 Lars Kanis <kanis@comcard.de>
315
+
316
+ * spec/pg/connection_spec.rb:
317
+ Move the spec to param fallback_application_name into PostgreSQL 9.0
318
+ section
319
+ [83bfd3b99c08]
320
+
321
+ * ext/pg_result.c:
322
+ Fix segfault in PG::Result#field_values when called with non String
323
+ value
324
+ [e2f58175db88]
325
+
326
+ * spec/pg/result_spec.rb:
327
+ Add spec for PG::Result#field_values
328
+ [3618eb238aba]
329
+
330
+ * lib/pg/connection.rb, spec/lib/helpers.rb:
331
+ Restore compatibility with PostgreSQL down to 8.3
332
+ [e4900f62e56d]
333
+
334
+ 2012-10-30 Michael Granger <ged@FaerieMUD.org>
335
+
336
+ * spec/lib/helpers.rb, spec/pg/result_spec.rb:
337
+ Adding some fixes for PostgreSQL 9.2.x
338
+ [10804d14d1e7]
339
+
340
+ * lib/pg/connection.rb, spec/pg/connection_spec.rb:
341
+ Write specs for the fallback_application_name addition.
342
+ [994bad887ae9]
343
+
344
+ 2012-09-08 will <will@bitfission.com>
345
+
346
+ * lib/pg/connection.rb:
347
+ Add a default fallback_application_name to connection string
348
+ [ee5c4f860ce1]
349
+
350
+ 2012-10-30 Michael Granger <ged@FaerieMUD.org>
351
+
352
+ * sample/array_insert.rb:
353
+ Adding an example of how to insert array data using a prepared
354
+ statement (issue #145)
355
+ [7a8fdf4ae7fe]
356
+
357
+ 2012-10-01 Michael Granger <ged@FaerieMUD.org>
358
+
359
+ * Contributors.rdoc:
360
+ Update Rafał Bigaj's email address in Contributors.rdoc at his
361
+ request
362
+ [bf7fb95dc4e8]
363
+
364
+ 2012-09-07 Michael Granger <ged@FaerieMUD.org>
365
+
366
+ * ext/pg_result.c:
367
+ Fix the documentation for Result#check (refs #123)
368
+ [283e533abb9b]
369
+
370
+ 2012-09-02 Michael Granger <ged@FaerieMUD.org>
371
+
372
+ * .hgtags:
373
+ Added tag v0.14.1 for changeset 2d83ce956f97
374
+ [523ae4535497]
375
+
376
+ * .hgsigs:
377
+ Added signature for changeset 52d22b060501
378
+ [2d83ce956f97] [v0.14.1]
379
+
380
+ * History.rdoc:
381
+ Updating the History file
382
+ [52d22b060501]
383
+
384
+ 2012-08-14 Michael Granger <ged@FaerieMUD.org>
385
+
386
+ * ext/pg_result.c:
387
+ Add some documentation to PG::Result#fnumber (fixes #139)
388
+ [b03c4641e58f]
389
+
390
+ 2012-08-12 Michael Granger <ged@FaerieMUD.org>
391
+
392
+ * History.rdoc, lib/pg.rb:
393
+ Bump the patch version, update history.
394
+ [ef533f731814]
395
+
396
+ 2012-08-08 Jeremy Evans <code@jeremyevans.net>
397
+
398
+ * ext/extconf.rb, ext/pg_result.c:
399
+ [PATCH] Recognize PGRES_SINGLE_TUPLE as OK when checking PGresult
400
+
401
+ From 10cdc23ac4e3cfc91488f3f8a7a44f3275c9fe0a Mon Sep 17 00:00:00
402
+ 2001 This is used for the new single row mode introduced in
403
+ 9.2beta3, and indicates a successful result when using that mode.
404
+ --- ext/extconf.rb | 1 + ext/pg_result.c | 3 +++ 2 files
405
+ changed, 4 insertions(+), 0 deletions(-)
406
+ [f92b6456c566]
407
+
1
408
  2012-08-10 Michael Granger <ged@FaerieMUD.org>
2
409
 
410
+ * ext/pg_result.c:
411
+ Apply the heap vs. stack fix for PG::Result#fields too.
412
+ [512a362e883e]
413
+
414
+ * ext/pg_result.c:
415
+ Additional fixes for PG::Result#values and #column_values.
416
+
417
+ - Revert the row-building loop of Result#values to use the heap,
418
+ too.
419
+ - Use the heap for building #column_values, too.
420
+
421
+ Props to Lars Kanis for figuring out the problem.
422
+
423
+ Refs #135, #136, #138.
424
+ [62c8ee5406db]
425
+
3
426
  * ext/pg_result.c:
4
427
  Use heap instead of stack for result array in #values, etc al. (refs
5
428
  #135, #136, #138)
6
- [4d5e457062e8] [tip]
429
+ [4d5e457062e8]
7
430
 
8
431
  2012-08-04 Lars Kanis <kanis@comcard.de>
9
432
 
@@ -173,7 +596,7 @@
173
596
 
174
597
  * ext/pg_result.c:
175
598
  Merged in larskanis/ruby-pg (pull request #7)
176
- [4050c3412bd7]
599
+ [4050c3412bd7] [github/master@default]
177
600
 
178
601
  2012-03-10 Lars Kanis <kanis@comcard.de>
179
602
 
@@ -37,7 +37,7 @@ list.
37
37
  * Lars Kanis <kanis@comcard.de>
38
38
  * Jason Yanowitz <me-bitbucket@jasonyanowitz.com>
39
39
  * Charlie Savage <cfis@rubyforge.org>
40
- * Rafał Bigaj <rafal@Bonifacy.intranet>
40
+ * Rafał Bigaj <rafal.bigaj@gmail.com>
41
41
  * Jason Yanowitz <me-bitbucket@jasonyanowitz.com>
42
42
  * Greg Hazel <ghazel@gmail.com>
43
43
  * Chris White <cwprogram@live.com>