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