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