Update changes
[dbsrgits/DBIx-Class.git] / Changes
CommitLineData
3b44ccc6 1Revision history for DBIx::Class
2
382b1d53 30.07003 2006-XX-XX XX:XX:XX
4 - Fix UTF8Columns to work under Perl <= 5.8.0
5
2292193a 60.07002 2006-09-14 21:17:32
7 - fix quote tests for recent versions of SQLite
8 - added reference implementation of Manual::Example
9 - backported column_info_from_storage accessor from -current, but
30813c90 10 defaults true instead of false in 0.07xxx
6d2d6160 11 - fixed inflate_datetime.t tests/stringify under older Test::More
2292193a 12 - minor fixes for many-to-many relationship helpers
36f79eed 13 - cleared up Relationship docs, and fixed some typos
e4cc8257 14 - use ref instead of eval to check limit syntax (to avoid issues with
15 Devel::StackTrace)
2292193a 16 - update ResultSet::_cond_for_update_delete to handle more complicated
17 queries
18 - bugfix to Oracle columns_info_for
a918d901 19 - remove_columns now deletes columns from _columns
20
f096a498 210.07001 2006-08-18 19:55:00
9dba3059 22 - add directory argument to deploy()
23 - support default aliases in many_to_many accessors.
24 - support for relationship attributes in many_to_many accessors.
25 - stop search_rs being destructive to attrs
26 - better error reporting when loading components
27 - UTF8Columns changed to use "utf8" instead of "Encode"
ab8481f5 28 - restore automatic aliasing in ResultSet::find() on nonunique queries
29 - allow aliases in ResultSet::find() queries (in cases of relationships
30 with prefetch)
89034887 31 - pass $attrs to find from update_or_create so a specific key can be
32 provided
04786a4c 33 - remove anonymous blesses to avoid major speed hit on Fedora Core 5's
34 Perl and possibly others; for more information see:
35 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=196836
282cccff 36 - fix a pathological prefetch case
37 - table case fix for Oracle in columns_info_for
cb3e35d2 38 - stopped search_rs deleting attributes from passed hash
282cccff 39
cebfddb3 400.07000 2006-07-23 02:30:00
28d25740 41 - supress warnings for possibly non-unique queries, since
42 _is_unique_query doesn't infer properly in all cases
b489f68a 43 - skip empty queries to eliminate spurious warnings on ->deploy
d09c569a 44 - fixups to ORDER BY, tweaks to deepen some copies in ResultSet
eac29141 45 - fixup for RowNum limit syntax with functions
d09c569a 46
99eff28a 470.06999_07 2006-07-12 20:58:05
48 - fix issue with from attr copying introduced in last release
49
26cfd055 500.06999_06 2006-07-12 17:16:55
51 - documentation for new storage options, fix S::A::L hanging on to $dbh
52 - substantial refactor of search_related code to fix alias numbering
dcfb635f 53 - don't generate partial unique keys in ResultSet::find() when a table
54 has more than one unique constraint which share a column and only one
55 is satisfied
404939a4 56 - cleanup UTF8Columns and make more efficient
26cfd055 57 - rename DBIX_CLASS_STORAGE_DBI_DEBUG to DBIC_TRACE (with compat)
f9fbd9bb 58 - rename _parent_rs to _parent_source in ResultSet
0793f927 59 - new FAQ.pod!
f9fbd9bb 60
2b19c829 610.06999_05 2006-07-04 14:40:01
88de38fa 62 - fix issue with incorrect $rs->{attrs}{alias}
c1466191 63 - fix subclassing issue with source_name
296ef183 64 - tweak quotes test to output text on failure
f32eb113 65 - fix Schema->txn_do to not fail as a classmethod
66
39b590c1 670.06999_04 2006-06-29 20:18:47
d651c864 68 - disable cdbi-t/02-Film.t warning tests under AS perl
ca306ecb 69 - fixups to MySQL tests (aka "work round mysql being retarded")
70 - compat tweaks for Storage debug logging
71
ef26a392 720.06999_03 2006-06-26 21:04:44
73 - various documentation improvements
74 - fixes to pass test suite on Windows
75 - rewrote and cleaned up SQL::Translator tests
76 - changed relationship helpers to only call ensure_class_loaded when the
77 join condition is inferred
78 - rewrote many_to_many implementation, now provides helpers for adding
79 and deleting objects without dealing with the link table
6ccc50ab 80 - reworked InflateColumn implementation to lazily deflate where
ef26a392 81 possible; now handles passing an inflated object to new()
82 - changed join merging to not create a rel_2 alias when adding a join
42312aa5 83 that already exists in a parent resultset
ef26a392 84 - Storage::DBI::deployment_statements now calls ensure_connected
85 if it isn't passed a type
86 - fixed Componentized::ensure_class_loaded
5d0a2955 87 - InflateColumn::DateTime supports date as well as datetime
ef26a392 88 - split Storage::DBI::MSSQL into MSSQL and Sybase::MSSQL
89 - fixed wrong debugging hook call in Storage::DBI
90 - set connect_info properly before setting any ->sql_maker things
42312aa5 91
713ca2e2 920.06999_02 2006-06-09 23:58:33
9b83fccd 93 - Fixed up POD::Coverage tests, filled in some POD holes
175cff3e 94 - Added a warning for incorrect component order in load_components
bd93520f 95 - Fixed resultset bugs to do with related searches
96 - added code and tests for Componentized::ensure_class_found and
97 load_optional_class
98 - NoBindVars + Sybase + MSSQL stuff
99 - only rebless S::DBI if it is still S::DBI and not a subclass
100 - Added `use' statement for DBD::Pg in Storage::DBI::Pg
101 - stopped test relying on order of unordered search
102 - bugfix for join-types in nested joins using the from attribute
103 - obscure prefetch problem fixed
104 - tightened up deep search_related
105 - Fixed 'DBIx/Class/DB.pm did not return a true value' error
106 - Revert change to test for deprecated find usage and swallow warnings
107 - Slight wording change to new_related() POD
108 - new specific test for connect_info coderefs
109 - POD clarification and content bugfixing + a few code formatting fixes
110 - POD::Coverage additions
111 - fixed debugfh
112 - Fix column_info stomping
9b83fccd 113
0de39991 1140.06999_01 2006-05-28 17:19:30
368a5228 115 - add automatic naming of unique constraints
1c81f831 116 - marked DB.pm as deprecated and noted it will be removed by 1.0
a8db04ca 117 - add ResultSetColumn
ef26a392 118 - refactor ResultSet code to resolve attrs as late as possible
a8db04ca 119 - merge prefetch attrs into join attrs
cec13963 120 - add +select and +as attributes to ResultSet
e7cafd06 121 - added InflateColumn::DateTime component
4c248161 122 - refactor debugging to allow for profiling using Storage::Statistics
6aaa8ea2 123 - removed Data::UUID from deps, made other optionals required
38e48163 124 - modified SQLT parser to skip dupe table names
002a359a 125 - added remove_column(s) to ResultSource/ResultSourceProxy
126 - added add_column alias to ResultSourceProxy
bab77431 127 - added source_name to ResultSource
1bc0b925 128 - load_classes now uses source_name and sets it if necessary
129 - add update_or_create_related to Relationship::Base
130 - add find_or_new to ResultSet/ResultSetProxy and find_or_new_related
131 to Relationship::Base
132 - add accessors for unique constraint names and coulums to
133 ResultSource/ResultSourceProxy
134 - rework ResultSet::find() to search unique constraints
9387c904 135 - CDBICompat: modify retrieve to fix column casing when ColumnCase is
136 loaded
137 - CDBICompat: override find_or_create to fix column casing when
138 ColumnCase is loaded
62eb8fe8 139 - reorganized and simplified tests
140 - added Ordered
8046a6d1 141 - added the ability to set on_connect_do and the various sql_maker
142 options as part of Storage::DBI's connect_info.
002a359a 143
0de39991 1440.06003 2006-05-19 15:37:30
9c2c91ea 145 - make find_or_create_related check defined() instead of truth
8417f5ee 146 - don't unnecessarily fetch rels for cascade_update
d3c946a0 147 - don't set_columns explicitly in update_or_create; instead use
148 update($hashref) so InflateColumn works
0823196c 149 - fix for has_many prefetch with 0 related rows
150 - make limit error if rows => 0
a917fb06 151 - added memory cycle tests and a long-needed weaken call
152
a2f6c15f 1530.06002 2006-04-20 00:42:41
2c037e6b 154 - fix set_from_related to accept undef
bd054cb4 155 - fix to Dumper-induced hash iteration bug
83419ec6 156 - fix to copy() with non-composed resultsource
765f5b7b 157 - fix to ->search without args to clone rs but maintain cache
a32e8402 158 - grab $self->dbh once per function in Storage::DBI
428c2b82 159 - nuke ResultSource caching of ->resultset for consistency reasons
16b4fd26 160 - fix for -and conditions when updating or deleting on a ResultSet
161
d56d8619 1620.06001
6346a152 163 - Added fix for quoting with single table
182fee36 164 - Substantial fixes and improvements to deploy
165 - slice now uses search directly
166 - fixes for update() on resultset
167 - bugfix to Cursor to avoid error during DESTROY
986e4fca 168 - transaction DBI operations now in debug trace output
6346a152 169
41741748 1700.06000 2006-03-25 18:03:46
eaefb953 171 - Lots of documentation improvements
172 - Minor tweak to related_resultset to prevent it storing a searched rs
8fcf21b3 173 - Fixup to columns_info_for when database returns type(size)
eeb34228 174 - Made do_txn respect void context (on the off-chance somebody cares)
5bd6785c 175 - Fix exception text for nonexistent key in ResultSet::find()
8fcf21b3 176
41741748 1770.05999_04 2006-03-18 19:20:49
7ed3d6dc 178 - Fix for delete on full-table resultsets
936332ea 179 - Removed caching on count() and added _count for pager()
3ec067db 180 - ->connection does nothing if ->storage defined and no args
181 (and hence ->connect acts like ->clone under the same conditions)
182 - Storage::DBI throws better exception if no connect info
183 - columns_info_for made more robust / informative
1346e22d 184 - ithreads compat added, fork compat improved
bcd26419 185 - weaken result_source in all resultsets
bd93520f 186 - Make pg seq extractor less sensitive.
3b44ccc6 187
c42d8358 1880.05999_03 2006-03-14 01:58:10
189 - has_many prefetch fixes
85dea9a9 190 - deploy now adds drop statements before creates
f109ee4a 191 - deploy outputs debugging statements if DBIX_CLASS_STORAGE_DBI_DEBUG
192 is set
85dea9a9 193
f109ee4a 1940.05999_02 2006-03-10 13:31:37
e9100ff7 195 - remove test dep on YAML
196 - additional speed tweaks for C3
e535069e 197 - allow scalarefs passed to order_by to go straight through to SQL
9b465d00 198 - renamed insert_or_update to update_or_insert (with compat alias)
f43b2744 199 - hidden lots of packages from the PAUSE Indexer
561bd5f6 200
2010.05999_01 2006-03-09 18:31:44
5e8b1b2a 202 - renamed cols attribute to columns (cols still supported)
203 - added has_column_loaded to Row
90ec6cad 204 - Storage::DBI connect_info supports coderef returning dbh as 1st arg
aa972396 205 - load_components() doesn't prepend base when comp. prefixed with +
074a366d 206 - $schema->deploy
207 - HAVING support
208 - prefetch for has_many
eaefb953 209 - cache attr for resultsets
074a366d 210 - PK::Auto::* no longer required since Storage::DBI::* handle auto-inc
0e35aa05 211 - minor tweak to tests for join edge case
212 - added cascade_copy relationship attribute
213 (sponsored by Airspace Software, http://www.airspace.co.uk/)
214 - clean up set_from_related
215 - made copy() automatically null out auto-inc columns
62cb84ec 216 - added txn_do() method to Schema, which allows a coderef to be
217 executed atomically
70ecd5a1 218
975c65b5 2190.05007 2006-02-24 00:59:00
971c0085 220 - tweak to Componentised for Class::C3 0.11
221 - fixes for auto-inc under MSSQL
222
f8d97a01 2230.05006 2006-02-17 15:32:40
224 - storage fix for fork() and workaround for Apache::DBI
fc27a867 225 - made update(\%hash) work on row as well as rs
d3231653 226 - another fix for count with scalar group_by
227 - remove dependency on Module::Find in 40resultsetmanager.t (RT #17598)
4834d8ac 228
d0bb3812 2290.05005 2006-02-13 21:24:51
230 - remove build dependency on version.pm
231
dec2517f 2320.05004 2006-02-13 20:59:00
002a359a 233 - allow specification of related columns via cols attr when primary
f3b05bad 234 keys of the related table are not fetched
235 - fix count for group_by as scalar
f66596f9 236 - add horrific fix to make Oracle's retarded limit syntax work
3b24f6ea 237 - remove Carp require
60283c2e 238 - changed UUIDColumns to use new UUIDMaker classes for uuid creation
239 using whatever module may be available
f66596f9 240
85b4a1c5 2410.05003 2006-02-08 17:50:20
242 - add component_class accessors and use them for *_class
243 - small fixes to Serialize and ResultSetManager
85b4a1c5 244 - rollback on disconnect, and disconnect on DESTROY
85b4a1c5 245
cc6504dc 2460.05002 2006-02-06 12:12:03
247 - Added recommends for Class::Inspector
248 - Added skip_all to t/40resultsetmanager.t if no Class::Inspector available
249
2500.05001 2006-02-05 15:28:10
6ee299bf 251 - debug output now prints NULL for undef params
887ce227 252 - multi-step prefetch along the same rel (e.g. for trees) now works
489709af 253 - added multi-join (join => [ 'foo', 'foo' ]), aliases second to foo_2
5ec6bc2e 254 - hack PK::Auto::Pg for "table" names referencing a schema
255 - find() with attributes works
5ac6a044 256 - added experimental Serialize and ResultSetManager components
19345968 257 - added code attribute recording to DBIx::Class
5ac6a044 258 - fix to find() for complex resultsets
259 - added of $storage->debugcb(sub { ... })
260 - added $source->resultset_attributes accessor
261 - added include_columns rs attr
262
fc69fea6 2630.05000 2006-02-01 16:48:30
264 - assorted doc fixes
602afcfa 265 - remove ObjectCache, not yet working in 0.05
266 - let many_to_many rels have attrs
267 - fix ID method in PK.pm to be saner for new internals
132f3b89 268 - fix t/30dbicplain.t to use ::Schema instead of
269 Catalyst::Model::DBIC::Plain
cd67f809 270
7a1fe534 2710.04999_06 2006-01-28 21:20:32
de5e2fe9 272 - fix Storage/DBI (tried to load deprecated ::Exception component)
273
2740.04999_05 2006-01-28 20:13:52
00018e9d 275 - count will now work for grouped resultsets
276 - added accessor => option to column_info to specify accessor name
a37a4697 277 - added $schema->populate to load test data (similar to AR fixtures)
5e8b1b2a 278 - removed cdbi-t dependencies, only run tests if installed
279 - Removed DBIx::Class::Exception
280 - unified throw_exception stuff, using Carp::Clan
281 - report query when sth generation fails.
a14d1055 282 - multi-step prefetch!
283 - inheritance fixes
284 - test tweaks
285
09aeebca 2860.04999_04 2006-01-24 21:48:21
287 - more documentation improvements
288 - add columns_info_for for vendor-specific column info (Zbigniew Lukasiak)
289 - add SQL::Translator::Producer for DBIx::Class table classes (Jess Robinson)
290 - add unique constraint declaration (Daniel Westermann-Clark)
291 - add new update_or_create method (Daniel Westermann-Clark)
e46a66f2 292 - rename ResultSetInstance class to ResultSetProxy, ResultSourceInstance
293 to ResultSourceProxy, and TableInstance to ResultSourceProxy::Table
09aeebca 294 - minor fixes to UUIDColumns
6565b410 295 - add debugfh method and ENV magic for tracing SQL (Nigel Metheringham)
09aeebca 296
151fc9ad 2970.04999_03 2006-01-20 06:05:27
09aeebca 298 - imported Jess Robinson's SQL::Translator::Parser::DBIx::Class
299 - lots of internals cleanup to eliminate result_source_instance requirement
8bfc3d48 300 - added register_column and register_relationship class APIs
301 - made Storage::DBI use prepare_cached safely (thanks to Tim Bunce)
302 - many documentation improvements (thanks guys!)
151fc9ad 303 - added ->connection, ->connect, ->register_source and ->clone schema methods
5e8b1b2a 304 - Use croak instead of die for user errors.
8bfc3d48 305
9ce9ec10 3060.04999_02 2006-01-14 07:17:35
307 - Schema is now self-contained; no requirement for co-operation
308 - add_relationship, relationships, relationship_info, has_relationship
309 - relationship handling on ResultSource
310 - all table handling now in Table.pm / ResultSource.pm
475978db 311 - added GROUP BY and DISTINCT support
312 - hacked around SQL::Abstract::Limit some more in DBIC::SQL::Abstract
313 (this may have fixed complex quoting)
314 - moved inflation to inflate_result in Row.pm
315 - added $rs->search_related
316 - split compose_namespace out of compose_connection in Schema
fea3d045 317 - ResultSet now handles find
318 - various *_related methods are now ->search_related->*
319 - added new_result to ResultSet
475978db 320
82b1cd1f 3210.04999_01 2005-12-27 03:33:42
322 - search and related methods moved to ResultSet
323 - select and as added to ResultSet attrs
324 - added DBIx::Class::Table and TableInstance for table-per-class
325 - added DBIx::Class::ResultSetInstance which handles proxying
326 search etc. as a superclass of DBIx::Class::DB
327 - assorted test and code cleanup work
328
de5d1955 3290.04001 2005-12-13 22:00:00
47bd0267 330 - Fix so set_inflated_column calls set_column
de5d1955 331 - Syntax errors in relationship classes are now reported
c2074366 332 - Better error detection in set_primary_key and columns methods
333 - Documentation improvements
334 - Better transaction support with txn_* methods
335 - belongs_to now works when $cond is a string
336 - PK::Auto::Pg updated, only tries primary keys instead of all cols
47bd0267 337
3380.04 2005-11-26
484c9dda 339 - Moved get_simple and set_simple into AccessorGroup
340 - Made 'new' die if given invalid columns
103647d5 341 - Added has_column and column_info to Table.pm
342 - Refactored away from direct use of _columns and _primaries
47bd0267 343 - Switched from NEXT to Class::C3
484c9dda 344
2441e56f 3450.03004
346 - Added an || '' to the CDBICompat stringify to avoid null warnings
5e8b1b2a 347 - Updated name section for manual pods
3b44ccc6 3480.03003 2005-11-03 17:00:00
349 - POD fixes.
350 - Changed use to require in Relationship/Base to avoid import.
351
3520.03002 2005-10-20 22:35:00
353 - Minor bugfix to new (Row.pm)
354 - Schema doesn't die if it can't load a class (Schema.pm)
355 - New UUID columns plugin (UUIDColumns.pm)
356 - Documentation improvements.
357
3580.03001 2005-09-23 14:00:00
359 - Fixes to relationship helpers
360 - IMPORTANT: prefetch/schema combination bug fix
361
3620.03 2005-09-19 19:35:00
363 - Paging support
364 - Join support on search
365 - Prefetch support on search
366
3670.02 2005-08-12 18:00:00
368 - Test fixes.
369 - Performance improvements.
370 - Oracle primary key support.
371 - MS-SQL primary key support.
372 - SQL::Abstract::Limit integration for database-agnostic limiting.
373
3740.01 2005-08-08 17:10:00
375 - initial release