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