Make DB_File use -ldb on MSWin32 with a gcc compiler
[p5sagit/p5-mst-13.2.git] / ext / DB_File / Changes
CommitLineData
045291aa 1
9c095db2 2
083e9212 31.817 27 March 2008
4
5 * Updated dbinfo
6
7 * Applied core patch 32299 - Re-apply change #30562
8
9 * Applied core patch 32208
10
11 * Applied core patch 32884 - use MM->parse_version() in Makefile.PL
12
13 * Applied core patch 32883 - Silence new warning grep in void context warning
14
15 * Applied core patch 32704 to remove use of PL_na in typemap
16
17 * Applied core patch 30562 to fix a build issue on OSF
18
10261a36 191.816 28 October 2007
20
21 * Clarified the warning about building with a different version of
22 Berkeley DB that is used at runtime.
083e9212 23
10261a36 24 * Also made the boot version check less strict.
25 [rt.cpan.org #30013]
26
f1aa208b 271.815 4 February 2007
28
29 * A few casting cleanups for building with C++ from Steve Peters.
30
31 * Fixed problem with recno which happened if you changed directory after
32 opening the database. Problem reported by Andrew Pam.
33
34
c36891e2 351.814 11 November 2005
36
37 * Fix from Dominic Dunlop to tidy up an OS-X specific warning in
38 db-btree.t.
39
40 * Silenced a warning about $DB_File::Error only being used once.
41 Issue spotted by Dominic Dunlop.
42
d6067fe3 431.813 31st October 2005
44
45 * Updates for Berkeley DB 4.4
46
8e092815 471.812 9th October 2005
48
49 * Added libscan to Makefile.PL
50
51 * Fixed test failing under windows
52
dcdb9d1f 531.811 12th March 2005
54
55 * Fixed DBM filter bug in seq
56
32babee0 571.810 7th August 2004
58
59 * Fixed db-hash.t for Cygwin
60
61 * Added substr tests to db-hast.t
62
dcdb9d1f 63 * Documented AIX build problem in README.
64
9c095db2 651.809 20th June 2004
66
67 * Merged core patch 22258
68
69 * Merged core patch 22741
70
71 * Fixed core bug 30237.
72 Using substr to pass parameters to the low-level Berkeley DB interface
73 causes problems with Perl 5.8.1 or better.
74 typemap fix supplied by Marcus Holland-Moritz.
75
5bbd4290 761.808 22nd December 2003
77
78 * Added extra DBM Filter tests.
79
80 * Fixed a memory leak in ParseOpenInfo, which whould occur if the
81 opening of the database failed. Leak spotted by Adrian Enache.
82
6d02d21f 831.807 1st November 2003
84
85 * Fixed minor typos on pod documetation - reported by Jeremy Mates &
86 Mark Jason Dominus.
87
88 * dbinfo updated to report when a database is encrypted.
89
262eaca6 901.806 22nd October 2002
91
92 * Fixed problem when trying to build with a multi-threaded perl.
93
94 * Tidied up the recursion detetion code.
95
96 * merged core patch 17844 - missing dTHX declarations.
97
98 * merged core patch 17838
99
efc79c7d 1001.805 1st September 2002
045291aa 101
efc79c7d 102 * Added support to allow DB_File to build with Berkeley DB 4.1.X
045291aa 103
efc79c7d 104 * Tightened up the test harness to test that calls to untie don't generate
105 the "untie attempted while %d inner references still exist" warning.
045291aa 106
efc79c7d 107 * added code to guard against calling the callbacks (compare,hash & prefix)
108 recursively.
045291aa 109
efc79c7d 110 * pasing undef for the flags and/or mode when opening a database could cause
111 a "Use of uninitialized value in subroutine entry" warning. Now silenced.
045291aa 112
efc79c7d 113 * DBM filter code beefed up to cope with read-only $_.
045291aa 114
efc79c7d 1151.804 2nd June 2002
045291aa 116
efc79c7d 117 * Perl core patch 14939 added a new warning to "splice". This broke the
118 db-recno test harness. Fixed.
045291aa 119
efc79c7d 120 * merged core patches 16502 & 16540.
045291aa 121
efc79c7d 1221.803 1st March 2002
045291aa 123
efc79c7d 124 * Fixed a problem with db-btree.t where it complained about an "our"
125 variable redeclaation.
045291aa 126
efc79c7d 127 * FETCH, STORE & DELETE don't map the flags parameter into the
128 equivalent Berkeley DB function anymore.
045291aa 129
efc79c7d 1301.802 6th January 2002
045291aa 131
efc79c7d 132 * The message about some test failing in db-recno.t had the wrong test
133 numbers. Fixed.
045291aa 134
efc79c7d 135 * merged core patch 13942.
045291aa 136
efc79c7d 1371.801 26th November 2001
045291aa 138
efc79c7d 139 * Fixed typo in Makefile.PL
045291aa 140
efc79c7d 141 * Added "clean" attribute to Makefile.PL
142
1431.800 23rd November 2001
045291aa 144
efc79c7d 145 * use pport.h for perl backward compatability code.
045291aa 146
efc79c7d 147 * use new ExtUtils::Constant module to generate XS constants.
045291aa 148
efc79c7d 149 * upgrade Makefile.PL upgrade/downgrade code to toggle "our" with
150 "use vars"
045291aa 151
efc79c7d 1521.79 22nd October 2001
045291aa 153
efc79c7d 154 * Added a "local $SIG{__DIE__}" inside the eval that checks for
155 the presence of XSLoader s suggested by Andrew Hryckowin.
045291aa 156
efc79c7d 157 * merged core patch 12277.
045291aa 158
efc79c7d 159 * Changed NEXTKEY to not initialise the input key. It isn't used anyway.
045291aa 160
efc79c7d 1611.79 22nd October 2001
045291aa 162
efc79c7d 163 * Fixed test harness for cygwin
045291aa 164
efc79c7d 1651.78 30th July 2001
045291aa 166
efc79c7d 167 * the test in Makefile.PL for AIX used -plthreads. Should have been
168 -lpthreads
045291aa 169
efc79c7d 170 * merged Core patches
171 10372, 10335, 10372, 10534, 10549, 10643, 11051, 11194, 11432
045291aa 172
efc79c7d 173 * added documentation patch regarding duplicate keys from Andrew Johnson
045291aa 174
045291aa 175
efc79c7d 1761.77 26th April 2001
045291aa 177
efc79c7d 178 * AIX is reported to need -lpthreads, so Makefile.PL now checks for
179 AIX and adds it to the link options.
045291aa 180
efc79c7d 181 * Minor documentation updates.
045291aa 182
efc79c7d 183 * Merged Core patch 9176
045291aa 184
efc79c7d 185 * Added a patch from Edward Avis that adds support for splice with
186 recno databases.
045291aa 187
efc79c7d 188 * Modified Makefile.PL to only enable the warnings pragma if using perl
189 5.6.1 or better.
045291aa 190
efc79c7d 1911.76 15th January 2001
045291aa 192
efc79c7d 193 * Added instructions for using LD_PRELOAD to get Berkeley DB 2.x to work
194 with DB_File on Linux. Thanks to Norbert Bollow for sending details of
195 this approach.
045291aa 196
045291aa 197
efc79c7d 1981.75 17th December 2000
045291aa 199
efc79c7d 200 * Fixed perl core patch 7703
045291aa 201
efc79c7d 202 * Added suppport to allow DB_File to be built with Berkeley DB 3.2 --
203 btree_compare, btree_prefix and hash_cb needed to be changed.
045291aa 204
efc79c7d 205 * Updated dbinfo to support Berkeley DB 3.2 file format changes.
045291aa 206
045291aa 207
efc79c7d 2081.74 10th December 2000
045291aa 209
efc79c7d 210 * A "close" call in DB_File.xs needed parenthesised to stop win32 from
211 thinking it was one of its macros.
045291aa 212
efc79c7d 213 * Updated dbinfo to support Berkeley DB 3.1 file format changes.
045291aa 214
efc79c7d 215 * DB_File.pm & the test hasness now use the warnings pragma (when
216 available).
045291aa 217
efc79c7d 218 * Included Perl core patch 7703 -- size argument for hash_cb is different
219 for Berkeley DB 3.x
045291aa 220
efc79c7d 221 * Included Perl core patch 7801 -- Give __getBerkeleyDBInfo the ANSI C
222 treatment.
045291aa 223
efc79c7d 224 * @a = () produced the warning 'Argument "" isn't numeric in entersub'
225 This has been fixed. Thanks to Edward Avis for spotting this bug.
045291aa 226
efc79c7d 227 * Added note about building under Linux. Included patches.
045291aa 228
efc79c7d 229 * Included Perl core patch 8068 -- fix for bug 20001013.009
230 When run with warnings enabled "$hash{XX} = undef " produced an
231 "Uninitialized value" warning. This has been fixed.
045291aa 232
efc79c7d 2331.73 31st May 2000
045291aa 234
efc79c7d 235 * Added support in version.c for building with threaded Perl.
045291aa 236
efc79c7d 237 * Berkeley DB 3.1 has reenabled support for null keys. The test
238 harness has been updated to reflect this.
045291aa 239
efc79c7d 2401.72 16th January 2000
045291aa 241
efc79c7d 242 * Added hints/sco.pl
045291aa 243
efc79c7d 244 * The module will now use XSLoader when it is available. When it
245 isn't it will use DynaLoader.
045291aa 246
efc79c7d 247 * The locking section in DB_File.pm has been discredited. Many thanks
248 to David Harris for spotting the underlying problem, contributing
249 the updates to the documentation and writing DB_File::Lock (available
250 on CPAN).
045291aa 251
efc79c7d 2521.71 7th September 1999
045291aa 253
efc79c7d 254 * Fixed a bug that prevented 1.70 from compiling under win32
045291aa 255
efc79c7d 256 * Updated to support Berkeley DB 3.x
045291aa 257
efc79c7d 258 * Updated dbinfo for Berkeley DB 3.x file formats.
045291aa 259
efc79c7d 2601.70 4th August 1999
045291aa 261
efc79c7d 262 * Initialise $DB_File::db_ver and $DB_File::db_version with
263 GV_ADD|GV_ADDMULT -- bug spotted by Nick Ing-Simmons.
045291aa 264
efc79c7d 265 * Added a BOOT check to test for equivalent versions of db.h &
266 libdb.a/so.
045291aa 267
efc79c7d 2681.69 3rd August 1999
045291aa 269
efc79c7d 270 * fixed a bug in push -- DB_APPEND wasn't working properly.
045291aa 271
efc79c7d 272 * Fixed the R_SETCURSOR bug introduced in 1.68
045291aa 273
efc79c7d 274 * Added a new Perl variable $DB_File::db_ver
275
2761.68 22nd July 1999
045291aa 277
efc79c7d 278 * Merged changes from 5.005_58
045291aa 279
efc79c7d 280 * Fixed a bug in R_IBEFORE & R_IAFTER procesing in Berkeley DB
281 2 databases.
045291aa 282
efc79c7d 283 * Added some of the examples in the POD into the test harness.
045291aa 284
efc79c7d 2851.67 6th June 1999
045291aa 286
efc79c7d 287 * Added DBM Filter documentation to DB_File.pm
045291aa 288
efc79c7d 289 * Fixed DBM Filter code to work with 5.004
045291aa 290
efc79c7d 291 * A few instances of newSVpvn were used in 1.66. This isn't available in
292 Perl 5.004_04 or earlier. Replaced with newSVpv.
a9fd575d 293
efc79c7d 2941.66 15th March 1999
a9fd575d 295
efc79c7d 296 * Added DBM Filter code
a9fd575d 297
efc79c7d 2981.65 6th March 1999
299
300 * Fixed a bug in the recno PUSH logic.
301 * The BOOT version check now needs 2.3.4 when using Berkeley DB version 2
302
3031.64 21st February 1999
304
305 * Tidied the 1.x to 2.x flag mapping code.
306 * Added a patch from Mark Kettenis <kettenis@wins.uva.nl> to fix a flag
307 mapping problem with O_RDONLY on the Hurd
308 * Updated the message that db-recno.t prints when tests 51, 53 or 55 fail.
309
3101.63 19th December 1998
311
312 * Fix to allow DB 2.6.x to build with DB_File
313 * Documentation updated to use push,pop etc in the RECNO example &
314 to include the find_dup & del_dup methods.
315
3161.62 30th November 1998
317
318 Added hints/dynixptx.pl.
319 Fixed typemap -- 1.61 used PL_na instead of na
9d9477b1 320
3211.61 19th November 1998
322
323 Added a note to README about how to build Berkeley DB 2.x when
324 using HP-UX.
325 Minor modifications to get the module to build with DB 2.5.x
326 Fixed a typo in the definition of O_RDONLY, courtesy of Mark Kettenis.
327
efc79c7d 3281.60
329 Changed the test to check for full tied array support
6ca2e664 330
efc79c7d 3311.59
332 Updated the license section.
6ca2e664 333
efc79c7d 334 Berkeley DB 2.4.10 disallows zero length keys. Tests 32 & 42 in
335 db-btree.t and test 27 in db-hash.t failed because of this change.
336 Those tests have been zapped.
6ca2e664 337
efc79c7d 338 Added dbinfo to the distribution.
20896112 339
efc79c7d 3401.58
341 Tied Array support was enhanced in Perl 5.004_57. DB_File now
342 supports PUSH,POP,SHIFT,UNSHIFT & STORESIZE.
20896112 343
efc79c7d 344 Fixed a problem with the use of sv_setpvn. When the size is
345 specified as 0, it does a strlen on the data. This was ok for DB
346 1.x, but isn't for DB 2.x.
20896112 347
efc79c7d 3481.57
349 If Perl has been compiled with Threads support,the symbol op will be
350 defined. This clashes with a field name in db.h, so it needs to be
351 #undef'ed before db.h is included.
9fe6733a 352
efc79c7d 3531.56
354 Documented the Solaris 2.5 mutex bug
9fe6733a 355
efc79c7d 3561.55
357 Merged 1.16 changes.
9fe6733a 358
efc79c7d 3591.54
cad2e5aa 360
efc79c7d 361 Fixed a small bug in the test harness when run under win32
362 The emulation of fd when useing DB 2.x was busted.
cad2e5aa 363
efc79c7d 3641.53
cad2e5aa 365
efc79c7d 366 Added DB_RENUMBER to flags for recno.
cad2e5aa 367
efc79c7d 3681.52
2c2d71f5 369
efc79c7d 370 Patch from Nick Ing-Simmons now allows DB_File to build on NT.
371 Merged 1.15 patch.
2c2d71f5 372
efc79c7d 3731.51
2c2d71f5 374
efc79c7d 375 Fixed the test harness so that it doesn't expect DB_File to have
376 been installed by the main Perl build.
2c2d71f5 377
a62982a8 378
efc79c7d 379 Fixed a bug in mapping 1.x O_RDONLY flag to 2.x DB_RDONLY equivalent
a62982a8 380
efc79c7d 3811.50
e07e3419 382
efc79c7d 383 DB_File can now build with either DB 1.x or 2.x, but not both at
384 the same time.
e07e3419 385
efc79c7d 3861.16
e07e3419 387
efc79c7d 388 A harmless looking tab was causing Makefile.PL to fail on AIX 3.2.5
e07e3419 389
efc79c7d 390 Small fix for the AIX strict C compiler XLC which doesn't like
391 __attribute__ being defined via proto.h and redefined via db.h. Fix
392 courtesy of Jarkko Hietaniemi.
e07e3419 393
efc79c7d 3941.15
039d031f 395
efc79c7d 396 Patch from Gisle Aas <gisle@aas.no> to suppress "use of undefined
397 value" warning with db_get and db_seq.
039d031f 398
efc79c7d 399 Patch from Gisle Aas <gisle@aas.no> to make DB_File export only the
400 O_* constants from Fcntl.
039d031f 401
efc79c7d 402 Removed the DESTROY method from the DB_File::HASHINFO module.
b90e71be 403
efc79c7d 404 Previously DB_File hard-wired the class name of any object that it
405 created to "DB_File". This makes sub-classing difficult. Now
406 DB_File creats objects in the namespace of the package it has been
407 inherited into.
b90e71be 408
b90e71be 409
efc79c7d 4101.14
b90e71be 411
efc79c7d 412 Made it illegal to tie an associative array to a RECNO database and
413 an ordinary array to a HASH or BTREE database.
88c74d4b 414
efc79c7d 4151.13
88c74d4b 416
efc79c7d 417 Minor changes to DB_FIle.xs and DB_File.pm
88c74d4b 418
efc79c7d 4191.12
3245f058 420
efc79c7d 421 Documented the incompatibility with version 2 of Berkeley DB.
3245f058 422
efc79c7d 4231.11
3245f058 424
efc79c7d 425 Documented the untie gotcha.
3245f058 426
efc79c7d 4271.10
3245f058 428
efc79c7d 429 Fixed fd method so that it still returns -1 for in-memory files
430 when db 1.86 is used.
3245f058 431
efc79c7d 4321.09
3245f058 433
efc79c7d 434 Minor bug fix in DB_File::HASHINFO, DB_File::RECNOINFO and
435 DB_File::BTREEINFO.
3245f058 436
efc79c7d 437 Changed default mode to 0666.
3245f058 438
efc79c7d 4391.08
73969f8f 440
efc79c7d 441 Documented operation of bval.
73969f8f 442
efc79c7d 4431.07
73969f8f 444
efc79c7d 445 Fixed bug with RECNO, where bval wasn't defaulting to "\n".
73969f8f 446
efc79c7d 4471.06
73969f8f 448
efc79c7d 449 Minor namespace cleanup: Localized PrintBtree.
73969f8f 450
efc79c7d 4511.05
c5da4faf 452
efc79c7d 453 Made all scripts in the documentation strict and -w clean.
c5da4faf 454
efc79c7d 455 Added logic to DB_File.xs to allow the module to be built after
456 Perl is installed.
c5da4faf 457
efc79c7d 4581.04
c5da4faf 459
efc79c7d 460 Minor documentation changes.
c5da4faf 461
efc79c7d 462 Fixed a bug in hash_cb. Patches supplied by Dave Hammen,
463 <hammen@gothamcity.jsc.nasa.govt>.
c5da4faf 464
efc79c7d 465 Fixed a bug with the constructors for DB_File::HASHINFO,
466 DB_File::BTREEINFO and DB_File::RECNOINFO. Also tidied up the
467 constructors to make them -w clean.
c5da4faf 468
efc79c7d 469 Reworked part of the test harness to be more locale friendly.
c5da4faf 470
efc79c7d 4711.03
39793c41 472
efc79c7d 473 Documentation update.
39793c41 474
efc79c7d 475 DB_File now imports the constants (O_RDWR, O_CREAT etc.) from Fcntl
476 automatically.
39793c41 477
efc79c7d 478 The standard hash function exists is now supported.
39793c41 479
efc79c7d 480 Modified the behavior of get_dup. When it returns an associative
481 array, the value is the count of the number of matching BTREE
482 values.
39793c41 483
efc79c7d 4841.02
c6c92ad9 485
efc79c7d 486 Merged OS/2 specific code into DB_File.xs
c6c92ad9 487
efc79c7d 488 Removed some redundant code in DB_File.xs.
c6c92ad9 489
efc79c7d 490 Documentation update.
07200f1b 491
efc79c7d 492 Allow negative subscripts with RECNO interface.
07200f1b 493
efc79c7d 494 Changed the default flags from O_RDWR to O_CREAT|O_RDWR.
07200f1b 495
efc79c7d 496 The example code which showed how to lock a database needed a call
497 to sync added. Without it the resultant database file was empty.
07200f1b 498
efc79c7d 499 Added get_dup method.
07200f1b 500
efc79c7d 5011.01
07200f1b 502
efc79c7d 503 Fixed a core dump problem with SunOS.
07200f1b 504
efc79c7d 505 The return value from TIEHASH wasn't set to NULL when dbopen
506 returned an error.
412e9c57 507
efc79c7d 5081.0
412e9c57 509
efc79c7d 510 DB_File has been in use for over a year. To reflect that, the
511 version number has been incremented to 1.0.
412e9c57 512
efc79c7d 513 Added complete support for multiple concurrent callbacks.
d63909e4 514
efc79c7d 515 Using the push method on an empty list didn't work properly. This
516 has been fixed.
d63909e4 517
efc79c7d 5180.3
d63909e4 519
efc79c7d 520 Added prototype support for multiple btree compare callbacks.
962cee9f 521
efc79c7d 5220.2
962cee9f 523
efc79c7d 524 When DB_File is opening a database file it no longer terminates the
525 process if dbopen returned an error. This allows file protection
526 errors to be caught at run time. Thanks to Judith Grass
527 <grass@cybercash.com> for spotting the bug.
962cee9f 528
efc79c7d 5290.1
d85a743d 530
efc79c7d 531 First Release.
d85a743d 532