pg 0.12.0pre258 → 0.12.0.pre263

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,3 @@
1
+ Q�-�N�U"�g���2�D�)I;��JX ����v���G ܲ���6��U����7`�˂��!U5�b�ID��� Uq�a0{
2
+ �@cg6�2c�s�E��>��������$|U%�q���1n>�C(Q�|������r�0y� �U���r,��h*VD�?���d��B���� ����(`Yi�6*����7�όgKhK
3
+ ��l��cp؊���߳*?QH;����Ç]֞P��si����z�@�uK%`V�r
@@ -0,0 +1,1779 @@
1
+ 2011-11-28 Michael Granger <ged@FaerieMUD.org>
2
+
3
+ * sample/async_copyto.rb:
4
+ Adding an example of how to use COPY asynchronously
5
+ [9ebcdc3394fb] [github/master, tip]
6
+
7
+ * sample/copyto.rb, sample/cursor.rb:
8
+ Fixing some comments
9
+ [13cd5d7e1307]
10
+
11
+ 2011-10-31 Michael Granger <ged@FaerieMUD.org>
12
+
13
+ * Manifest.txt, ext/extconf.rb, ext/pg.c, spec/m17n_spec.rb:
14
+ Encdb fix for Ruby 1.9.3-rc1; thanks to wishdev@bitbucket for the
15
+ patch (fixes #88).
16
+ [31ff2758248a]
17
+
18
+ 2011-10-10 Michael Granger <ged@FaerieMUD.org>
19
+
20
+ * sample/cursor.rb:
21
+ Adding an example of using a cursor with PGconn#exec
22
+ [0639e0040af1]
23
+
24
+ 2011-10-07 Michael Granger <ged@FaerieMUD.org>
25
+
26
+ * .hgignore, Contributors, Contributors.rdoc, History.md,
27
+ History.rdoc, Manifest.txt, README.OS_X.md, README.OS_X.rdoc,
28
+ README.ja.md, README.ja.rdoc, README.md, README.rdoc,
29
+ README.windows.md, README.windows.rdoc, Rakefile, lib/pg.rb,
30
+ misc/openssl-1.0.0a.mingw-nocapi.patch:
31
+ Documentation update
32
+ [d8eea3141983]
33
+
34
+ * ext/pg.c:
35
+ Ensure values returned from #wait_for_notify are tainted and encoded
36
+ [6d565a8c3670]
37
+
38
+ * .hgtags:
39
+ Added tag v0.8.0 for changeset 7fbe4187e9e5
40
+ [6f043966cbe4]
41
+
42
+ * .hgtags:
43
+ Added tag v0.9.0 for changeset da726282493c
44
+ [ee09cf2d34ee]
45
+
46
+ * ext/pg.c:
47
+ Bumping minor version.
48
+ [5acdaac61975]
49
+
50
+ * ext/pg.c, spec/pgconn_spec.rb:
51
+ Make PGconn#wait_for_notify send nil as the payload argument if the
52
+ NOTIFY didn't have one.
53
+ [e47aa3bf402a]
54
+
55
+ * ext/pg.c, spec/pgconn_spec.rb:
56
+ Making #wait_for_notify accept a nil argument for no timeout (Sequel
57
+ support)
58
+ [2d2e977241e4]
59
+
60
+ * sample/async_api.rb, sample/copyfrom.rb, sample/losample.rb,
61
+ sample/psql.rb, sample/psqlHelp.rb, sample/test1.rb,
62
+ sample/test2.rb, sample/test4.rb:
63
+ Made all the samples executable
64
+ [7bc74288b271]
65
+
66
+ * .gemtest, .hgsub, .hgsubstate, Contributors, History.md,
67
+ Manifest.txt, README, README.OS_X, README.OS_X.md, README.ja,
68
+ README.ja.md, README.md, README.windows, README.windows.md,
69
+ Rakefile, Rakefile.local, doc/postgres.html, doc/postgres.jp.html,
70
+ ext/extconf.rb, ext/mingw/Rakefile, ext/mingw/build.rake,
71
+ project.yml:
72
+ Converted to Hoe
73
+ [30bd5229899d]
74
+
75
+ 2011-09-18 Michael Granger <ged@FaerieMUD.org>
76
+
77
+ * ext/pg.c:
78
+ Handle errors while rb_thread_select()ing in PGconn#block. Thanks to
79
+ Brian Weaver for the patch.
80
+ [adb5bb3175a4]
81
+
82
+ 2011-10-06 Michael Granger <ged@FaerieMUD.org>
83
+
84
+ * ext/pg.c:
85
+ Added docs for the payload argument to the block from
86
+ PGconn#wait_for_notify
87
+ [3623caf38391]
88
+
89
+ 2011-09-16 Michael Granger <ged@FaerieMUD.org>
90
+
91
+ * sample/copyto.rb:
92
+ Added an example of PGconn#get_copy_data.
93
+ [857ec5164f03]
94
+
95
+ 2011-09-01 Michael Granger <ged@FaerieMUD.org>
96
+
97
+ * misc/openssl-pg-segfault.rb:
98
+ Adding a test file for duplicating the OpenSSL linking problem
99
+ [a810901bff03]
100
+
101
+ 2011-07-31 cwgem <cwprogram@live.com>
102
+
103
+ * sample/test1.rb:
104
+ Fixing an issue with out of data properties and constants in the
105
+ sample file.
106
+ [44b5f65d0abe]
107
+
108
+ 2011-06-17 Michael Granger <ged@FaerieMUD.org>
109
+
110
+ * ext/pg.c:
111
+ Split out pgconn_block #ifdef madness into three functions; added
112
+ error-checking that will hopefully help with #75
113
+ [3d744d9776c3]
114
+
115
+ 2011-06-07 Michael Granger <ged@FaerieMUD.org>
116
+
117
+ * ext/pg.c:
118
+ Fix #ifdef for Ruby 1.9.2 under non-windows platform.
119
+ [88f7f11fe764]
120
+
121
+ * ext/pg.c:
122
+ Merged Rafał Bigaj's fixes for Win32 async queries
123
+ [315a497006a3]
124
+
125
+ 2011-05-13 rafal <rafal@Bonifacy.intranet>
126
+
127
+ * ext/pg.c:
128
+ Memory leak fixed: Closing opened WSA event.
129
+ [2bc78e46c1b6]
130
+
131
+ 2011-05-04 rafal <rafal@Bonifacy.intranet>
132
+
133
+ * ext/pg.c:
134
+ Fixes for #66 Win32 asynchronous queries hang on connection error.
135
+ Using Winsock events and rb_w32_wait_events() on WIN32 and Ruby 1.9
136
+ instead of rb_thread_select().
137
+ [fc4109b2ddba]
138
+
139
+ 2011-04-14 rafal <rafal@Bonifacy.intranet>
140
+
141
+ * ext/pg.c:
142
+ Fixes #66 Win32 asynchronous queries hang on connection error
143
+ [17a6a01c1725]
144
+
145
+ 2011-05-30 Michael Granger <ged@FaerieMUD.org>
146
+
147
+ * spec/m17n_spec.rb, spec/pgconn_spec.rb, spec/pgresult_spec.rb:
148
+ Fixed executable name in spec shebangs (refs #74)
149
+ [70bf05114369]
150
+
151
+ 2011-05-18 Michael Granger <ged@FaerieMUD.org>
152
+
153
+ * sample/async_api.rb:
154
+ Added a few more comments to the results part of the async example
155
+ [b5361e087db3]
156
+
157
+ * sample/async_api.rb:
158
+ Adding an asynchronous API example
159
+ [cf4c3a05a380]
160
+
161
+ * ext/pg.c:
162
+ Fixed a typo in PGconn#error_message's documentation
163
+ [34fc8e167542]
164
+
165
+ 2011-05-04 Michael Granger <ged@FaerieMUD.org>
166
+
167
+ * ext/extconf.rb:
168
+ Quote the path to pg_config, since now we're using backticks instead
169
+ of pipe+exec. Closes #65.
170
+ [3ec32bb496b9]
171
+
172
+ 2011-04-22 Aaron Patterson <aaron.patterson@gmail.com>
173
+
174
+ * lib/pg.rb:
175
+ fixing unused variable warnings for ruby 1.9.3
176
+ [37d40754ae58]
177
+
178
+ 2011-04-18 Michael Granger <ged@FaerieMUD.org>
179
+
180
+ * .hgtags:
181
+ Added tag v0.11.0 for changeset 3cb8e57c6c80
182
+ [9e8896275efa]
183
+
184
+ * .hgsigs:
185
+ Added signature for changeset 24aa7899c696
186
+ [3cb8e57c6c80] [v0.11.0]
187
+
188
+ * ext/pg.c, lib/pg.rb, spec/pgconn_spec.rb:
189
+ Move connection-parameter parsing into Ruby, and make option-
190
+ handling more flexible. No longer segfaults on no-option, <7-option
191
+ array, and other combinations of arguments to ::connect and
192
+ ::connect_start. Fixes #67.
193
+ [24aa7899c696]
194
+
195
+ 2011-03-30 Michael Granger <ged@FaerieMUD.org>
196
+
197
+ * Automated merge with ssh://bitbucket.org/larskanis/ruby-pg
198
+ [b477174160c8]
199
+
200
+ * ext/pg.c:
201
+ Comment the WIN32 console FD stuff so I remember what it does.
202
+ [56098b479a23]
203
+
204
+ 2011-03-15 Lars Kanis <kanis@comcard.de>
205
+
206
+ * README.windows, Rakefile.local:
207
+ Update cross compilation tasks to use Ruby 1.8.7 instead of 1.8.6,
208
+ since pg.gem requires at least 1.8.7 to get installed
209
+ [cc3a7476465c]
210
+
211
+ 2011-03-12 Lars Kanis <kanis@comcard.de>
212
+
213
+ * README.windows:
214
+ Update readme for cross compile
215
+ [b90f74cb11a5]
216
+
217
+ * Rakefile.local:
218
+ Use RUBY_CC_VERSION from command line, if set
219
+ [780650f201e3]
220
+
221
+ 2011-03-11 Lars Kanis <kanis@comcard.de>
222
+
223
+ * Rakefile.local:
224
+ update PG and OpenSSL version for cross compile
225
+ [31089d6c9dde]
226
+
227
+ * Rakefile.local:
228
+ always run "make libpq.a" for cross compilation
229
+ [dfe3e7c1ea27]
230
+
231
+ * Rakefile.local, ext/extconf.rb:
232
+ re-add required libs for cross compilation add ws2_32.dll because
233
+ libpq of PostgreSQL 9.0 makes use of it to determine host IP
234
+ addresses
235
+ [06e17573b133]
236
+
237
+ 2011-02-23 Michael Granger <ged@FaerieMUD.org>
238
+
239
+ * ext/pg.c:
240
+ Whitespace/line-ending fixes
241
+ [1baa7a8e673e]
242
+
243
+ * ext/pg.c:
244
+ Merged with 1c3a1ca9f0cd
245
+ [fb7d22101adf]
246
+
247
+ 2011-01-22 Greg Hazel <ghazel@gmail.com>
248
+
249
+ * ext/pg.c:
250
+ for windows support, duplicate the sockets from libpq and create
251
+ temporary CRT fds
252
+ [1c3a1ca9f0cd]
253
+
254
+ 2011-01-22 Michael Granger <ged@FaerieMUD.org>
255
+
256
+ * Pulling fixes for Windows from ghazel on Github
257
+ [c3f163bf1ecd]
258
+
259
+ 2011-02-10 Michael Granger <ged@FaerieMUD.org>
260
+
261
+ * ext/pg.c:
262
+ Bump minor version.
263
+ [18f413081e0c]
264
+
265
+ 2011-01-31 Michael Granger <ged@FaerieMUD.org>
266
+
267
+ * Contributors, ext/pg.c, spec/pgresult_spec.rb:
268
+ Reformatting fixes for PGresult#[] and PGresult#values
269
+ [739692aa8dd1]
270
+
271
+ 2011-01-31 Jason Yanowitz <me-bitbucket@jasonyanowitz.com>
272
+
273
+ * ext/pg.c, spec/pgresult_spec.rb:
274
+ added PGresult#values to get an array of arrays
275
+ [59679aee98ee]
276
+
277
+ 2011-01-19 Michael Granger <ged@FaerieMUD.org>
278
+
279
+ * .hgtags:
280
+ Added tag v0.10.1 for changeset de10b5d8e442
281
+ [8ab3dd3c757b]
282
+
283
+ * .hgsigs:
284
+ Added signature for changeset 230ea3e68db2
285
+ [de10b5d8e442] [v0.10.1]
286
+
287
+ * ext/pg.h:
288
+ Add an include guard for pg.h
289
+ [230ea3e68db2]
290
+
291
+ * lib/pg.rb:
292
+ Simplify the common case require of the ext
293
+ [f877d2d399cc]
294
+
295
+ * ext/compat.h:
296
+ Include the extconf header
297
+ [8e1707a90330]
298
+
299
+ 2010-12-06 Michael Granger <ged@FaerieMUD.org>
300
+
301
+ * ext/extconf.rb:
302
+ Experimenting with a greatly-simplified extconf, since the complex
303
+ one isn't solving any problems
304
+ [89348c8bb6d1]
305
+
306
+ * ext/pg.c:
307
+ Bumping version to 0.10.1.
308
+ [aea173eec98a]
309
+
310
+ * ext/extconf.rb, ext/pg.c:
311
+ Fixing compatibility with versions of PostgreSQL without
312
+ PQgetCancel. (fixes #36)
313
+ [d61e3310ea3d]
314
+
315
+ * .hgsubstate, lib/pg.rb:
316
+ Fix require for natively-compiled extension under Windows. (fixes
317
+ #55)
318
+ [89979f184b22]
319
+
320
+ * ext/pg.c, spec/pgconn_spec.rb:
321
+ Change rb_yield_splat() to rb_yield_values() for compatibility with
322
+ Rubinius. (fixes #54)
323
+ [9e11be78bfe4]
324
+
325
+ 2010-12-01 Michael Granger <ged@FaerieMUD.org>
326
+
327
+ * .hgtags:
328
+ Removed tag 0.10.0
329
+ [eb0d4b1df418]
330
+
331
+ * .hgtags:
332
+ Added tag v0.10.0 for changeset 1822a169c4fe
333
+ [78a63dce1491]
334
+
335
+ * spec/pgconn_spec.rb:
336
+ Fix deprecated expectation.
337
+ [469211f606ea]
338
+
339
+ * .hgpatchinfo/pg90_notify_payload.dep,
340
+ .hgpatchinfo/pg90_notify_payload.desc:
341
+ Merged in Mahlon's wait_for_notify update for PostgreSQL 9's
342
+ notification payload
343
+ [857722663a6f]
344
+
345
+ * Closing pg90_notify_payload pbranch for merge into default
346
+ [8ffb67a23f45] <pg90_notify_payload>
347
+
348
+ * ext/pg.c, spec/pgconn_spec.rb:
349
+ Finished the merge of default; fixed specs under 1.9.2.
350
+ [de86dca00ad2] <pg90_notify_payload>
351
+
352
+ * .hgpatchinfo/pg90_notify_payload.dep, ext/extconf.rb, ext/pg.c,
353
+ spec/lib/helpers.rb, spec/pgconn_spec.rb:
354
+ merge of default
355
+ [60664b2495cf] <pg90_notify_payload>
356
+
357
+ * .hgtags:
358
+ Added tag 0.10.0 for changeset 1822a169c4fe
359
+ [148d0cc3db4a]
360
+
361
+ * .hgsigs:
362
+ Added signature for changeset 3993015a841e
363
+ [1822a169c4fe] [v0.10.0]
364
+
365
+ * .hgignore, Rakefile.local:
366
+ Ignore the yard cache, handle missing rake-compiler for non-compile-
367
+ related tasks.
368
+ [3993015a841e]
369
+
370
+ 2010-11-11 Michael Granger <ged@FaerieMUD.org>
371
+
372
+ * .hgsubstate, Rakefile, ext/pg.c, project.yml:
373
+ Build/gem updates
374
+ * Updated the build system with Rubygems suggestions from RubyConf
375
+ 2010
376
+ * Bumped version to 0.10.0 to follow the Semantic Versioning spec
377
+ (http://semver.org/)
378
+ [71786704391b]
379
+
380
+ * README, spec/pgconn_spec.rb:
381
+ Added a spec for collapsed notifications.
382
+ [899329ce1b4e]
383
+
384
+ 2010-11-01 Michael Granger <ged@FaerieMUD.org>
385
+
386
+ * Rakefile.local, ext/extconf.rb:
387
+ More work trying to get the Windows-native gem to compile. No luck,
388
+ but it's closer.
389
+ * Revert the 1.8 build back to 1.8.6 on the advice of Louis Lavena's
390
+ blog: http://bit.ly/bFs4hj
391
+ * Undo the ARCHLIBDIR change
392
+ * Don't depend on the static-build option for the cross-compilation
393
+ section of extconf.rb to facilitate easy testing while the static
394
+ build parts are commented out.
395
+ [413f9e81e3ea]
396
+
397
+ 2010-10-31 Michael Granger <ged@FaerieMUD.org>
398
+
399
+ * ext/compat.c, ext/pg.c, spec/lib/helpers.rb, spec/m17n_spec.rb,
400
+ spec/pgconn_spec.rb:
401
+ Fixed issue with PGconn#wait_for_notify that caused it to miss
402
+ notifications that happened after the LISTEN but before the
403
+ wait_for_notify.
404
+ [3402babf2cdf]
405
+
406
+ 2010-10-29 Michael Granger <ged@FaerieMUD.org>
407
+
408
+ * .hgsubstate, Rakefile, project.yml, spec/m17n_spec.rb,
409
+ spec/pgconn_spec.rb, spec/pgresult_spec.rb:
410
+ Updated to RSpec 2.0
411
+ [9d8f82721f69]
412
+
413
+ 2010-10-11 Michael Granger <ged@FaerieMUD.org>
414
+
415
+ * Rakefile.local, ext/extconf.rb, misc/openssl-1.0.0a.mingw-
416
+ nocapi.patch:
417
+ Fixes for windows static build.
418
+ * Disable capi engine in OpenSSL build until it's fixed
419
+ (http://rt.openssl.org/Ticket/Display.html?id=1747)
420
+ * Rearrange some stuff in Rakefile.local to make the logic more
421
+ obvious
422
+ [b2df89600d95]
423
+
424
+ 2010-10-08 Michael Granger <ged@FaerieMUD.org>
425
+
426
+ * ext/extconf.rb, ext/pg.c, spec/lib/helpers.rb, spec/pgconn_spec.rb:
427
+ Added support for the payload of NOTIFY events (w/Mahlon E. Smith)
428
+ [193043bf2244] <pg90_notify_payload>
429
+
430
+ * .hgpatchinfo/pg90_notify_payload.dep,
431
+ .hgpatchinfo/pg90_notify_payload.desc:
432
+ start new patch on default
433
+ [ce9b893ff824] <pg90_notify_payload>
434
+
435
+ * Rakefile.local, ext/extconf.rb:
436
+ Fixes to get the static windows build to work with PostgreSQL 9.0
437
+ and OpenSSL 1.0.0a
438
+ [49ff3442c2ee]
439
+
440
+ 2010-09-28 Michael Granger <ged@FaerieMUD.org>
441
+
442
+ * Rakefile.local:
443
+ More work trying to get the native windows gem to compile under
444
+ PostgreSQL 9.0
445
+ [1fa5cd6851e3]
446
+
447
+ * sample/copyfrom.rb:
448
+ Adding a sample of how to use COPY FROM
449
+ [c9fb855a7d50]
450
+
451
+ 2010-09-24 Michael Granger <ged@FaerieMUD.org>
452
+
453
+ * .hgsubstate, Rakefile, Rakefile.local, project.yml,
454
+ spec/m17n_spec.rb, spec/pgconn_spec.rb, spec/pgresult_spec.rb:
455
+ Fixes for Ruby 1.9.2.
456
+ [d85ff87e5949]
457
+
458
+ * Rakefile, ext/pg.c, lib/pg.rb, spec/lib/helpers.rb,
459
+ spec/pgconn_spec.rb:
460
+ Version bump, updates for PostgreSQL 9.
461
+ * Bump version to 0.9.1.
462
+ * Fixed the specs for JRuby (and other no-fork Ruby interpreters)
463
+ [5dbc24f596c8]
464
+
465
+ 2010-08-03 Michael Granger <ged@FaerieMUD.org>
466
+
467
+ * .hgsubstate, Rakefile:
468
+ Merged JRuby fix into the build system, pulled down other build-
469
+ system updates. Thanks to timfel for the fix.
470
+ [1f8dd92ca16c]
471
+
472
+ 2010-08-03 Tim Felgentreff <timfelgentreff@gmail.com>
473
+
474
+ * Rakefile:
475
+ Fix to allow Rakefile to work on JRuby
476
+ [4f705f605e51]
477
+
478
+ 2010-08-02 Michael Granger <ged@FaerieMUD.org>
479
+
480
+ * ext/pg.c, spec/m17n_spec.rb:
481
+ Honor Ruby's default_internal encoding when connecting via the
482
+ synchronous interface; fixes #33
483
+ [92cc211ef553]
484
+
485
+ * ext/extconf.rb:
486
+ Don't treat the installed pg_config not having archflags as an
487
+ error; fixes #39
488
+ [a2237e39d399]
489
+
490
+ * Rakefile.local, lib/pg.rb:
491
+ Install extension under arch-specific directory (RPS fix)
492
+ [14b882b7b88c]
493
+
494
+ 2010-07-26 Michael Granger <ged@FaerieMUD.org>
495
+
496
+ * .hgsub, .hgsubstate:
497
+ Adding rake tasklibs as a sub-repo
498
+ [b0a5ae858569]
499
+
500
+ 2010-07-21 Michael Granger <ged@FaerieMUD.org>
501
+
502
+ * spec/pgresult_spec.rb:
503
+ Removed spec for issue #22, as the library is behaving the same as
504
+ the underlying library; closes #22
505
+ [37835e3b8701]
506
+
507
+ * Merged with 168:dfaa59767b2e
508
+ [86f238c12fa3]
509
+
510
+ * spec/pgconn_spec.rb:
511
+ Reworded an example's description and added a specific transaction-
512
+ abort spec
513
+ [dfaa59767b2e]
514
+
515
+ 2010-06-22 Michael Granger <ged@FaerieMUD.org>
516
+
517
+ * Rakefile.local:
518
+ Merged with 170:5418a1d86d91
519
+ [e756f8fb15d8]
520
+
521
+ * Rakefile.local, ext/pg.c, sample/test_binary_values.rb:
522
+ Adding example of invalid binary data issue (refs #22), fixing
523
+ EXT_SO path
524
+ [8922f0a8ee44]
525
+
526
+ 2010-02-25 Michael Granger <ged@FaerieMUD.org>
527
+
528
+ * spec/pgresult_spec.rb:
529
+ Adding a spec to test bug #12
530
+ [cb92aa4b6599]
531
+
532
+ * project.yml:
533
+ Adding rake-compiler to the dev dependencies
534
+ [86026f5ecf70]
535
+
536
+ 2010-06-22 Michael Granger <ged@FaerieMUD.org>
537
+
538
+ * Rakefile.local, ext/extconf.rb:
539
+ Cross-compile tasks cleanup, extconf diagnostic improvement.
540
+ * Cleaned up the cross-compilation task, factored stuff up into
541
+ constants, used pure-ruby download, untar, etc.
542
+ * Improved diagnostics of failed extconf runs (refs #32, #24)
543
+ [5418a1d86d91]
544
+
545
+ * .hgignore:
546
+ Adding some more stuff to the ignorefile
547
+ [07502a793f3a]
548
+
549
+ * sample/losample.rb:
550
+ Modified the large-object sample script to reflect the pg library's
551
+ API (refs #35)
552
+ [873867122e80]
553
+
554
+ 2010-06-21 Michael Granger <ged@FaerieMUD.org>
555
+
556
+ * .hgignore, Rakefile:
557
+ Updating build system, adding .orig files to ignore list.
558
+ [ea6eae59e917]
559
+
560
+ 2010-06-14 Michael Granger <ged@FaerieMUD.org>
561
+
562
+ * spec/m17n_spec.rb:
563
+ Whitespace fix
564
+ [bb8a3baad96e]
565
+
566
+ 2010-05-26 Michael Granger <ged@FaerieMUD.org>
567
+
568
+ * ext/extconf.rb:
569
+ Actually, just use the cflags from pg_config, which should resolve
570
+ both the -Wall and the -lsocket issue (refs #30)
571
+ [45e6518b780d]
572
+
573
+ * ext/extconf.rb:
574
+ Fixing compilation for non-GCC platforms (fixes #30)
575
+ [730fb885ce08]
576
+
577
+ 2010-03-16 Michael Granger <ged@FaerieMUD.org>
578
+
579
+ * ext/extconf.rb:
580
+ Fixed typo in ext/extconf.rb -- thanks to Keith Cascio for spotting
581
+ this. Closes #27.
582
+ [a47ffe890970]
583
+
584
+ 2010-02-28 Michael Granger <ged@FaerieMUD.org>
585
+
586
+ * .hgtags:
587
+ Added tag 0.9.0 for changeset da726282493c
588
+ [9a296096f7e9]
589
+
590
+ * .hgsigs:
591
+ Added signature for changeset 872063e42b12
592
+ [da726282493c] [0.9.0, v0.9.0]
593
+
594
+ 2010-02-19 Michael Granger <ged@FaerieMUD.org>
595
+
596
+ * Rakefile.local, ext/extconf.rb, ext/pg.c, ext/pg.h, lib/pg.rb:
597
+ Adding "fat gem" compatible loader, set the default RUBY_CC_VERSION.
598
+ [872063e42b12]
599
+
600
+ * Rakefile, Rakefile.local:
601
+ Updated the Rakefile so it includes itself in gems. (closes #15)
602
+ Thanks to flameeyes@bitbucket for noticing this.
603
+ [ab525ca90531]
604
+
605
+ 2010-02-18 Michael Granger <ged@FaerieMUD.org>
606
+
607
+ * ext/pg.c, spec/pgconn_spec.rb:
608
+ Applied patch for PGconn#async_exec to make it have the same
609
+ semantics as PGconn#exec (closes #19). Thanks again to Lars Kanis
610
+ for the patch.
611
+ [9c65eb905416]
612
+
613
+ 2010-02-17 Michael Granger <ged@FaerieMUD.org>
614
+
615
+ * Rakefile:
616
+ Updated the Rakefile to always default the package version even if a
617
+ version can't be read from the VERSION_FILE.
618
+ [b0017ac0ecb5]
619
+
620
+ * spec/lib/helpers.rb:
621
+ Improving spec database setup function (closes #18). Thanks to Lars
622
+ Kanis for another fine patch.
623
+ [c7d5458af696]
624
+
625
+ * spec/m17n_spec.rb:
626
+ Ack! Removing typo
627
+ [39b11474d035]
628
+
629
+ * spec/m17n_spec.rb:
630
+ Adding a test to ensure the result encoding remains the same even
631
+ when client_encoding in the connection changes.
632
+ [9d54bbc98488]
633
+
634
+ 2010-01-18 Michael Granger <ged@FaerieMUD.org>
635
+
636
+ * ext/extconf.rb:
637
+ Made the 'make_header' in the extconf more clear.
638
+ [31afece7c203]
639
+
640
+ 2010-01-13 Jeff Davis <pgsql@j-davis.com>
641
+
642
+ * spec/pgconn_spec.rb:
643
+ Merged
644
+ [d9c920068712]
645
+
646
+ * spec/pgconn_spec.rb:
647
+ In rspec tests, replace the pattern: CREATE TABLE ... INSERT ...
648
+ SELECT ... with: VALUES ...
649
+ [294eb6d5530b]
650
+
651
+ 2010-01-11 Michael Granger <ged@FaerieMUD.org>
652
+
653
+ * ext/extconf.rb, ext/pg.c, spec/pgconn_spec.rb:
654
+ A better fix for the PGconn#block weirdness on Win32 (closes #16).
655
+ * Replaced the WIN32 conditionals in PGconn#block with a much simpler
656
+ solution.
657
+ * Added a few specs to test PGconn#block based on Lars Kanis's
658
+ proposed one.
659
+
660
+ Thanks to both Lars and Shun for all their help with this issue.
661
+ [74fab32c2687]
662
+
663
+ 2010-01-06 Michael Granger <ged@FaerieMUD.org>
664
+
665
+ * README:
666
+ Rearranged the sections of the README.
667
+ [f8dfc1b6c51c]
668
+
669
+ 2010-01-05 Michael Granger <ged@FaerieMUD.org>
670
+
671
+ * README.OS_X:
672
+ Updating MacOS X README.
673
+ [0df792de2a19]
674
+
675
+ 2010-01-04 Michael Granger <ged@FaerieMUD.org>
676
+
677
+ * ext/pg.c:
678
+ Work around broken rb_thread_select() on win32; thanks to Lars Kanis
679
+ for the patch!
680
+ [2894973bc63f]
681
+
682
+ * ext/pg.c, spec/pgresult_spec.rb:
683
+ Reverted removal of PGresult::InvalidOid, fixed broken spec.
684
+ [88dacdb9c97d]
685
+
686
+ * .hgignore, README, Rakefile, ext/pg.c, project.yml:
687
+ Ignore some generated files, documentation work, removed type OID
688
+ constants.
689
+ * Updated the various READMEs with more up-to-date info.
690
+ * Updated build system (rdoc fixes, packaged files)
691
+ * Fixed some RDoc problems and formatting glitches
692
+ * Removed the type OID constants from PGresult; I was including them
693
+ so they could be used for comparison with PGresult#ftype return
694
+ values. RhodiumToad on #postgresql@freenode showed me the
695
+ format_type() SQL function, so I added an example of how to get
696
+ the same information via that function instead, which is
697
+ guaranteed to be correct even if src/include/catalog/pg_type.h
698
+ changes.
699
+ [739cec560448]
700
+
701
+ * README.windows, Rakefile.local, ext/extconf.rb:
702
+ Applied patch for static cross-compilation of win32 gem from Lars
703
+ Kanis with a few changes to support MacOS X as a host as well.
704
+ Closes #13. Thanks Lars!
705
+ [38a0d2a90664]
706
+
707
+ 2010-01-03 Michael Granger <ged@FaerieMUD.org>
708
+
709
+ * .irbrc, COPYING.txt, ChangeLog, MANIFEST, README, README.OS_X,
710
+ Rakefile, Rakefile.local, ext/extconf.rb, ext/pg.h, ext_helper.rb:
711
+ Updated build system
712
+ * Backed out the experimental arch-specific subdir of lib
713
+ * Removed second copy of GPL; one is more than enough.
714
+ * Removed the ChangeLog -- this should be built on demand instead of
715
+ checked in.
716
+ * Removed the out-of-date and now-superfluous MANIFEST
717
+ * Started updating the remaining documentation to reflect the current
718
+ state of the library/build instructions/people.
719
+ * Pass options to 'rake' through to extconf.rb, allowing 'rake --
720
+ --with-pg-dir=/path/to/pg'
721
+ * Updated the handling of compilation on MacOS X to use the
722
+ architectures common to both libpq and Ruby.
723
+ * Use an extconf.h for configuration
724
+ * Removed the now-unused ext_helper.rb
725
+
726
+ Still more work to be done, but I'm checkpointing this so it's not
727
+ too huge.
728
+ [f31202539234]
729
+
730
+ 2010-01-02 Michael Granger <ged@FaerieMUD.org>
731
+
732
+ * .hgtags:
733
+ Added tag 0.8.0 for changeset 7fbe4187e9e5
734
+ [cc09390cb0a8]
735
+
736
+ 2009-12-31 Michael Granger <ged@FaerieMUD.org>
737
+
738
+ * Closing branch
739
+ [d5fa3e079a55] <i17n-19-patches>
740
+
741
+ * ext/pg.c:
742
+ Bumped version to 0.9.0
743
+ [05834d47aac3]
744
+
745
+ * ext/mkrf_config.rb:
746
+ Merged i17n-19-patches branch
747
+ [0997a0aa7624]
748
+
749
+ 2009-12-28 Michael Granger <ged@FaerieMUD.org>
750
+
751
+ * .hgignore, ext/pg.c, spec/pgconn_spec.rb:
752
+ Make PGconn.connect_start use PQconnectStart instead of PQconnectdb
753
+ so asynchronous connection works. Fixes #14; thanks to 'ibc'
754
+ @bitbucket for submitting the test case that brought this to my
755
+ attention.
756
+ [f5af71167dea] <i17n-19-patches>
757
+
758
+ * ext/pg.c, spec/pgconn_spec.rb:
759
+ Added column-selection methods to PGresult (#field_values and
760
+ #column_values). Closes #12. Thanks to Sugano Yoshihisa for the
761
+ patch on which these methods were based.
762
+ [42919e2a4ef8] <i17n-19-patches>
763
+
764
+ 2009-12-23 Michael Granger <ged@FaerieMUD.org>
765
+
766
+ * ext/pg.c, spec/pgconn_spec.rb:
767
+ Fixed #11: encrypt_arguments doesn't receive password, thanks to
768
+ Yuki Miyauchi for the patch.
769
+ [39fdb2552163] <i17n-19-patches>
770
+
771
+ * .hgignore, ext/pg.c, spec/pgconn_spec.rb:
772
+ Fixed infinite loop in async_exec("COPY"), thanks to Mike Pomraning
773
+ for the patch. Closes #9.
774
+ [df770b6ad237] <i17n-19-patches>
775
+
776
+ 2009-12-16 Michael Granger <ged@FaerieMUD.org>
777
+
778
+ * .hgignore, Contributors, Rakefile, Rakefile.local, ext/extconf.rb,
779
+ ext/pg.c, project.yml, spec/m17n_spec.rb, spec/pgconn_spec.rb,
780
+ spec/pgresult_spec.rb:
781
+ New build system, build with rake-compiler, added PGconn::VERSION.
782
+ * Replaced the existing Rakefile with a small core set of tasks and
783
+ task libraries under rake/.
784
+ * Added a PGconn::VERSION constant (closes #4).
785
+ * Replaced the ARCHFLAGS warning under Darwin with code to duplicate
786
+ the archflags Postgres was compiled with.
787
+ [4cbcf197cb82] <i17n-19-patches>
788
+
789
+ 2009-12-15 Michael Granger <ged@FaerieMUD.org>
790
+
791
+ * Rakefile, ext/pg.c, spec/lib/helpers.rb, spec/pgconn_spec.rb:
792
+ Applied Rubyforge patch 26282; fixes #1. Thanks to Nikolai Lugovoi
793
+ for the patch.
794
+ [6ba661bbdb28] <i17n-19-patches>
795
+
796
+ 2009-12-11 Michael Granger <ged@FaerieMUD.org>
797
+
798
+ * Rakefile, ext/pg.c, spec/lib/helpers.rb, spec/pgconn_spec.rb:
799
+ Notify spec fixes, cleanup, Rakefile clean task adjustments.
800
+ * Made PGconn#wait_for_notify do more error-checking to track down a
801
+ problem with running it in transactions.
802
+ * Moved PGconn#wait_for_notify source closer to PGconn#notifies
803
+ * Split some stuff that used to get removed by 'clean' into the
804
+ 'clobber' task instead.
805
+ [3e42badc15de] <i17n-19-patches>
806
+
807
+ * .hgignore, spec/lib/helpers.rb, spec/pgconn_spec.rb:
808
+ Simplified the spec for PGconn#notify, still segfaulting.
809
+ [659d80221a45] <i17n-19-patches>
810
+
811
+ * Merged Mahlon's examples-directory patch from default.
812
+ [26b614a7ece8] <i17n-19-patches>
813
+
814
+ * ext/pg.c, spec/pgconn_spec.rb:
815
+ Merged Mahlon's notify patch from default.
816
+ [66234afab283] <i17n-19-patches>
817
+
818
+ 2009-12-10 Mahlon E. Smith <mahlon@martini.nu>
819
+
820
+ * sample/notify_wait.rb:
821
+ Add a sample (usage example) for wait_for_notify().
822
+ [1e6349a799c3]
823
+
824
+ * ext/pg.c, sample/psql.rb, sample/psqlHelp.rb, spec/pgconn_spec.rb:
825
+ * Small documentation fix for conn.notifies()
826
+ * Add wait_for_notify(), a method to do a blocking select() for a
827
+ NOTIFY event.
828
+ [a3434e641f6a]
829
+
830
+ 2009-10-29 Michael Granger <ged@FaerieMUD.org>
831
+
832
+ * ext/mkrf_config.rb:
833
+ Remove old mkrf config file to avoid confusion
834
+ [59549227d7c3] <i17n-19-patches>
835
+
836
+ 2009-10-28 Michael Granger <ged@FaerieMUD.org>
837
+
838
+ * .hgignore, ext/pg.c, spec/pgresult_spec.rb:
839
+ Write specs for and applied patch #26283; thanks to Nikolai Lugovoi.
840
+ [f30139fb0587] <i17n-19-patches>
841
+
842
+ * .hgignore, spec/data/expected_trace.out, spec/m17n_spec.rb,
843
+ spec/pgconn_spec.rb:
844
+ Fixups after conversion to Mercurial, fixing tests broken by the
845
+ changes in the previous commit.
846
+ * Fixed differences in expected trace output caused by every test
847
+ being wrapped in a transaction.
848
+ * Fixed require-order bug in two of the specs
849
+ * Corrected a mis-paste in the m17n spec before:all block
850
+ [a41d4291ffbb] <i17n-19-patches>
851
+
852
+ * Rakefile, spec/lib/helpers.rb, spec/m17n_spec.rb,
853
+ spec/pgconn_spec.rb, spec/pgresult_spec.rb:
854
+ * Made spec output elide output from the command line by default,
855
+ and log everything for diagnostics.
856
+ * Factored out the database setup and teardown functions into helpers,
857
+ added a collection of other helper functions for specs.
858
+ * Added specs to cover behavior around Nikolai Lugovoi's patch
859
+ (#26283) for PGresult#fmod, #ftable, and #ftablecol prior to
860
+ applying it.
861
+ [91ee1ac36a54] <i17n-19-patches>
862
+
863
+ 2009-10-17 Michael Granger <ged@FaerieMUD.org>
864
+
865
+ * .irbrc, Rakefile, ext/pg.c, ext/pg.h, spec/pgconn_spec.rb,
866
+ spec/pgresult_spec.rb:
867
+ Applied patch #26277; thanks to Nikolai Lugovoi.
868
+ * fixed number of parameters in definition of PGresult#paramtype --
869
+ expected 1 but was declared 0
870
+ * minor consistency update for range checks of column/tuple indices
871
+ * PGconn#lo_read : fixed to return string with length of really read
872
+ data, not provided length
873
+
874
+ I also added:
875
+ * Constants for paramtype Oids.
876
+ * A couple of additional rake tasks
877
+ * Append PQerrorMessage to some exception messages
878
+ * Specs for the above patch
879
+ [0b28f9bd8935] <i17n-19-patches>
880
+
881
+ 2009-10-16 Michael Granger <ged@FaerieMUD.org>
882
+
883
+ * Rakefile, ext/extconf.rb, ext/pg.c, ext/pg.h, spec/m17n_spec.rb,
884
+ spec/pgconn_spec.rb, spec/pgresult_spec.rb:
885
+ Build and warnings cleanup.
886
+ * Added a :default task
887
+ * Made spec execution quieter
888
+ * Silenced warning about 'dup()' by including unistd.h if we have it.
889
+ * Silenced warnings about generated exception messages by adding a
890
+ format.
891
+ [cb5335861c5d] <i17n-19-patches>
892
+
893
+ 2009-08-28 Michael Granger <ged@FaerieMUD.org>
894
+
895
+ * ext/pg.c, spec/m17n_spec.rb:
896
+ Applied patch #26116; thanks to Nikolai Lugovoi.
897
+ * apply client encoding to result of @conn.escape(string)
898
+ * set ASCII_8BIT for results returned in binary format
899
+ * fixed memory leak on exception in @conn.escape(string) for truncated
900
+ multibyte
901
+ [1d001b550715] <i17n-19-patches>
902
+
903
+ * ext/pg.c, spec/m17n_spec.rb, spec/pgconn_spec.rb,
904
+ spec/pgresult_spec.rb:
905
+ * Use pg_ctl -w instead of sleep for specs
906
+ * Fix up the specs to use #external_encoding, #internal_encoding,
907
+ and #internal_encoding=
908
+ * Added a pending spec for Johab (I can't figure out how to return
909
+ JOHAB-encoded results from Postgres)
910
+ [d67c62945540] <i17n-19-patches>
911
+
912
+ 2009-08-25 Michael Granger <ged@FaerieMUD.org>
913
+
914
+ * Rakefile, ext/pg.c, ext_helper.rb, spec/m17n_spec.rb,
915
+ spec/pgconn_spec.rb, spec/pgresult_spec.rb:
916
+ * Applied patch from (rubyforge:25931), fixes (rubyforge:22925).
917
+ * Normalized indentation
918
+ * Create all databases without locale to ensure consistency.
919
+ * Fixed the gemspec to make copying of the .so to lib/ unnecessary.
920
+ Extensions belong in ext/.
921
+ [0524dd20fb0f] <i17n-19-patches>
922
+
923
+ 2009-07-30 Michael Granger <ged@FaerieMUD.org>
924
+
925
+ * Making a branch for merging the patches and new specs to test them.
926
+ [d0267176eb61] <i17n-19-patches>
927
+
928
+ 2009-03-28 Jeff Davis <davis.jeffrey@gmail.com>
929
+
930
+ * Rakefile, spec/pgconn_spec.rb, spec/pgresult_spec.rb:
931
+ Bump version to 0.8.0
932
+
933
+ Update tests.
934
+ [7fbe4187e9e5] [0.8.0, v0.8.0]
935
+
936
+ 2009-03-28 Charlie Savage <cfis@rubyforge.org>
937
+
938
+ * spec/pgconn_spec.rb:
939
+ Don't call file trace on windows.
940
+ [39a19c65b0a0]
941
+
942
+ * Updated VC2008 project
943
+ [c4598eee6d1b]
944
+
945
+ * ext/vc/pg.sln, ext/vc/pg_18/pg.vcproj, ext/vc/pg_19/pg_19.vcproj:
946
+ Updated VC2008 project
947
+ [c75883fb5979]
948
+
949
+ 2009-03-28 Jeff Davis <davis.jeffrey@gmail.com>
950
+
951
+ * ext/pg.c:
952
+ Fix socket leak when connection error occurs.
953
+
954
+ Thanks to: Andrea Barisani <andrea@inversepath.com> Rob Holland
955
+ <rob@inversepath.com>
956
+ [4192e6d1ccc0]
957
+
958
+ * ext/pg.c:
959
+ PGconn#lo_close was calling lo_unlink.
960
+ [03d6ef0de9ef]
961
+
962
+ * ext/pg.h:
963
+ Change header so it builds correctly on 1.8 and 1.9.
964
+ [b27b4b4a54eb]
965
+
966
+ 2009-03-14 Charlie Savage <cfis@rubyforge.org>
967
+
968
+ * ext/pg.c:
969
+ Oops - use ALLOC_N not ALLOC, fixes compile error with VC2008.
970
+ [f7b97416c101]
971
+
972
+ * spec/pgconn_spec.rb:
973
+ Ignore rdoc directory, pkg directory, nbproject directory.
974
+ [c0fd7531850f]
975
+
976
+ * ext/mingw/Rakefile:
977
+ This rakefile is just used for installing the windows gem.
978
+ [c675c7534c4d]
979
+
980
+ * ext/mingw/build.rake:
981
+ Split out building on mingw to a separate rake file.
982
+ [c3329724ef5b]
983
+
984
+ * ext/vc/pg.sln, ext/vc/pg.vcproj, ext/vc/pg_18/pg.vcproj,
985
+ ext/vc/pg_19/pg_19.vcproj:
986
+ Updated VC2008 projects for Ruby 1.8 and Ruby 1.9 (1.9 not quite
987
+ setup yet).
988
+ [01e1dbb950c8]
989
+
990
+ * Rakefile:
991
+ Added rdoc task so you can type rake rdoc. Makes it easier to debug
992
+ rdoc documentation.
993
+ [677d3eae5b16]
994
+
995
+ * spec/pgresult_spec.rb:
996
+ Windows compatibility - use tcp/ip sockets, use full path names,
997
+ read files in binary mode.
998
+ [c33a73c14126]
999
+
1000
+ * spec/pgconn_spec.rb:
1001
+ Ripple port change through text. Always full path to open spec
1002
+ file.
1003
+ [241d3410b875]
1004
+
1005
+ * spec/pgconn_spec.rb:
1006
+ First stab at getting test to work on Windows. Windows does not
1007
+ support unix-sockets, so have to use tcp/ip sockets. Also windows
1008
+ requires that command line parameters are quoted with " and not '.
1009
+ [1bf29d30c16c]
1010
+
1011
+ * ext/pg.h:
1012
+ Export Init_pg in windows shared library.
1013
+ [4dae2cabb5ae]
1014
+
1015
+ * ext/pg.c:
1016
+ Fix up memory handling for Windows (match ALLOC with xfree).
1017
+ [4e9b028c55cd]
1018
+
1019
+ 2009-03-06 Jeff Davis <davis.jeffrey@gmail.com>
1020
+
1021
+ * ext/pg.c:
1022
+ 1.9 compatibility fixes.
1023
+ [4a9ffd0aa913]
1024
+
1025
+ 2008-12-03 Jeff Davis <davis.jeffrey@gmail.com>
1026
+
1027
+ * Rakefile, ext/compat.c, ext/mingw/Rakefile, ext/mingw/build.rake,
1028
+ ext/mkrf_config.rb, ext/pg.c, ext/vc/pg.sln, ext/vc/pg.vcproj:
1029
+ Add better support for windows build.
1030
+
1031
+ Big thanks to Charlie Savage.
1032
+ [7178d13749b7]
1033
+
1034
+ 2008-10-14 Jeff Davis <davis.jeffrey@gmail.com>
1035
+
1036
+ * ext/extconf.rb:
1037
+ Merged revisions 175 via svnmerge from
1038
+ svn+ssh://jdavis@rubyforge.org/var/svn/ruby-pg/ruby-pg/trunk
1039
+
1040
+ ........ r175 | jdavis | 2008-10-13 22:25:00 -0700 (Mon, 13 Oct
1041
+ 2008) | 4 lines
1042
+
1043
+ Revert r172. ........
1044
+ [4c2ea65f2eb9] <stable>
1045
+
1046
+ * ext/extconf.rb:
1047
+ Revert r172.
1048
+ [3bf9ef75bae5]
1049
+
1050
+ 2008-10-05 Jeff Davis <davis.jeffrey@gmail.com>
1051
+
1052
+ * ext/extconf.rb, ext/pg.c, spec/pgconn_spec.rb:
1053
+ Merged revisions 169-173 via svnmerge from
1054
+ svn+ssh://jdavis@rubyforge.org/var/svn/ruby-pg/ruby-pg/trunk
1055
+
1056
+ ........ r169 | jdavis | 2008-08-20 19:48:10 -0700 (Wed, 20 Aug
1057
+ 2008) | 6 lines
1058
+
1059
+ Fixed option connection argument in the case of using 7
1060
+ arguments.
1061
+
1062
+ Thanks Erik Hollensbe (erikh) for the bug report. ........ r170
1063
+ | jdavis | 2008-10-05 11:01:40 -0700 (Sun, 05 Oct 2008) | 4 lines
1064
+
1065
+ Throw correct exception when result is NULL. ........ r171 |
1066
+ jdavis | 2008-10-05 11:47:01 -0700 (Sun, 05 Oct 2008) | 12 lines
1067
+
1068
+ Fix PGconn#async_exec and PGconn#get_last_result to properly clear
1069
+ all results when an exception is raised. Before, the connection
1070
+ could be left in a state that is not ready for new commands.
1071
+
1072
+ Also, change PGconn#get_result to not raise an exception
1073
+ when the result is in an error state. You can still check the
1074
+ result object for an error, but it's not appropriate to raise an
1075
+ exception, because that could prevent the caller from properly
1076
+ clearing all results.
1077
+
1078
+ Thanks to Tarmo Tänav. ........ r172 | jdavis | 2008-10-05
1079
+ 12:04:45 -0700 (Sun, 05 Oct 2008) | 6 lines
1080
+
1081
+ Include all libraries listed in "pg_config --libs" in the build.
1082
+
1083
+ Thanks Hans-Thomas Mueller. ........ r173 | jdavis | 2008-10-05
1084
+ 12:18:58 -0700 (Sun, 05 Oct 2008) | 4 lines
1085
+
1086
+ Update spec tests. ........
1087
+ [7e7c22be0302] <stable>
1088
+
1089
+ * spec/pgconn_spec.rb:
1090
+ Update spec tests.
1091
+ [cdf306d84adf]
1092
+
1093
+ * ext/extconf.rb:
1094
+ Include all libraries listed in "pg_config --libs" in the build.
1095
+
1096
+ Thanks Hans-Thomas Mueller.
1097
+ [0386537bd139]
1098
+
1099
+ * ext/pg.c:
1100
+ Fix PGconn#async_exec and PGconn#get_last_result to properly clear
1101
+ all results when an exception is raised. Before, the connection
1102
+ could be left in a state that is not ready for new commands.
1103
+
1104
+ Also, change PGconn#get_result to not raise an exception when the
1105
+ result is in an error state. You can still check the result object
1106
+ for an error, but it's not appropriate to raise an exception,
1107
+ because that could prevent the caller from properly clearing all
1108
+ results.
1109
+
1110
+ Thanks to Tarmo Tänav.
1111
+ [68473ee45e28]
1112
+
1113
+ * ext/pg.c:
1114
+ Throw correct exception when result is NULL.
1115
+ [622eec9c6b0b]
1116
+
1117
+ 2008-08-21 Jeff Davis <davis.jeffrey@gmail.com>
1118
+
1119
+ * ext/pg.c:
1120
+ Fixed option connection argument in the case of using 7 arguments.
1121
+
1122
+ Thanks Erik Hollensbe (erikh) for the bug report.
1123
+ [8e8045947a9c]
1124
+
1125
+ 2008-08-17 Jeff Davis <davis.jeffrey@gmail.com>
1126
+
1127
+ * ext/pg.c:
1128
+ Merged revisions 166 via svnmerge from
1129
+ svn+ssh://jdavis@rubyforge.org/var/svn/ruby-pg/ruby-pg/trunk
1130
+
1131
+ ........ r166 | jdavis | 2008-08-17 13:35:51 -0700 (Sun, 17 Aug
1132
+ 2008) | 4 lines
1133
+
1134
+ Typo fix. ........
1135
+ [3e9dda291ef3] <stable>
1136
+
1137
+ * ext/pg.c:
1138
+ Typo fix.
1139
+ [c5c44a6267f7]
1140
+
1141
+ * ext_helper.rb:
1142
+ Add ext_helper.rb
1143
+ [3686c9944fe1] <stable>
1144
+
1145
+ * Rakefile, ext/extconf.rb, ext/pg.c, pg.gemspec,
1146
+ spec/data/expected_trace.out, spec/data/random_binary_data,
1147
+ spec/pgconn_spec.rb, spec/pgresult_spec.rb:
1148
+ Merged revisions 149-160 via svnmerge from
1149
+ svn+ssh://jdavis@rubyforge.org/var/svn/ruby-pg/ruby-pg/trunk
1150
+
1151
+ ........ r149 | jdavis | 2008-03-19 14:17:20 -0700 (Wed, 19 Mar
1152
+ 2008) | 5 lines
1153
+
1154
+ This commmit just cleans up indenting and coding
1155
+ conventions. It's a big patch, but does nothing meaningful. ........
1156
+ r150 | jdavis | 2008-03-19 14:19:53 -0700 (Wed, 19 Mar 2008) | 5
1157
+ lines
1158
+
1159
+
1160
+ * forgot to add the expected output to the repository, so one
1161
+ test was failing. Corrected now. ........ r151 | jdavis |
1162
+ 2008-03-20 11:20:25 -0700 (Thu, 20 Mar 2008) | 12 lines
1163
+
1164
+
1165
+ * added PGconn.connect_start(...) -> PGconn
1166
+ * added test for PGconn.connect_start()
1167
+ * refactored to separate the complexity of parsing the connection
1168
+ arguments
1169
+ * Removed some superfluous code for old versions of Ruby that
1170
+ don't support rb_define_alloc_func(). Those versions of Ruby
1171
+ most likely don't work anyway, and I'm not testing them.
1172
+
1173
+ ........ r152 | jdavis | 2008-03-20 12:16:06 -0700 (Thu, 20 Mar
1174
+ 2008) | 5 lines
1175
+
1176
+
1177
+ * added PGconn#cancel() -> String
1178
+ * added test for PGconn#cancel() ........ r153 | jdavis | 2008-04-21
1179
+ 10:13:39 -0700 (Mon, 21 Apr 2008) | 4 lines
1180
+
1181
+
1182
+ * added some tests for binary data ........ r154 | jdavis |
1183
+ 2008-04-21 10:24:05 -0700 (Mon, 21 Apr 2008) | 5 lines
1184
+
1185
+
1186
+ * applied patch from Louis Lavena to improve the build process
1187
+ (particularly for windows). ........ r155 | jdavis | 2008-04-21
1188
+ 10:41:04 -0700 (Mon, 21 Apr 2008) | 6 lines
1189
+
1190
+
1191
+ * backtracked a small piece of the patch, to catch the condition
1192
+ where pg_config is not in the PATH on posix platforms. ........
1193
+ r156 | jdavis | 2008-07-07 23:21:07 -0700 (Mon, 07 Jul 2008) | 6
1194
+ lines
1195
+
1196
+ Fix oversight in connect arguments for options and
1197
+ connect_timeout when passed in a hash. (Thanks Rob Holland for
1198
+ the bug report). ........ r157 | jdavis | 2008-07-23 22:33:26
1199
+ -0700 (Wed, 23 Jul 2008) | 10 lines
1200
+
1201
+ Changed all temporary allocations to use ALLOC_N (heap
1202
+ allocation) rather than ALLOCA_N (stack allocation). In
1203
+ particular, this allows PGconn#escape_string to accept larger
1204
+ input strings without fear of exceeding the stack size.
1205
+
1206
+ Thanks to Brett Neumeier. ........ r158 | jdavis | 2008-07-23
1207
+ 22:46:34 -0700 (Wed, 23 Jul 2008) | 6 lines
1208
+
1209
+ Fixed PGconn#setnonblocking
1210
+
1211
+ Thanks to Mohammad Ali (oldmoe) for the report. ........ r159 |
1212
+ jdavis | 2008-08-17 11:19:09 -0700 (Sun, 17 Aug 2008) | 4 lines
1213
+
1214
+ Applied build patch from Brett Neumeier. Thanks! ........ r160
1215
+ | jdavis | 2008-08-17 12:26:33 -0700 (Sun, 17 Aug 2008) | 7 lines
1216
+
1217
+ Properly protect variables from garbage collection, preventing
1218
+ possible memory corruption.
1219
+
1220
+ Big thanks to Peter Seebach for reporting and clearly diagnosing
1221
+ the problem. ........
1222
+ [ed3294b76bf7] <stable>
1223
+
1224
+ * Initialized merge tracking via "svnmerge" with revisions "1-146"
1225
+ from svn+ssh://jdavis@rubyforge.org/var/svn/ruby-pg/ruby-pg/trunk
1226
+ [ff6af5fc4dc3] <stable>
1227
+
1228
+ * Initialized merge tracking via "svnmerge" with revisions "1-146"
1229
+ from svn+ssh://jdavis@rubyforge.org/var/svn/ruby-pg/ruby-
1230
+ pg/trunk@146
1231
+ [1a7b63bacfee] <stable>
1232
+
1233
+ * ext/pg.c:
1234
+ Properly protect variables from garbage collection, preventing
1235
+ possible memory corruption.
1236
+
1237
+ Big thanks to Peter Seebach for reporting and clearly diagnosing the
1238
+ problem.
1239
+ [ed8927d7f45d]
1240
+
1241
+ * Rakefile:
1242
+ Applied build patch from Brett Neumeier. Thanks!
1243
+ [c7c5d25c851c]
1244
+
1245
+ 2008-07-24 Jeff Davis <davis.jeffrey@gmail.com>
1246
+
1247
+ * ext/pg.c:
1248
+ Fixed PGconn#setnonblocking
1249
+
1250
+ Thanks to Mohammad Ali (oldmoe) for the report.
1251
+ [48d2bdfcc630]
1252
+
1253
+ * ext/pg.c:
1254
+ Changed all temporary allocations to use ALLOC_N (heap allocation)
1255
+ rather than ALLOCA_N (stack allocation). In particular, this allows
1256
+ PGconn#escape_string to accept larger input strings without fear of
1257
+ exceeding the stack size.
1258
+
1259
+ Thanks to Brett Neumeier.
1260
+ [b2e1bc03aca5]
1261
+
1262
+ 2008-07-08 Jeff Davis <davis.jeffrey@gmail.com>
1263
+
1264
+ * ext/pg.c:
1265
+ Fix oversight in connect arguments for options and connect_timeout
1266
+ when passed in a hash. (Thanks Rob Holland for the bug report).
1267
+ [c775c24a75f9]
1268
+
1269
+ 2008-04-21 Jeff Davis <davis.jeffrey@gmail.com>
1270
+
1271
+ * ext/extconf.rb, pg.gemspec:
1272
+ * backtracked a small piece of the patch, to catch the condition
1273
+ where pg_config is not in the PATH on posix platforms.
1274
+ [b86f0f75181e]
1275
+
1276
+ * Rakefile, ext/extconf.rb, ext_helper.rb, pg.gemspec:
1277
+ * applied patch from Louis Lavena to improve the build process
1278
+ (particularly for windows).
1279
+ [b3a05d09fb27]
1280
+
1281
+ * spec/data/random_binary_data, spec/pgconn_spec.rb,
1282
+ spec/pgresult_spec.rb:
1283
+ * added some tests for binary data
1284
+ [7579885aff18]
1285
+
1286
+ 2008-03-20 Jeff Davis <davis.jeffrey@gmail.com>
1287
+
1288
+ * ext/pg.c, spec/pgconn_spec.rb:
1289
+ * added PGconn#cancel() -> String
1290
+ * added test for PGconn#cancel()
1291
+ [de58e242dd99]
1292
+
1293
+ * ext/pg.c, spec/pgconn_spec.rb:
1294
+ * added PGconn.connect_start(...) -> PGconn
1295
+ * added test for PGconn.connect_start()
1296
+ * refactored to separate the complexity of parsing the connection
1297
+ arguments
1298
+ * Removed some superfluous code for old versions of Ruby that don't
1299
+ support rb_define_alloc_func(). Those versions of Ruby most
1300
+ likely don't work anyway, and I'm not testing them.
1301
+ [778892302876]
1302
+
1303
+ 2008-03-19 Jeff Davis <davis.jeffrey@gmail.com>
1304
+
1305
+ * spec/data/expected_trace.out:
1306
+ * forgot to add the expected output to the repository, so one
1307
+ test was failing. Corrected now.
1308
+ [630cca5e74c1]
1309
+
1310
+ * ext/pg.c:
1311
+ This commmit just cleans up indenting and coding conventions. It's
1312
+ a big patch, but does nothing meaningful.
1313
+ [661ed2fea9e2]
1314
+
1315
+ 2008-03-18 Jeff Davis <davis.jeffrey@gmail.com>
1316
+
1317
+ * BSD, README, ext/compat.c, ext/compat.h, ext/extconf.rb,
1318
+ ext/mkrf_config.rb, ext/pg.c, ext/pg.h, pg.gemspec,
1319
+ spec/pgconn_spec.rb, spec/pgresult_spec.rb:
1320
+ merged ruby-pg/trunk rev 123:146 with ruby-pg/branches/stable
1321
+ [f9cd915ea427] <stable>
1322
+
1323
+ 2008-03-17 Jeff Davis <davis.jeffrey@gmail.com>
1324
+
1325
+ * ext/mkrf_config.rb:
1326
+ re-adding mkrf_config.rb
1327
+ [d821d50b7d95]
1328
+
1329
+ * ext/mkrf_config.rb:
1330
+ temporarily removing mkrf_config.rb and will re-add it in the next
1331
+ revision. This is an attempt to fix what may be a repository
1332
+ problem.
1333
+ [a66f44648857]
1334
+
1335
+ * COPYING, README.windows, ext/extconf.rb, ext/pg.c, ext/pg.h,
1336
+ spec/pgconn_spec.rb, spec/pgresult_spec.rb:
1337
+ merged ruby-pg/trunk rev 123:125 with ruby-pg/branches/stable
1338
+ [bae01401c92b] <stable>
1339
+
1340
+ * ext/compat.c, ext/compat.h, ext/extconf.rb, ext/pg.c, pg.gemspec:
1341
+ * 7.3 compatibility fixes
1342
+ * cleanup
1343
+ [c8752b1a33cd]
1344
+
1345
+ * ext/pg.c:
1346
+ * Added PGconn#reset_start
1347
+ * Added PGconn#reset_poll
1348
+ * Added PGconn#socket
1349
+ * Added PGconn#connect_poll (needs docs)
1350
+ [4aa1190e1873]
1351
+
1352
+ 2008-03-12 Jeff Davis <davis.jeffrey@gmail.com>
1353
+
1354
+ * spec/pgconn_spec.rb:
1355
+ * added SQLSTATE test
1356
+ * added binary format test
1357
+ [1224350cdcb6]
1358
+
1359
+ * README:
1360
+ * updated the README to reflect the fact that the pg module is
1361
+ supported by ActiveRecord now.
1362
+ [639f8bf03621]
1363
+
1364
+ 2008-03-11 Jeff Davis <davis.jeffrey@gmail.com>
1365
+
1366
+ * BSD, COPYING, README, ext/pg.c:
1367
+ * tried to make it easier to find the license information
1368
+ [1fd6244025c5]
1369
+
1370
+ 2008-03-10 Jeff Davis <davis.jeffrey@gmail.com>
1371
+
1372
+ * ext/pg.c, spec/pgconn_spec.rb, spec/pgresult_spec.rb:
1373
+ * add better checking to make sure that PGconn#trace is passed a
1374
+ stream that can provide a valid and writable file descriptor
1375
+ * added test case for PGconn#trace
1376
+ [1c4f58ec2264]
1377
+
1378
+ * ext/pg.c:
1379
+ * corrected handling of bytea when passed in binary format
1380
+ * corrected handling of +nil+ values passed as type or format
1381
+ specifiers when using the array-of-hashes form of parameterization
1382
+ for PGconn#exec
1383
+ [e94ce7f92a06]
1384
+
1385
+ * ext/pg.c:
1386
+ * make PGconn#trace accept any object that provides a writable
1387
+ file descriptor via the method "fileno".
1388
+ [221e68f16f2d]
1389
+
1390
+ * ext/pg.c:
1391
+ * Added PGconn#trace(filename)
1392
+ [2e722b22b4bc]
1393
+
1394
+ 2008-03-07 Jeff Davis <davis.jeffrey@gmail.com>
1395
+
1396
+ * ext/extconf.rb, ext/mkrf_config.rb:
1397
+ * Added check to find pg_config. If not found, throw an error.
1398
+ This should make it more obvious when pg_config is not in your
1399
+ path.
1400
+
1401
+ * Added proper check on MAC OS X so that it gives the correct
1402
+ warning on ppc when ARCHFLAGS isn't set.
1403
+ [9b1308e85390]
1404
+
1405
+ 2008-02-22 Jeff Davis <davis.jeffrey@gmail.com>
1406
+
1407
+ * ext/pg.c, ext/pg.h:
1408
+ * fixed PGconn#trace
1409
+ [480eae4733ff]
1410
+
1411
+ 2008-02-21 Jeff Davis <davis.jeffrey@gmail.com>
1412
+
1413
+ * ext/pg.c:
1414
+ * added PGconn#set_notice_receiver{ |result| ... }
1415
+ - This is a more powerful form of PGconn#set_notice_processor
1416
+ * cleaned up PGconn#set_notice_processor
1417
+ * removed superfluous debugging from PGconn#transaction
1418
+ * fixed PGresult#result_error_field
1419
+ [a6a1c8613b31]
1420
+
1421
+ 2008-02-19 Jeff Davis <davis.jeffrey@gmail.com>
1422
+
1423
+ * ext/mkrf_config.rb:
1424
+ quick change
1425
+ [8a6e663a70f7]
1426
+
1427
+ * ext/mkrf_config.rb:
1428
+ fix escaping of paths on windows (another try)
1429
+ [5fc41a8f71f0]
1430
+
1431
+ 2008-02-18 Jeff Davis <davis.jeffrey@gmail.com>
1432
+
1433
+ * ext/mkrf_config.rb, ext/pg.c:
1434
+ * attempted some compatibility fixes for windows
1435
+ * fixed some warnings
1436
+ [a465fe9f95a3]
1437
+
1438
+ 2008-02-13 Jeff Davis <davis.jeffrey@gmail.com>
1439
+
1440
+ * ext/mkrf_config.rb:
1441
+ * better quoting and error handling when invoking other programs,
1442
+ e.g. pg_config
1443
+ [5a91f5660c17]
1444
+
1445
+ * ext/mkrf_config.rb:
1446
+ quote include and library paths
1447
+ [5289d5034472]
1448
+
1449
+ * ext/mkrf_config.rb:
1450
+ * created a mkrf_config.rb. I am attempting to transition away from
1451
+ mkmf to mkrf
1452
+ [ed53517514b1]
1453
+
1454
+ 2008-02-11 Jeff Davis <davis.jeffrey@gmail.com>
1455
+
1456
+ * README.windows, ext/extconf.rb, ext/pg.h:
1457
+ * windows fixes (thanks Daniel Berger!)
1458
+ [21bf96d0f702]
1459
+
1460
+ * spec/pgconn_spec.rb, spec/pgresult_spec.rb:
1461
+ * fix temporary postgresql test installation in test.
1462
+ [9d0a23cf2113]
1463
+
1464
+ 2008-02-08 Jeff Davis <davis.jeffrey@gmail.com>
1465
+
1466
+ * ext/pg.c:
1467
+ * properly retrieve binary data from result sets
1468
+ [7fcd53437c79]
1469
+
1470
+ 2008-02-05 Jeff Davis <davis.jeffrey@gmail.com>
1471
+
1472
+ * Rakefile, ext/compat.h, ext/pg.c, pg.gemspec, ruby-pg.gemspec,
1473
+ sample/losample.rb, sample/psql.rb, sample/test1.rb,
1474
+ sample/test2.rb, sample/test4.rb, spec/pgconn_spec.rb,
1475
+ spec/pgresult_spec.rb, tests/pg_spec.rb:
1476
+ merged ruby-pg/trunk rev 109:121 with ruby-pg/branches/stable
1477
+ [83e5013eccc8] <stable>
1478
+
1479
+ * ext/compat.h:
1480
+ fixed bug caused by a typo. HAVE_LOCREATE should have been
1481
+ HAVE_LO_CREATE
1482
+ [295c477ed74f]
1483
+
1484
+ 2008-02-01 Jeff Davis <davis.jeffrey@gmail.com>
1485
+
1486
+ * ext/pg.c, spec/pgresult_spec.rb:
1487
+ * made exec, exec_prepared, send_query, and send_prepared with
1488
+ parameters accept nil as NULL
1489
+ * updated comments and tests to reflect that
1490
+ [ef2214d7f448]
1491
+
1492
+ * ext/pg.c, sample/losample.rb, sample/psql.rb, sample/test1.rb,
1493
+ sample/test2.rb, sample/test4.rb:
1494
+ * Corrected a comment.
1495
+ * Cleaned up the sample directory somewhat. It's still out of date,
1496
+ though.
1497
+ [7303b8165a37]
1498
+
1499
+ 2008-01-31 Jeff Davis <davis.jeffrey@gmail.com>
1500
+
1501
+ * ext/pg.c:
1502
+ * removed duplicate definition of PGconn.open
1503
+ [b3ad2112a91e]
1504
+
1505
+ * spec/pgconn_spec.rb, spec/pgresult_spec.rb, tests/pgconn_spec.rb,
1506
+ tests/pgresult_spec.rb:
1507
+ more test improvements
1508
+ [ce9c0e52eec6]
1509
+
1510
+ * Rakefile, tests/pg_spec.rb, tests/pgconn_spec.rb:
1511
+ renamed pg_spec to pgconn_spec
1512
+ [97cbdebaeb11]
1513
+
1514
+ * Rakefile, tests/pg_spec.rb, tests/pgresult_spec.rb:
1515
+ * Added some tests
1516
+ * Added a Rakefile
1517
+ [1cb0537730bf]
1518
+
1519
+ 2008-01-30 Jeff Davis <davis.jeffrey@gmail.com>
1520
+
1521
+ * ext/pg.c:
1522
+ * added PGconn.conndefaults
1523
+ * replaced a macro with a function to make it more understandable
1524
+ [29b827c7dbd0]
1525
+
1526
+ 2008-01-29 Jeff Davis <davis.jeffrey@gmail.com>
1527
+
1528
+ * ext/pg.c:
1529
+ corrected the tainting of some strings returned by the database
1530
+ [c18f38225bc7]
1531
+
1532
+ * ruby-pg.gemspec:
1533
+ changed gem name from 'ruby-pg' to just 'pg'
1534
+ [56cd8c6ee046]
1535
+
1536
+ 2008-01-28 Jeff Davis <davis.jeffrey@gmail.com>
1537
+
1538
+ * pg.gemspec:
1539
+ made a pg.gemspec so that people can build 'pg' gem
1540
+ [a9097dead780]
1541
+
1542
+ * ext/pg.c:
1543
+ merged ruby-pg/trunk rev 104 with ruby-pg/branches/stable
1544
+ [abfe9a457946] <stable>
1545
+
1546
+ 2008-01-26 Jeff Davis <davis.jeffrey@gmail.com>
1547
+
1548
+ * ext/pg.c:
1549
+ changed exception type for empty data structures
1550
+ [cfdcfcd445ab]
1551
+
1552
+ 2008-01-25 Jeff Davis <davis.jeffrey@gmail.com>
1553
+
1554
+ * ext/pg.c:
1555
+ * added PGconn#async_exec and alias PGconn#async_query
1556
+ * added PGconn#get_last_result
1557
+ * properly check index bounds in pgresult_aref ( PGresult#[] )
1558
+ * PGresult#getvalue now returns nil instead of empty string for NULL
1559
+ [81cd03f8a2c3]
1560
+
1561
+ * ext/pg.c:
1562
+ added PGresult#cmdtuples as alias for PGresult#cmd_tuples
1563
+
1564
+ This is for better compatibility with ActiveRecord.
1565
+ [29d775393e88]
1566
+
1567
+ * ext/pg.c:
1568
+ Added:
1569
+ * PGresult#num_tuples as alias for PGresult#ntuples
1570
+ * PGresult#num_fields as alias for PGresult#nfields
1571
+
1572
+ This should result in easier compatibility with ActiveRecord
1573
+ [eac7df0aa291]
1574
+
1575
+ 2008-01-24 Jeff Davis <davis.jeffrey@gmail.com>
1576
+
1577
+ * README.OS_X, README.windows, ext/extconf.rb:
1578
+ moved a few minor changes over before release
1579
+ [c7ddb58579d3] <stable>
1580
+
1581
+ * README.OS_X, README.windows, ext/extconf.rb:
1582
+ Added README.windows and README.OS_X Changed special case in
1583
+ extconf.rb from '/ms/libpq.lib' to '/ms/libpq'
1584
+ [7908e778e7c3]
1585
+
1586
+ * ext/compat.c, ext/compat.h, ext/extconf.rb, ext/pg.c, ext/pg.h,
1587
+ tests/pg_spec.rb, tests/tc_postgres.rb:
1588
+ merged revision 77:HEAD of ruby-pg/trunk to ruby-pg/branches/stable
1589
+ [8df9da92380e] <stable>
1590
+
1591
+ * ext/extconf.rb:
1592
+ Another change to improve windows compatibility. Thanks to Laurent
1593
+ Francioli.
1594
+ [7cc13a1f3010]
1595
+
1596
+ * ext/extconf.rb:
1597
+ fixed typo
1598
+ [ee0577472b67]
1599
+
1600
+ * ext/extconf.rb:
1601
+ My previous fix for OS X compatibility didn't work well enough.
1602
+
1603
+ The only effective solution is to generate a warning message and
1604
+ tell the user what to do. That's what this commit does.
1605
+ [eaf3b1825d56]
1606
+
1607
+ 2008-01-23 Jeff Davis <davis.jeffrey@gmail.com>
1608
+
1609
+ * ext/compat.h, ext/pg.h:
1610
+ * had to include that file conditionally in compat.h for
1611
+ postgresql 7.3 compatibility
1612
+ [12b2568a0ada]
1613
+
1614
+ * ext/pg.h:
1615
+ * included an additional file so that it works with PostgreSQL
1616
+ 8.3
1617
+ [34dd04d21a78]
1618
+
1619
+ * ext/extconf.rb, ext/pg.c:
1620
+ * added PGconn.quote_ident to quote identifiers
1621
+ * added special case in extconf to build correctly on windows
1622
+ [4cf66b7302bf]
1623
+
1624
+ 2008-01-22 Jeff Davis <davis.jeffrey@gmail.com>
1625
+
1626
+ * ext/pg.c:
1627
+ * made PGconn#query alias for PGconn#exec
1628
+ [081e4d8ee394]
1629
+
1630
+ * ext/extconf.rb, ext/pg.c:
1631
+ * Detect if compiling on OS X, and if so set $ARCHFLAGS correctly.
1632
+ This should resolve the problem of building on OS X.
1633
+ * A couple comment fixes.
1634
+ [4774578059e1]
1635
+
1636
+ 2008-01-21 Jeff Davis <davis.jeffrey@gmail.com>
1637
+
1638
+ * ext/pg.c:
1639
+ made conn.block cleaner and it should be more portable.
1640
+ [204f4b591614]
1641
+
1642
+ 2008-01-18 Jeff Davis <davis.jeffrey@gmail.com>
1643
+
1644
+ * ext/extconf.rb, ext/pg.c:
1645
+ Miscellaneous changes:
1646
+ * in 'pg' module, added PGconn#close as an alias for PGconn#finish,
1647
+ for easier compatibility with AR adapter.
1648
+ * removed extra CFLAGS because they were causing portability problems.
1649
+ [449d54289f07]
1650
+
1651
+ 2008-01-17 Jeff Davis <davis.jeffrey@gmail.com>
1652
+
1653
+ * tests/pg_spec.rb, tests/tc_postgres.rb:
1654
+ started creating a rspec test, more tests to come later
1655
+ [aadd4008d2e3]
1656
+
1657
+ * ext/pg.c:
1658
+ properly free memory in conn.get_copy_data
1659
+ [4f276bb9c4b1]
1660
+
1661
+ 2008-01-15 Jeff Davis <davis.jeffrey@gmail.com>
1662
+
1663
+ * ext/pg.c, ext/pg.h:
1664
+ Added conn.block( [ timeout ] ) -> Boolean
1665
+ [95d9ff13c269]
1666
+
1667
+ 2008-01-14 Jeff Davis <davis.jeffrey@gmail.com>
1668
+
1669
+ * ext/pg.c:
1670
+ Added conn.transaction{ |conn| ... }
1671
+ [4cefa3b1ecbb]
1672
+
1673
+ * ext/compat.c, ext/compat.h, ext/extconf.rb, ext/pg.c, ext/pg.h:
1674
+ Support for PostgreSQL 7.3.
1675
+ [ae8c3b66c48d]
1676
+
1677
+ 2008-01-09 Jeff Davis <davis.jeffrey@gmail.com>
1678
+
1679
+ * compat-ruby-postgres/extconf.rb, compat-ruby-postgres/libpq-
1680
+ compat.c, compat-ruby-postgres/postgres.c, compat-ruby-postgres
1681
+ /type-oids.h:
1682
+ removed extra directory that was left in the merge
1683
+ [8eb1346cb9aa] <stable>
1684
+
1685
+ * README, ext/compat.c, ext/compat.h, ext/extconf.rb, ext/pg.c, ruby-
1686
+ pg.gemspec:
1687
+ merged ruby-pg/trunk rev 69 to ruby-pg/branches/stable
1688
+ [d6d19e5371d4] <stable>
1689
+
1690
+ 2008-01-08 Jeff Davis <davis.jeffrey@gmail.com>
1691
+
1692
+ * ext/pg.c:
1693
+ Added:
1694
+ * conn.set_client_encoding
1695
+ * conn.get_client_encoding
1696
+
1697
+ get_client_encoding returns a string, and the PQclientEncoding
1698
+ function returns an encoding ID, which is why I didn't use the name
1699
+ client_encoding. That leaves room later to add a wrapper for the
1700
+ libpq PQclientEncoding if there is a need, without a name conflict.
1701
+ [1fd8b2aaac4c]
1702
+
1703
+ * ext/pg.c:
1704
+ Added:
1705
+ * conn.make_empty_pgresult(status)
1706
+ * conn.flush
1707
+ * conn.set_error_verbosity
1708
+ [5c0a63028583]
1709
+
1710
+ 2008-01-07 Jeff Davis <davis.jeffrey@gmail.com>
1711
+
1712
+ * ext/pg.c:
1713
+ fixed a few method defines for async query processing
1714
+ [40270de77f48]
1715
+
1716
+ * ext/pg.c:
1717
+ Change conn.exec to use PQexec if no parameters are passed, and
1718
+ use PQexecParams if optional parameters are passed.
1719
+
1720
+ Change conn.send_query to use PQsendQuery if no parameters are
1721
+ passed, and use PQsendQueryParams if optional parameters are
1722
+ passed.
1723
+ [d05d9f2042d7]
1724
+
1725
+ * compat-ruby-postgres/extconf.rb, compat-ruby-postgres/libpq-
1726
+ compat.c, compat-ruby-postgres/postgres.c, compat-ruby-postgres
1727
+ /type-oids.h, ruby-pg.gemspec:
1728
+ Cleanup after the repository reorganization.
1729
+ [a531a7bc9241]
1730
+
1731
+ * COPYING, COPYING.txt, ChangeLog, Contributors, GPL, LICENSE,
1732
+ MANIFEST, README, README.ja, compat-ruby-postgres/extconf.rb,
1733
+ compat-ruby-postgres/libpq-compat.c, compat-ruby-
1734
+ postgres/postgres.c, compat-ruby-postgres/type-oids.h,
1735
+ doc/postgres.html, doc/postgres.jp.html, ext/compat.c, ext/compat.h,
1736
+ ext/extconf.rb, ext/pg.c, ext/pg.h, ruby-pg.gemspec,
1737
+ sample/losample.rb, sample/psql.rb, sample/psqlHelp.rb,
1738
+ sample/test1.rb, sample/test2.rb, sample/test4.rb,
1739
+ tests/tc_postgres.rb:
1740
+ Split 'ruby-pg' module and 'postgres' module into separate parts of
1741
+ the repository. They will be maintained separately, and be released
1742
+ as separate gems from this point forward.
1743
+
1744
+ One reason for this change is because we need separate gems. If we
1745
+ distribute both modules as one gem, the documentation is not
1746
+ properly generated due to class name conflicts.
1747
+
1748
+ Another reason is to reduce confusion between the two modules.
1749
+
1750
+ Also, I don't plan on making many improvements (aside from bugfixes
1751
+ and portability issues) to the old 'postgres' code. I'd like to get
1752
+ it to a stable state, and leave it alone. Meanwhile, the 'pg' module
1753
+ can be developed on a faster timeline.
1754
+ [aafc8cf17567]
1755
+
1756
+ * COPYING, COPYING.txt, ChangeLog, Contributors, GPL, LICENSE,
1757
+ MANIFEST, README, README.ja, compat-ruby-postgres/extconf.rb,
1758
+ compat-ruby-postgres/libpq-compat.c, compat-ruby-
1759
+ postgres/postgres.c, compat-ruby-postgres/type-oids.h,
1760
+ doc/postgres.html, doc/postgres.jp.html, ext/compat.c, ext/compat.h,
1761
+ ext/extconf.rb, ext/pg.c, ext/pg.h, ruby-pg.gemspec,
1762
+ sample/losample.rb, sample/psql.rb, sample/psqlHelp.rb,
1763
+ sample/test1.rb, sample/test2.rb, sample/test4.rb,
1764
+ tests/tc_postgres.rb:
1765
+ Split 'ruby-pg' module and 'postgres' module into separate parts of
1766
+ the repository. They will be maintained separately, and be released
1767
+ as separate gems from this point forward.
1768
+
1769
+ One reason for this change is because we need separate gems. If we
1770
+ distribute both modules as one gem, the documentation is not
1771
+ properly generated due to class name conflicts.
1772
+
1773
+ Another reason is to reduce confusion between the two modules.
1774
+
1775
+ Also, I don't plan on making many improvements (aside from bugfixes
1776
+ and portability issues) to the old 'postgres' code. I'd like to get
1777
+ it to a stable state, and leave it alone. Meanwhile, the 'pg' module
1778
+ can be developed on a faster timeline.
1779
+ [7716d24a143b] <stable>