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