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