e82e213075fb68cf55483940ed120f6aa1c5f03a
[dbsrgits/DBIx-Class.git] / Changes
1 Revision history for DBIx::Class
2
3         - ensure_connected before txn_begin to catch stomping on transaction
4           depth
5         - new method "rethrow" for our exception objects
6
7 0.08001 2007-06-17 21:21:02
8         - Cleaned up on_connect handling for versioned
9         - removed DateTime use line from multi_create test
10         - hid DBIx::ContextualFetch::st override in CDBICompat
11
12 0.08000 2007-06-17 18:06:12
13         - Fixed DBIC_TRACE debug filehandles to set ->autoflush(1)
14         - Fixed circular dbh<->storage in HandleError with weakref
15
16 0.07999_06 2007-06-13 04:45:00
17         - tweaked Row.pm to make last_insert_id take multiple column names
18         - Fixed DBIC::Storage::DBI::Cursor::DESTROY bug that was
19           messing up exception handling
20         - added exception objects to eliminate stacktrace/Carp::Clan
21           output redundancy
22         - setting $ENV{DBIC_TRACE} defaults stacktrace on.
23         - added stacktrace option to Schema, makes throw_exception
24           use "confess"
25         - make database handles use throw_exception by default
26         - make database handles supplied by a coderef use our
27           standard HandleError/RaiseError/PrintError
28         - add "unsafe" connect_info option to suppress our setting
29           of HandleError/RaiseError/PrintError
30         - removed several redundant evals whose sole purpose was to
31           provide extra debugging info
32         - fixed page-within-page bug (reported by nilsonsfj)
33         - fixed rare bug when database is disconnected inbetween
34           "$dbh->prepare_cached" and "$sth->execute"
35
36 0.07999_05 2007-06-07 23:00:00
37         - Made source_name rw in ResultSource
38         - Fixed up SQL::Translator test/runtime dependencies
39         - Fixed t/60core.t in the absence of DateTime::Format::MySQL
40         - Test cleanup and doc note (ribasushi)
41
42 0.07999_04 2007-06-01 14:04:00
43         - pulled in Replication storage from branch and marked EXPERIMENTAL
44         - fixup to ensure join always LEFT after first LEFT join depthwise
45         - converted the vendor tests to use schema objects intead of schema
46           classes, made cleaned more reliable with END blocks
47         - versioning support via DBIx::Class::Schema::Versioned
48         - find/next now return undef rather than () on fail from Bernhard Graf
49         - rewritten collapse_result to fix prefetch
50         - moved populate to resultset
51         - added support for creation of related rows via insert and populate
52         - transaction support more robust now in the face of varying AutoCommit
53           and manual txn_begin usage
54         - unbreak back-compat for Row/ResultSet->new_result
55         - Added Oracle/WhereJoins.pm for Oracle >= 8 to support
56           Oracle <= 9i, and provide Oracle with a better join method for
57           later versions.  (I use the term better loosely.)
58         - The SQL::T parser class now respects a relationship attribute of
59           is_foreign_key_constrain to allow explicit control over wether or
60           not a foreign constraint is needed
61         - resultset_class/result_class now (again) auto loads the specified
62           class; requires Class::Accessor::Grouped 0.05002+
63         - added get_inflated_columns to Row
64         - %colinfo accessor and inflate_column now work together
65         - More documentation updates
66         - Error messages from ->deploy made more informative
67         - connect_info will now always return the arguments it was
68           originally given
69         - A few small efficiency improvements for load_classes
70           and compose_namespace
71
72 0.07006 2007-04-17 23:18:00
73         - Lots of documentation updates
74         - deploy now takes an optional 'source_names' parameter (dec)
75         - Quoting for for columns_info_for
76         - RT#25683 fixed (multiple open sths on DBD::Sybase)
77         - CDBI compat infers has_many from has_a (Schwern)
78         - Fix ddl_filename transformation (Carl Vincent)
79
80 0.07999_02 2007-01-25 20:11:00
81         - add support for binding BYTEA and similar parameters (w/Pg impl)
82         - add support to Ordered for multiple ordering columns
83         - mark DB.pm and compose_connection as deprecated
84         - switch tests to compose_namespace
85         - ResultClass::HashRefInflator added
86         - Changed row and rs objects to not have direct handle to a source,
87           instead a (schema,source_name) tuple of type ResultSourceHandle
88
89 0.07005 2007-01-10 18:36:00
90         - fixup changes file
91         - remove erroneous .orig files - oops
92
93 0.07004 2007-01-09 21:52:00
94         - fix find_related-based queries to correctly grep the unique key
95         - fix InflateColumn to inflate/deflate all refs but scalar refs
96
97 0.07003 2006-11-16 11:52:00
98         - fix for rt.cpan.org #22740 (use $^X instead of hardcoded "perl")
99         - Tweaks to resultset to allow inflate_result to return an array
100         - Fix UTF8Columns to work under Perl <= 5.8.0
101         - Fix up new_result in ResultSet to avoid alias-related bugs
102         - Made new/update/find handle 'single' rel accessor correctly
103         - Fix NoBindVars to be safer and handle non-true bind values
104         - Don't blow up if columns_info_for returns useless results
105         - Documentation updates
106
107 0.07999_01 2006-10-05 21:00:00
108         - add connect_info option "disable_statement_caching"
109         - create insert_bulk using execute_array, populate uses it
110         - added DBIx::Class::Schema::load_namespaces, alternative to
111           load_classes
112         - added source_info method for source-level metadata (kinda like
113           column_info)
114         - Some of ::Storage::DBI's code/docs moved to ::Storage
115         - DBIx::Class::Schema::txn_do code moved to ::Storage
116         - Storage::DBI now uses exceptions instead of ->ping/->{Active} checks
117         - Storage exceptions are thrown via the schema class's throw_exception
118         - DBIx::Class::Schema::throw_exception's behavior can be modified via
119           ->exception_action
120         - columns_info_for is deprecated, and no longer runs automatically.
121           You can make it work like before via
122           __PACKAGE__->column_info_from_storage(1) for now
123         - Replaced DBIx::Class::AccessorGroup and Class::Data::Accessor with
124           Class::Accessor::Grouped. Only user noticible change is to
125           table_class on ResultSourceProxy::Table (i.e. table objects in
126           schemas) and, resultset_class and result_class in ResultSource.
127           These accessors no longer automatically require the classes when
128           set.
129
130 0.07002 2006-09-14 21:17:32
131         - fix quote tests for recent versions of SQLite
132         - added reference implementation of Manual::Example
133         - backported column_info_from_storage accessor from -current, but
134         - fixed inflate_datetime.t tests/stringify under older Test::More
135         - minor fixes for many-to-many relationship helpers
136         - cleared up Relationship docs, and fixed some typos
137         - use ref instead of eval to check limit syntax (to avoid issues with
138           Devel::StackTrace)
139         - update ResultSet::_cond_for_update_delete to handle more complicated
140           queries
141         - bugfix to Oracle columns_info_for
142         - remove_columns now deletes columns from _columns
143
144 0.07001 2006-08-18 19:55:00
145         - add directory argument to deploy()
146         - support default aliases in many_to_many accessors.
147         - support for relationship attributes in many_to_many accessors.
148         - stop search_rs being destructive to attrs
149         - better error reporting when loading components
150         - UTF8Columns changed to use "utf8" instead of "Encode"
151         - restore automatic aliasing in ResultSet::find() on nonunique queries
152         - allow aliases in ResultSet::find() queries (in cases of relationships
153           with prefetch)
154         - pass $attrs to find from update_or_create so a specific key can be
155           provided
156         - remove anonymous blesses to avoid major speed hit on Fedora Core 5's
157           Perl and possibly others; for more information see:
158           https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=196836
159         - fix a pathological prefetch case
160         - table case fix for Oracle in columns_info_for
161         - stopped search_rs deleting attributes from passed hash
162
163 0.07000 2006-07-23 02:30:00
164         - supress warnings for possibly non-unique queries, since
165           _is_unique_query doesn't infer properly in all cases
166         - skip empty queries to eliminate spurious warnings on ->deploy
167         - fixups to ORDER BY, tweaks to deepen some copies in ResultSet
168         - fixup for RowNum limit syntax with functions
169
170 0.06999_07 2006-07-12 20:58:05
171         - fix issue with from attr copying introduced in last release
172
173 0.06999_06 2006-07-12 17:16:55
174         - documentation for new storage options, fix S::A::L hanging on to $dbh
175         - substantial refactor of search_related code to fix alias numbering
176         - don't generate partial unique keys in ResultSet::find() when a table
177           has more than one unique constraint which share a column and only one
178           is satisfied
179         - cleanup UTF8Columns and make more efficient
180         - rename DBIX_CLASS_STORAGE_DBI_DEBUG to DBIC_TRACE (with compat)
181         - rename _parent_rs to _parent_source in ResultSet
182         - new FAQ.pod!
183
184 0.06999_05 2006-07-04 14:40:01
185         - fix issue with incorrect $rs->{attrs}{alias}
186         - fix subclassing issue with source_name
187         - tweak quotes test to output text on failure
188         - fix Schema->txn_do to not fail as a classmethod
189
190 0.06999_04 2006-06-29 20:18:47
191         - disable cdbi-t/02-Film.t warning tests under AS perl
192         - fixups to MySQL tests (aka "work round mysql being retarded")
193         - compat tweaks for Storage debug logging
194
195 0.06999_03 2006-06-26 21:04:44
196         - various documentation improvements
197         - fixes to pass test suite on Windows
198         - rewrote and cleaned up SQL::Translator tests
199         - changed relationship helpers to only call ensure_class_loaded when the
200           join condition is inferred
201         - rewrote many_to_many implementation, now provides helpers for adding
202           and deleting objects without dealing with the link table
203         - reworked InflateColumn implementation to lazily deflate where
204           possible; now handles passing an inflated object to new()
205         - changed join merging to not create a rel_2 alias when adding a join
206           that already exists in a parent resultset
207         - Storage::DBI::deployment_statements now calls ensure_connected
208           if it isn't passed a type
209         - fixed Componentized::ensure_class_loaded
210         - InflateColumn::DateTime supports date as well as datetime
211         - split Storage::DBI::MSSQL into MSSQL and Sybase::MSSQL
212         - fixed wrong debugging hook call in Storage::DBI
213         - set connect_info properly before setting any ->sql_maker things
214
215 0.06999_02 2006-06-09 23:58:33
216         - Fixed up POD::Coverage tests, filled in some POD holes
217         - Added a warning for incorrect component order in load_components
218         - Fixed resultset bugs to do with related searches
219         - added code and tests for Componentized::ensure_class_found and
220           load_optional_class
221         - NoBindVars + Sybase + MSSQL stuff
222         - only rebless S::DBI if it is still S::DBI and not a subclass
223         - Added `use' statement for DBD::Pg in Storage::DBI::Pg
224         - stopped test relying on order of unordered search
225         - bugfix for join-types in nested joins using the from attribute
226         - obscure prefetch problem fixed
227         - tightened up deep search_related
228         - Fixed 'DBIx/Class/DB.pm did not return a true value' error
229         - Revert change to test for deprecated find usage and swallow warnings
230         - Slight wording change to new_related() POD
231         - new specific test for connect_info coderefs
232         - POD clarification and content bugfixing + a few code formatting fixes
233         - POD::Coverage additions
234         - fixed debugfh
235         - Fix column_info stomping
236
237 0.06999_01 2006-05-28 17:19:30
238         - add automatic naming of unique constraints
239         - marked DB.pm as deprecated and noted it will be removed by 1.0
240         - add ResultSetColumn
241         - refactor ResultSet code to resolve attrs as late as possible
242         - merge prefetch attrs into join attrs
243         - add +select and +as attributes to ResultSet
244         - added InflateColumn::DateTime component
245         - refactor debugging to allow for profiling using Storage::Statistics
246         - removed Data::UUID from deps, made other optionals required
247         - modified SQLT parser to skip dupe table names
248         - added remove_column(s) to ResultSource/ResultSourceProxy
249         - added add_column alias to ResultSourceProxy
250         - added source_name to ResultSource
251         - load_classes now uses source_name and sets it if necessary
252         - add update_or_create_related to Relationship::Base
253         - add find_or_new to ResultSet/ResultSetProxy and find_or_new_related
254           to Relationship::Base
255         - add accessors for unique constraint names and coulums to
256           ResultSource/ResultSourceProxy
257         - rework ResultSet::find() to search unique constraints
258         - CDBICompat: modify retrieve to fix column casing when ColumnCase is
259           loaded
260         - CDBICompat: override find_or_create to fix column casing when
261           ColumnCase is loaded
262         - reorganized and simplified tests
263         - added Ordered
264         - added the ability to set on_connect_do and the various sql_maker
265           options as part of Storage::DBI's connect_info.
266
267 0.06003 2006-05-19 15:37:30
268         - make find_or_create_related check defined() instead of truth
269         - don't unnecessarily fetch rels for cascade_update
270         - don't set_columns explicitly in update_or_create; instead use
271           update($hashref) so InflateColumn works
272         - fix for has_many prefetch with 0 related rows
273         - make limit error if rows => 0
274         - added memory cycle tests and a long-needed weaken call
275
276 0.06002 2006-04-20 00:42:41
277         - fix set_from_related to accept undef
278         - fix to Dumper-induced hash iteration bug
279         - fix to copy() with non-composed resultsource
280         - fix to ->search without args to clone rs but maintain cache
281         - grab $self->dbh once per function in Storage::DBI
282         - nuke ResultSource caching of ->resultset for consistency reasons
283         - fix for -and conditions when updating or deleting on a ResultSet
284
285 0.06001
286         - Added fix for quoting with single table
287         - Substantial fixes and improvements to deploy
288         - slice now uses search directly
289         - fixes for update() on resultset
290         - bugfix to Cursor to avoid error during DESTROY
291         - transaction DBI operations now in debug trace output
292
293 0.06000 2006-03-25 18:03:46
294         - Lots of documentation improvements
295         - Minor tweak to related_resultset to prevent it storing a searched rs
296         - Fixup to columns_info_for when database returns type(size)
297         - Made do_txn respect void context (on the off-chance somebody cares)
298         - Fix exception text for nonexistent key in ResultSet::find()
299
300 0.05999_04 2006-03-18 19:20:49
301         - Fix for delete on full-table resultsets
302         - Removed caching on count() and added _count for pager()
303         - ->connection does nothing if ->storage defined and no args
304           (and hence ->connect acts like ->clone under the same conditions)
305         - Storage::DBI throws better exception if no connect info
306         - columns_info_for made more robust / informative
307         - ithreads compat added, fork compat improved
308         - weaken result_source in all resultsets
309         - Make pg seq extractor less sensitive.
310
311 0.05999_03 2006-03-14 01:58:10
312         - has_many prefetch fixes
313         - deploy now adds drop statements before creates
314         - deploy outputs debugging statements if DBIX_CLASS_STORAGE_DBI_DEBUG
315             is set
316
317 0.05999_02 2006-03-10 13:31:37
318         - remove test dep on YAML
319         - additional speed tweaks for C3
320         - allow scalarefs passed to order_by to go straight through to SQL
321         - renamed insert_or_update to update_or_insert (with compat alias)
322         - hidden lots of packages from the PAUSE Indexer
323
324 0.05999_01 2006-03-09 18:31:44
325         - renamed cols attribute to columns (cols still supported)
326         - added has_column_loaded to Row
327         - Storage::DBI connect_info supports coderef returning dbh as 1st arg
328         - load_components() doesn't prepend base when comp. prefixed with +
329         - $schema->deploy
330         - HAVING support
331         - prefetch for has_many
332         - cache attr for resultsets
333         - PK::Auto::* no longer required since Storage::DBI::* handle auto-inc
334         - minor tweak to tests for join edge case
335         - added cascade_copy relationship attribute
336           (sponsored by Airspace Software, http://www.airspace.co.uk/)
337         - clean up set_from_related
338         - made copy() automatically null out auto-inc columns
339         - added txn_do() method to Schema, which allows a coderef to be
340           executed atomically
341
342 0.05007 2006-02-24 00:59:00
343         - tweak to Componentised for Class::C3 0.11
344         - fixes for auto-inc under MSSQL
345
346 0.05006 2006-02-17 15:32:40
347         - storage fix for fork() and workaround for Apache::DBI
348         - made update(\%hash) work on row as well as rs
349         - another fix for count with scalar group_by
350         - remove dependency on Module::Find in 40resultsetmanager.t (RT #17598)
351
352 0.05005 2006-02-13 21:24:51
353         - remove build dependency on version.pm
354
355 0.05004 2006-02-13 20:59:00
356         - allow specification of related columns via cols attr when primary
357           keys of the related table are not fetched
358         - fix count for group_by as scalar
359         - add horrific fix to make Oracle's retarded limit syntax work
360         - remove Carp require
361         - changed UUIDColumns to use new UUIDMaker classes for uuid creation
362         using whatever module may be available
363
364 0.05003 2006-02-08 17:50:20
365         - add component_class accessors and use them for *_class
366         - small fixes to Serialize and ResultSetManager
367         - rollback on disconnect, and disconnect on DESTROY
368
369 0.05002 2006-02-06 12:12:03
370         - Added recommends for Class::Inspector
371         - Added skip_all to t/40resultsetmanager.t if no Class::Inspector
372         available
373
374 0.05001 2006-02-05 15:28:10
375         - debug output now prints NULL for undef params
376         - multi-step prefetch along the same rel (e.g. for trees) now works
377         - added multi-join (join => [ 'foo', 'foo' ]), aliases second to foo_2
378         - hack PK::Auto::Pg for "table" names referencing a schema
379         - find() with attributes works
380         - added experimental Serialize and ResultSetManager components
381         - added code attribute recording to DBIx::Class
382         - fix to find() for complex resultsets
383         - added of $storage->debugcb(sub { ... })
384         - added $source->resultset_attributes accessor
385         - added include_columns rs attr
386
387 0.05000 2006-02-01 16:48:30
388         - assorted doc fixes
389         - remove ObjectCache, not yet working in 0.05
390         - let many_to_many rels have attrs
391         - fix ID method in PK.pm to be saner for new internals
392         - fix t/30dbicplain.t to use ::Schema instead of
393           Catalyst::Model::DBIC::Plain
394
395 0.04999_06 2006-01-28 21:20:32
396         - fix Storage/DBI (tried to load deprecated ::Exception component)
397
398 0.04999_05 2006-01-28 20:13:52
399         - count will now work for grouped resultsets
400         - added accessor => option to column_info to specify accessor name
401         - added $schema->populate to load test data (similar to AR fixtures)
402         - removed cdbi-t dependencies, only run tests if installed
403         - Removed DBIx::Class::Exception
404         - unified throw_exception stuff, using Carp::Clan
405         - report query when sth generation fails.
406         - multi-step prefetch!
407         - inheritance fixes
408         - test tweaks
409
410 0.04999_04 2006-01-24 21:48:21
411         - more documentation improvements
412         - add columns_info_for for vendor-specific column info (Zbigniew
413         Lukasiak)
414         - add SQL::Translator::Producer for DBIx::Class table classes (Jess
415         Robinson)
416         - add unique constraint declaration (Daniel Westermann-Clark)
417         - add new update_or_create method (Daniel Westermann-Clark)
418         - rename ResultSetInstance class to ResultSetProxy, ResultSourceInstance
419           to ResultSourceProxy, and TableInstance to ResultSourceProxy::Table
420         - minor fixes to UUIDColumns
421         - add debugfh method and ENV magic for tracing SQL (Nigel Metheringham)
422
423 0.04999_03 2006-01-20 06:05:27
424         - imported Jess Robinson's SQL::Translator::Parser::DBIx::Class
425         - lots of internals cleanup to eliminate result_source_instance
426         requirement
427         - added register_column and register_relationship class APIs
428         - made Storage::DBI use prepare_cached safely (thanks to Tim Bunce)
429         - many documentation improvements (thanks guys!)
430         - added ->connection, ->connect, ->register_source and ->clone schema
431         methods
432         - Use croak instead of die for user errors.
433
434 0.04999_02 2006-01-14 07:17:35
435         - Schema is now self-contained; no requirement for co-operation
436         - add_relationship, relationships, relationship_info, has_relationship
437         - relationship handling on ResultSource
438         - all table handling now in Table.pm / ResultSource.pm
439         - added GROUP BY and DISTINCT support
440         - hacked around SQL::Abstract::Limit some more in DBIC::SQL::Abstract
441           (this may have fixed complex quoting)
442         - moved inflation to inflate_result in Row.pm
443         - added $rs->search_related
444         - split compose_namespace out of compose_connection in Schema
445         - ResultSet now handles find
446         - various *_related methods are now ->search_related->*
447         - added new_result to ResultSet
448
449 0.04999_01 2005-12-27 03:33:42
450         - search and related methods moved to ResultSet
451         - select and as added to ResultSet attrs
452         - added DBIx::Class::Table and TableInstance for table-per-class
453         - added DBIx::Class::ResultSetInstance which handles proxying
454           search etc. as a superclass of DBIx::Class::DB
455         - assorted test and code cleanup work
456
457 0.04001 2005-12-13 22:00:00
458         - Fix so set_inflated_column calls set_column
459         - Syntax errors in relationship classes are now reported
460         - Better error detection in set_primary_key and columns methods
461         - Documentation improvements
462         - Better transaction support with txn_* methods
463         - belongs_to now works when $cond is a string
464         - PK::Auto::Pg updated, only tries primary keys instead of all cols
465
466 0.04 2005-11-26
467         - Moved get_simple and set_simple into AccessorGroup
468         - Made 'new' die if given invalid columns
469         - Added has_column and column_info to Table.pm
470         - Refactored away from direct use of _columns and _primaries
471         - Switched from NEXT to Class::C3
472
473 0.03004
474         - Added an || '' to the CDBICompat stringify to avoid null warnings
475         - Updated name section for manual pods
476 0.03003 2005-11-03 17:00:00
477         - POD fixes.
478         - Changed use to require in Relationship/Base to avoid import.
479
480 0.03002 2005-10-20 22:35:00
481         - Minor bugfix to new (Row.pm)
482         - Schema doesn't die if it can't load a class (Schema.pm)
483         - New UUID columns plugin (UUIDColumns.pm)
484         - Documentation improvements.
485
486 0.03001 2005-09-23 14:00:00
487         - Fixes to relationship helpers
488         - IMPORTANT: prefetch/schema combination bug fix
489
490 0.03    2005-09-19 19:35:00
491         - Paging support
492         - Join support on search
493         - Prefetch support on search
494
495 0.02    2005-08-12 18:00:00
496         - Test fixes.
497         - Performance improvements.
498         - Oracle primary key support.
499         - MS-SQL primary key support.
500         - SQL::Abstract::Limit integration for database-agnostic limiting.
501
502 0.01    2005-08-08 17:10:00
503         - initial release
504