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