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