summaryrefslogtreecommitdiff
path: root/ext/DB_File/Changes
blob: ad54382d6359ba5338b117879f6efa86c42d3c1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298

0.1

    First Release.

0.2

    When DB_File is opening a database file it no longer terminates the
    process if dbopen returned an error. This allows file protection
    errors to be caught at run time. Thanks to Judith Grass
    <grass@cybercash.com> for spotting the bug.

0.3

    Added prototype support for multiple btree compare callbacks.

1.0

    DB_File has been in use for over a year. To reflect that, the
    version number has been incremented to 1.0.

    Added complete support for multiple concurrent callbacks.

    Using the push method on an empty list didn't work properly. This
    has been fixed.

1.01

    Fixed a core dump problem with SunOS.

    The return value from TIEHASH wasn't set to NULL when dbopen
    returned an error.

1.02

    Merged OS/2 specific code into DB_File.xs

    Removed some redundant code in DB_File.xs.

    Documentation update.

    Allow negative subscripts with RECNO interface.

    Changed the default flags from O_RDWR to O_CREAT|O_RDWR.

    The example code which showed how to lock a database needed a call
    to sync added. Without it the resultant database file was empty.

    Added get_dup method.

1.03

    Documentation update.

    DB_File now imports the constants (O_RDWR, O_CREAT etc.) from Fcntl
    automatically.

    The standard hash function exists is now supported.

    Modified the behavior of get_dup. When it returns an associative
    array, the value is the count of the number of matching BTREE
    values.

1.04

    Minor documentation changes.

    Fixed a bug in hash_cb. Patches supplied by Dave Hammen,
    <hammen@gothamcity.jsc.nasa.govt>.

    Fixed a bug with the constructors for DB_File::HASHINFO,
    DB_File::BTREEINFO and DB_File::RECNOINFO. Also tidied up the
    constructors to make them -w clean.

    Reworked part of the test harness to be more locale friendly.

1.05

    Made all scripts in the documentation strict and -w clean.

    Added logic to DB_File.xs to allow the module to be built after
    Perl is installed.

1.06

    Minor namespace cleanup: Localized PrintBtree.

1.07

    Fixed bug with RECNO, where bval wasn't defaulting to "\n".

1.08

    Documented operation of bval.

1.09

    Minor bug fix in DB_File::HASHINFO, DB_File::RECNOINFO and
    DB_File::BTREEINFO.

    Changed default mode to 0666.

1.10

    Fixed fd method so that it still returns -1 for in-memory files
    when db 1.86 is used.

1.11

    Documented the untie gotcha.

1.12

    Documented the incompatibility with version 2 of Berkeley DB.

1.13

    Minor changes to DB_FIle.xs and DB_File.pm

1.14

    Made it illegal to tie an associative array to a RECNO database and
    an ordinary array to a HASH or BTREE database.

1.15

    Patch from Gisle Aas <gisle@aas.no> to suppress "use of undefined
    value" warning with db_get and db_seq.

    Patch from Gisle Aas <gisle@aas.no> to make DB_File export only the
    O_* constants from Fcntl.

    Removed the DESTROY method from the DB_File::HASHINFO module.

    Previously DB_File hard-wired the class name of any object that it
    created to "DB_File". This makes sub-classing difficult. Now
    DB_File creats objects in the namespace of the package it has been
    inherited into.


1.16

   A harmless looking tab was causing Makefile.PL to fail on AIX 3.2.5

    Small fix for the AIX strict C compiler XLC which doesn't like
    __attribute__ being defined via proto.h and redefined via db.h. Fix
    courtesy of Jarkko Hietaniemi.

1.50

    DB_File can now build with either DB 1.x or 2.x, but not both at
    the same time.

1.51

    Fixed the test harness so that it doesn't expect DB_File to have
    been installed by the main Perl build.


    Fixed a bug in mapping 1.x O_RDONLY flag to 2.x DB_RDONLY equivalent

1.52

   Patch from Nick Ing-Simmons now allows DB_File to build on NT.
   Merged 1.15 patch.

1.53

   Added DB_RENUMBER to flags for recno.

1.54

   Fixed a small bug in the test harness when run under win32
   The emulation of fd when useing DB 2.x was busted.

1.55
   Merged 1.16 changes.

1.56
   Documented the Solaris 2.5 mutex bug

1.57
   If Perl has been compiled with Threads support,the symbol op will be
   defined. This clashes with a field name in db.h, so it needs to be
   #undef'ed before db.h is included.

1.58
   Tied Array support was enhanced in Perl 5.004_57. DB_File now
   supports PUSH,POP,SHIFT,UNSHIFT & STORESIZE.

   Fixed a problem with the use of sv_setpvn. When the size is
   specified as 0, it does a strlen on the data.  This was ok for DB
   1.x, but isn't for DB 2.x.

1.59
   Updated the license section.

   Berkeley DB 2.4.10 disallows zero length keys. Tests 32 & 42 in
   db-btree.t and test 27 in db-hash.t failed because of this change.
   Those tests have been zapped.

   Added dbinfo to the distribution.

1.60
   Changed the test to check for full tied array support

1.61 19th November 1998

   Added a note to README about how to build Berkeley DB 2.x when
   using HP-UX.
   Minor modifications to get the module to build with DB 2.5.x
   Fixed a typo in the definition of O_RDONLY, courtesy of Mark Kettenis.

1.62 30th November 1998

   Added hints/dynixptx.pl.
   Fixed typemap -- 1.61 used PL_na instead of na

1.63 19th December 1998

   * Fix to allow DB 2.6.x to build with DB_File
   * Documentation updated to use push,pop etc in the RECNO example &
     to include the find_dup & del_dup methods.

1.64 21st February 1999

   * Tidied the 1.x to 2.x flag mapping code.
   * Added a patch from Mark Kettenis <kettenis@wins.uva.nl> to fix a flag
     mapping problem with O_RDONLY on the Hurd
   * Updated the message that db-recno.t prints when tests 51, 53 or 55 fail.

1.65 6th March 1999

   * Fixed a bug in the recno PUSH logic.
   * The BOOT version check now needs 2.3.4 when using Berkeley DB version 2

1.66 15th March 1999

   * Added DBM Filter code

1.67 6th June 1999

   * Added DBM Filter documentation to DB_File.pm

   * Fixed DBM Filter code to work with 5.004

   * A few instances of newSVpvn were used in 1.66. This isn't available in
     Perl 5.004_04 or earlier. Replaced with newSVpv.

1.68 22nd July 1999

   * Merged changes from 5.005_58 

   * Fixed a bug in R_IBEFORE & R_IAFTER procesing in Berkeley DB
     2 databases.

   * Added some of the examples in the POD into the test harness.

1.69 3rd August 1999

   * fixed a bug in push -- DB_APPEND wasn't working properly.

   * Fixed the R_SETCURSOR bug introduced in 1.68

   * Added a new Perl variable $DB_File::db_ver
   
1.70 4th August 1999

   * Initialise $DB_File::db_ver and $DB_File::db_version with
     GV_ADD|GV_ADDMULT -- bug spotted by Nick Ing-Simmons.

   * Added a BOOT check to test for equivalent versions of db.h &
     libdb.a/so.

1.71 7th September 1999

   * Fixed a bug that prevented 1.70 from compiling under win32

   * Updated to support Berkeley DB 3.x

   * Updated dbinfo for Berkeley DB 3.x file formats.

1.72 16th January 2000

   * Added hints/sco.pl

   * The module will now use XSLoader when it is available. When it
     isn't it will use DynaLoader.

   * The locking section in DB_File.pm has been discredited. Many thanks
     to David Harris for spotting the underlying problem, contributing
     the updates to the documentation and writing DB_File::Lock (available
     on CPAN).

1.73 27th April 2000

   * Added support in version.c for building with threaded Perl.