Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 247 lines (223 sloc) 13.388 kb
c4059ec @theory Added missing version numbers to DBIx::Connector::Driver::SQLite and …
authored
1 Revision history for Perl extension DBIx::Connector.
706500c @theory New module to move connection handling from Catalyst::Model::DBI and …
authored
2
45787ba @theory Increment to v0.54.
authored
3 0.54
b1c94b5 @theory Exclude all Pod tests from the distro.
authored
4 - Removeed the Pod tests from the distribution.
46b346c @theory Restore doc indent to two spaces.
authored
5 - Fixed the example code for handling `rollback_error` exceptions in the
6 documentation to properly wrap the transaction in an exception
7 handler. Patch from Perlover (issue #32).
90dab9d @theory Just return on connection failure, don't assign a bad handle.
authored
8 - Improved handling of connection failures when RaiseError (or
9 HandleError) is not set. Thanks to Andreas Huber for the report and
10 fix.
07a3cb5 @theory Be specific that $_ is set locally.
authored
11 - Document that `$_` is set locally, not globally, in the methods that
12 set it. Suggested by William Lindley.
c9a2861 @theory Don't clear CachedKids on disconnect.
authored
13 - The disconnect method no longer longer remove entries from the DBI
14 handle's CachedKids attribute. That behavior appears to be a
15 workaround for a database we don't (yet) support.
45787ba @theory Increment to v0.54.
authored
16
0ff9c07 @theory Timestamp v0.53.
authored
17 0.53 2013-03-20T06:04:34Z
7e40e17 @theory Fix some typos, thanks to Mike O'Reagan.
authored
18 - Fixed some documentation typos, thanks to Mike O'Regan (Issue #22).
fe81577 @theory If we get no DBH from DBI->connect, don't try to use it.
authored
19 - Fixed issue where an connection failure caused an unhelpful error
20 (Issue #26).
350c96e @theory Increment to v0.53.
authored
21
2265fc1 @theory Timestamp v0.52.
authored
22 0.52 2012-05-29T18:32:42Z
5c92244 @theory Encapsulate DBI params in a closure.
authored
23 - The DBI params are now encapsulated in a code reference, rather than
24 stored as the passed array, so that the password is less likely to be
25 displayed in a dump. Idea borrowed from Rose::DB. Patch from Brad
26 Bowman.
cdf6385 @theory Eliminate v-string warning.
authored
27 - Eliminated warning about the non-portability of a v-string on older
28 Perls. Thanks to Mark Lawrence for the report (Issue #17).
7ff33a1 @theory Note doc fix in Changes.
authored
29 - Removed a couple of leftover examples of the `catch` feature removed
30 in v0.50. Thanks to Randy Stauner for the patch!
b89c183 @theory Eliminate use of qw() syntax errors on 5.1.7.
authored
31 - Eliminated more "Use of qw(...) as parentheses" syntax errors in tests
32 when running on Perl 5.17.
79c18bf @theory Move mention of DBI Callbacks attribute and give credit for the patch.
authored
33 - Add mention of DBI Callbacks parameter to the docs, as folks often ask
34 for this functionality, not realizing that the DBI already provides
35 it. Randy Stauner.
08bb82d @theory Increment to v0.52.
authored
36
e6441ae @theory Timestamp v0.51.
authored
37 0.51 2012-02-18T00:14:48Z
f19491f @theory Proper exception handling on Perl < 5.14.
authored
38 - Fixed internal exception handling on Perls less than 5.14, where some
39 exceptions woult not be propagated to the caller.
d7d2fbf @theory Increment to v0.51.
authored
40
b240c56 @theory Timestamp v0.50.
authored
41 0.50 2012-02-14T18:25:07Z
c185fa0 @theory Remove `catch` feature.
authored
42 - The `catch` functionality has been completely removed. Any `catch`
43 block passed to `run()`, `txn()`, or `svp()` will be ignored. Errors
44 will trigger fatal exceptions.
6717f10 @theory Remove `with`.
authored
45 - Removed the `with` method, which was deprecated in 0.34. Use `mode()`
46 instead.
76e1d4c @theory Credit RJBS.
authored
47 - Fixed bad method call attempted when an `svp()` block failed. Thanks
48 to Ricardo SIGNES for the regression test and the fix.
49 - Fixed creation of the SQLite driver savepoint methods so that they
50 exist and work even if the driver is loaded before DBD::SQLite. Thanks
51 to Ricardo SIGNES for the regression test and the fix.
c5b91aa @theory Add new version.
authored
52
0ffe215 @theory Timestamp v0.47.
authored
53 0.47 2011-09-26T17:12:07Z
c332f36 @theory Warn every time.
authored
54 - Use of the deprecated `catch` functionality now warns on every call,
55 rather than just the first call from a given caller.
3fba657 @theory Increment to v0.47.
authored
56
b3b0c34 @theory Timestamp v0.46.
authored
57 0.46 2011-07-17T00:47:49
c271b54 @theory Eliminate "Use of qw(...) as parentheses is deprecated" warnings.
authored
58 - Eliminated "Use of qw(...) as parentheses is deprecated" warning in
59 test when running on Perl 5.14.
fcd96c9 @theory Avoid death on Perl 5.15.
authored
60 - Properly `local`ing `$$` in the `t/base.t` test so that it doesn't die
61 on Perl 5.15. Thanks to Andreas J. Koenig for the report and diagnosis
62 and to Nicholas Clark for the fix.
80e36ea @theory Thanks ask!
authored
63 - Duplicate paragraphs removed from `README.md` thanks to Ask Bjørn
64 Hansen.
17bce86 @theory Deprecate exception handling.
authored
65 - The `catch` functionality is deprecated. It will warn once for each
66 caller to keep log verbosity down. In the next release, it will warn
67 for every call. The release after that, it will be removed altogether.
4266af5 @theory Increment to v0.46.
authored
68
ffc69c7 @theory Timestamp v0.45.
authored
69 0.45 2011-05-10T21:44:08
8c0468c @theory Don't crash when in_txn() called with no connection.
authored
70 - Fixed crash when `in_txn()` was called before an actual connection
71 was established.
b4111d0 @theory Recommend setting AutoCommit to true.
authored
72 - Strongly recommend setting `AutoCommit` to true in the documentation.
73 Setting `AutoCommit` to false defeats the scoping behavior of `txn()`
74 and therefore should not be used.
5a5be8a @theory Fix nested exception handling in `run(fixup)`.
authored
75 - Nested exception handling now works properly in nested calls to
0b85387 @theory Fix nested exception handling in `txn()`.
authored
76 `run()` in fixup mode and in nested calls to `txn()` in all modes.
77 Thanks to Mark Lawrence for the report (RT #66974).
b43e63d @theory Increment to v0.45.
authored
78
af5af66 @theory Timestamp v0.44.
authored
79 0.44 2011-03-20T01:04:59
c4ab3f5 @theory Credit where credit is due.
authored
80 - Fixed bug with the MySQL driver introduced by the auto-reconnection
81 fix in 0.43. Sorry for the lame mistake. [Lee Aylward]
3eeeb87 @theory Increment to v0.44.
authored
82
89fb592 @theory Timestamp v0.43.
authored
83 0.43 2011-03-17T20:03:16
cec9f43 @theory Default RaiseError to true.
authored
84 - DBIx::Connector now sets the DBI `RaiseError` parameter to true in
85 `new()` if neither it nor `HandleError` has been specified. This is to
86 increase the likelihood that exception handling will be properly
87 triggered in `run()`, `txn()`, and `svp()`. Documentation has also
88 been added to emphasize the importance of setting `RaiseError` or
89 `HandleError` appropriately.
90 - Documented that `AutoInactiveDestroy` is set to true in `new()` if it
91 is not specified. It's important tht this attribute be true in forking
92 environments.
cde8c2e @theory Add per-driver post-connection handling.
authored
93 - After connecting to the database, the MySQL driver,
94 DBIx::Connector::Driver::mysql, now always sets the
95 `mysql_auto_reconnect` attribute to false. This is to prevent MySQL's
96 auto-reconnection feature from interfering with DBIx::Connector's
97 auto-reconnection functionality in `fixup` mode. Thanks to Karen
98 Etheridge and Peter Rabbitson for the report.
28af1f0 @theory Remove mention of `Try::Tiny::catch`.
authored
99 - Removed mention of the use of the `catch` function from Try::Tiny,
100 since it is no longer compatible to use passing the exception-handling
101 function. Just using `catch =>` instead, which is cleaner-looking
102 anyway (RT #65196).
cec9f43 @theory Default RaiseError to true.
authored
103
3b5a08a @theory Timestamped for 0.42.
authored
104 0.42 2010-12-17T18:35:54
59fc5ab @theory Fix bug where catch blocks did not propagate exceptions.
authored
105 - If a catch block died, the exception was not being propagated. That
3b5a08a @theory Timestamped for 0.42.
authored
106 is, if a catch block threw an exception, DBIx::Connector ate it, and
107 any calling code would not be able to catch it. This was a pretty
108 serious bug; upgrading is strongly recommended for anyone using catch
109 blocks.
59fc5ab @theory Fix bug where catch blocks did not propagate exceptions.
authored
110 - When `run()`, `txn()`, or `svp()` was called recursively from within a
111 second fixup execution, it was not respecting the fact that it was
112 recursive and could try to start a transaction again. This happened
113 *only* when a fixup run found that the database was disconnected and
114 successfully re-connected, so it's a pretty rare condition.
6f2ec11 @theory Add 0.42 to Changes.
authored
115
25eaaa9 @theory Timestamp for 0.41.
authored
116 0.41 2010-12-08T21:02:32
8035c6d @theory Don't return disconnected `$dbh` from `connect()`.
authored
117 - `connect()` no longer returns a disconnected database handle. Thanks
28af1f0 @theory Remove mention of `Try::Tiny::catch`.
authored
118 to John Siracusa for the spot (Issue #6).
582a1dd @theory Add `disconnect_on_destroy()`.
authored
119 - Added `disconnect_on_destroy()`, which can be used to disable
120 disconnecting the database handle when the connector object is
121 destroyed. Suggested by John Siracusa.
d2ea7c9 @theory Increment version to 0.41.
authored
122
4528655 @theory Timestamp for 0.40 release.
authored
123 0.40 2010-09-17T18:44:01
8d872ad @theory Document use of `wantarray` in blocks.
authored
124 - The code refs passed to `run()`, `txn()`, and `svp()` now know their
125 contexts, so that `wantarray` can be used to decide what to return.
126 Patch from Yaroslav Korshak.
393b25e @theory Set `AutoInactiveDestroy` with DBI 1.614 and up.
authored
127 - Set `AutoInactiveDestroy` on connect with DBI 1.614 and higher, unless
128 it is explicitly set in the attributes. This makes things even safer
129 in a forking environment, preventing a parent process from getting
130 disconnected when a child exits without using the connection. The
131 reports from Peter Rabbitson and Aran Deltac and subsequent discussion
132 with Tim Bunce led to the addition of this attribute in DBI 1.614,
133 which is now the recommended version of DBI.
c5bffa7 @theory Simplify `DESTROY()`.
authored
134 - `DESTROY()` no longer pings the database or rolls back transactions.
135 It now simply calls `disconnect`. This avoids warnings during global
136 destruction, and doesn't seem necessary anyway, as the DBI does these
535d446 @theory Give credit where credit is due.
authored
137 things during global destruction (and always has). Thanks to Matt
138 Trout for the heads-up.
c5bffa7 @theory Simplify `DESTROY()`.
authored
139 - `DESTROY()` now clears `CachedKids`, following the precedent of
140 DBIx::Class. May not be needed for recent-ish drivers, but seems
535d446 @theory Give credit where credit is due.
authored
141 harmless and it's nice to avoid warnings were possible. Reported by
142 Matt Trout.
c5bffa7 @theory Simplify `DESTROY()`.
authored
143 - The `connected()` method no longer `local`ly sets `RaiseError`. It
144 instead leaves that to the drivers (currenly only Driver::Oracle).
c5a7379 @theory Use `our @ISA` instead of `use base`.
authored
145 - The exception classes `DBIx::Connector::TxnRollbackError` and
146 `DBIx::Connector::SvpRollbackError` now use `our @ISA =` instead of
147 `use base` to inherit from `DBIx::Connector::RollbackError. This is to
535d446 @theory Give credit where credit is due.
authored
148 avoid failures from mod_perl restarts. Suggested by Matt Trout.
146951d @theory Require Test::Pod.
authored
149 - Require Test::Pod 1.41 for POD tests so that `L<text|url>` is
150 considered valid.
7731bc0 @theory Increment version to 0.35.
authored
151
6e49e5b @theory Move changes to their proper home.
authored
152 0.35 2010-06-04T00:32:02
153 - Added a scoping block around the execution of the blocks passed to
154 `run()`, `txn()`, and `svp()`. This prevents an app from exiting when
155 a user returns from the block via the `next` or `last` keyword, which
156 in turn prevented transaction management code from running. Thanks to
157 Aran Deltac for the suggestion.
158 - Added exception object for rollback failures. This is to keep rollback
159 failures from completely swallowing up the underlying transaction
160 failures.
161
47cd819 @theory Timestamp for 0.34
authored
162 0.34 2010-05-03T03:15:40
79bed55 @theory Add `mode` attribute.
authored
163 - Added `mode()` attribute to control the default mode used by `run()`,
164 `txn()`, and `svp()`.
fa187a1 @theory Deprecate `with`.
authored
165 - Deprecated `with()`. Its use triggers a warning and it will be removed
166 in a future version. Use `mode()` instead.
a4a01be @theory Increment version number to 0.34.
authored
167
df6a19f @theory Timestamp for 0.33.
authored
168 0.33 2010-03-31T22:56:07
dfcf10e @theory Some tweaks of Quinn's doc improvements.
authored
169 - A few useful documentation improvements, thanks to Quinn Weaver.
9aa0c41 @theory Add `in_txn()`.
authored
170 - Added `in_txn()`, which returns true when the connection is in a
171 transaction and false when it's not.
c777a99 @theory Increment version to 0.33.
authored
172
65715f1 @theory Timestamp for 0.32.
authored
173 0.32 2010-02-22T20:15:50
ed93f3d @theory Use methods to access DBI attributes.
authored
174 - Switched to using `FETCH()` and `STORE()` to get and set DBI
175 attributes where possible. The primary reason is to avoid death during
176 global destruction, when the DBI's `tie`d interface can sometimes be
177 pulled out from under us. Switched to the OO interface througout to be
178 consistent.
2a80483 @theory Incremented version number to 0.32.
authored
179
bf92f2c @theory Timestamped for 0.31.
authored
180 0.31 2009-11-09T01:54:52
c4059ec @theory Added missing version numbers to DBIx::Connector::Driver::SQLite and …
authored
181 - Added missing version numbers to DBIx::Connector::Driver::SQLite
182 and the proxy class used by `with()`.
be52272 @theory Fixed orphaned references to DBIx::Connection to properly be DBIx::Co…
authored
183 - Fixed orphaned references to DBIx::Connection to properly be
184 DBIx::Connector.
3209c6d @theory Remove methods deprecated in 0.20
authored
185 - Removed methods deprecated in 0.20: `do()`, `txn_do()`, `svp_do()`,
186 and `clear_cache()`.
32e308f @theory More refactoring
authored
187 - Some refactoring and code cleanup.
4586a08 @theory Give credit where credit is due.
authored
188 - Some doc typos corrected by Robert Buels.
1ffe5fb @theory Likely fix for Win32 failure
authored
189 - Fixed test failure on Win32.
1995613 @theory Compatibility change: Additional arguments to `run()`, `txn()`, and `…
authored
190
0504541 @theory Timestamped DBIx::Connector 0.30.
authored
191 0.30 2009-10-29T21:31:02
1995613 @theory Compatibility change: Additional arguments to `run()`, `txn()`, and `…
authored
192 - Compatibility change: Additional arguments to `run()`, `txn()`, and
193 `svp()` are no longer passed on to the execution of the block, since
194 they are immediately available to the closure, anyway. This simplifies
195 things for integrated exception handling (next item).
196 - Added integrated exception-handling support to `run()`, `txn()`, and
197 `svp()`. Thanks to Mark Lawrence for the suggestion.
b6c9162 @theory Remove undocumented and redundant savepoint methods
authored
198 - Removed the undocumented `savepoint()`, `release()`, and
199 `rollback_to()` methods from DBIx::Connector, since those methods are
200 in the drivers, and so were redundant.
1b0b297 @theory Fix the `author` section of `META.yml`
authored
201 - Fixed the `author` section of `META.yml`.
ce88ce9 @theory Let `svp()` be a no-op on non-savepoint RDBMSs.
authored
202 - `svp()` no longer throws an exception whe used with an RDBMS that
203 doesn't support savepoints. In such situations, savepoints are treated
204 as a no-op, and thus the transactional behavior of `svp()` becomes the
205 same as `txn()`.
206 - Moved up the discussion of calling `svp()` outside of a transaction in
207 the documentation.
e16b7d6 @theory Incremented version number to 0.21.
authored
208
7a15bb4 @theory Timestamped for 0.20.
authored
209 0.20 2009-10-20T22:33:00
604b53f @theory Rewrote the docs for all the changes
authored
210 - Compatibility changes:
211 + Added `run()`, `txn()`, and `svp()` as replacements for `do()`,
212 `txn_do()`, and `svp_do()`. The latter will issue a warning when
213 called, and be removed in two releases.
214 + Eliminated caching and mod_perl special-casing.
3cf81f0 @theory Fixed the GitHub links for realz.
authored
215 - Fixed the GitHub links for realz.
542aea8 @theory Require Test::More 0.88.
authored
216 - Updated minimum required Test::More to 0.88 so that testing classes
217 with `isa_ok()` will work as expected. Thanks to mlawren for the spot.
100d63f @theory Updated `Changes`
authored
218 - Fixed bug passing arguments on retry in `txn()`. Thanks to [Mark
219 Lawrence](http://github.com/mlawren) for the pull request.
220 - Fixed a bug in `txn()` where it would fail to notify other blocks that
221 it was running the block when the user started a transaction.
1251224 @theory Don't call `ping()` while in a block.
authored
222 - Changed `dbh()` so that it does not call `ping()` when it is called
6b2acf0 @theory Finally settled on method names. Now there are three of each:
authored
223 from within a code reference passed to a `run*()` method.
224 - Made the docs with regard to the re-execution of a code reference
100d63f @theory Updated `Changes`
authored
225 passed to `run()` and friends in fixup mode more accurate, thanks to
226 Tim Bunce.
c4a1df8 @theory Always check the `Active` flag
authored
227 - Fetching a cached database handle now always checks its `Active`
228 attribute as well as different process and thread IDs. The only thing
229 not always done is `ping`ing the database.
762ab7c @theory Add `with()`
authored
230 - Added `with()`.
7776c8a @theory Incremented version number to 0.13.
authored
231
b64e7c1 @theory Timestamped for 0.12 release.
authored
232 0.12 2009-10-06T16:29:16
88ba08d @theory Fixed some broken links & incremented the version number to 0.12.
authored
233 - Fixed the GitHub links, which were still using the old name.
97fd19c @theory Removed `use feature` and `use utf8` from `t/pod-coverage.t` -- those…
authored
234 - Removed `use feature` and `use utf8` from `t/pod-coverage.t` -- those
235 were pastos from another project.
b003ff3 @theory Removed `use DBD::SQLite`.
authored
236 - Removed `use DBD::SQLite` from DBix::Connector::Driver::SQLite. It
237 will already have been loaded by the time that code loads.
88ba08d @theory Fixed some broken links & incremented the version number to 0.12.
authored
238
f52aca7 @theory Timestamped for 0.11 release.
authored
239 0.11 2009-10-05T22:05:29
c81e8f4 @theory Filled in the important details in the README.
authored
240 - Filled in the important details in the README.
5fc7aa0 @theory Changed name to DBIx::Connector
authored
241 - Changed name from DBIx::Connection to DBIx::Connector, as there is
242 already a module called DBIx::Connection on the CPAN.
8754f6c @theory Incremented version number to 0.11.
authored
243
28ae442 @theory Added more acknowledgements and timestamped for release.
authored
244 0.10 2009-10-05T21:16:03
245 - Initial version, with code borrowed from DBIx::Class, Apache::DBI,
246 Catalyst::Model::DBI, and various other locales.
Something went wrong with that request. Please try again.