Peter Rabbitson [Tue, 26 May 2009 14:29:55 +0000]
Merge 'top_limit_altfix' into 'trunk'
Ash Berlin [Tue, 26 May 2009 14:17:44 +0000]
Fix 'timestamp with time zone' columns for IC::DT inflation
Peter Rabbitson [Tue, 26 May 2009 06:15:34 +0000]
TODOified test for RT#40701
Peter Rabbitson [Mon, 25 May 2009 17:42:02 +0000]
This method does not exist anymore
Tom Hukins [Mon, 25 May 2009 16:33:46 +0000]
Small documentation improvement: link to a documented method.
Peter Rabbitson [Mon, 25 May 2009 15:45:33 +0000]
Too much logic for no benefit - always populate _virtual_order_by
Peter Rabbitson [Mon, 25 May 2009 14:53:13 +0000]
Actually don't need this anymore
Peter Rabbitson [Mon, 25 May 2009 14:08:40 +0000]
Merge 'top_limit_tweaks' into 'top_limit_altfix'
Shoot another Top problem, move test from top_limit_tweaks branch and delete
Peter Rabbitson [Mon, 25 May 2009 09:24:32 +0000]
The Top limit emulation bundled with SQLA::Limit assumes that the limited resultset will be _always_ sorted. In order to fix this, I reimplemented _Top in SQLAHacks with a slight modification. Now the original order_by is passed to the outside of the nested select block, while order_up/down are calculated either based on the original order_by, or if one is not present an order by all PKs is attempted.
Since I do not have access to $rsrc in SQLA, I pass the list of PKs as an extra group_by hash entry. This appears to be rather safe, and besides we already pollute order_by with group_by and having (which seems to work rather well).
The only thing I am unsure about is the need for _gen_virtual_order(). Initially I was going to generate the pk list, only if we use the Top limit. Then it turned out there is no limit dialect before we connect, so I commented it out. Now all it does is check for a limit condition and returns the PK list. Is this necessary at all?
Peter Rabbitson [Mon, 25 May 2009 09:11:01 +0000]
Define how Top limit emulation should behave
Peter Rabbitson [Mon, 25 May 2009 07:47:01 +0000]
Forgotten podcoverage override
Peter Rabbitson [Mon, 25 May 2009 07:42:45 +0000]
Move the DB2 Limit syntax setting into the storage class
Peter Rabbitson [Mon, 25 May 2009 06:48:38 +0000]
Factor out the order_by sqlahacks resolver
Rafael Kitover [Sun, 24 May 2009 23:53:12 +0000]
added test to make sure only one connection to ODBC/MSSQL is made
Rafael Kitover [Sun, 24 May 2009 23:49:17 +0000]
fix double connect for ODBC/MSSQL
Peter Rabbitson [Sun, 24 May 2009 20:53:15 +0000]
Switch around inheritance of MSSQL drivers, remove some duplicate code
Peter Rabbitson [Sun, 24 May 2009 13:35:07 +0000]
Failing test about warnings triggered in SQLA::Limit when using a subquery
Peter Rabbitson [Sun, 24 May 2009 13:00:50 +0000]
eol adjustments
Peter Rabbitson [Sun, 24 May 2009 12:12:39 +0000]
Deprecate ::DBI::Sybase::MSSQL
Peter Rabbitson [Sun, 24 May 2009 09:43:32 +0000]
SUPER is so last century
Peter Rabbitson [Sun, 24 May 2009 09:42:01 +0000]
Make sure we do not clobber search attributes when using subqueries
Peter Rabbitson [Sun, 24 May 2009 08:47:03 +0000]
MSSQL through ODBC does not like unfinished statements - make sure we finish the scope identity retrieval
(This worked before because of the automatic retry on exception, essentially running any select after insert twice)
Peter Rabbitson [Sat, 23 May 2009 22:50:08 +0000]
Extend distinct deprecation tests and clarify warnings
Peter Rabbitson [Sat, 23 May 2009 22:47:40 +0000]
update changes
Peter Rabbitson [Sat, 23 May 2009 21:37:19 +0000]
Make sure MultiColumnIn quotes column names while munging literal sql
Tested by running t/resultset/update_delete against pg with quote char " and name sep .
Rafael Kitover [Sat, 23 May 2009 21:04:01 +0000]
minor clean up
Peter Rabbitson [Sat, 23 May 2009 20:59:17 +0000]
Extra test and count fixes for prefetch + distinct
Rafael Kitover [Sat, 23 May 2009 20:28:42 +0000]
revert last Sybase changes
Rafael Kitover [Sat, 23 May 2009 19:57:08 +0000]
hide internal Sybase classes from PAUSE
Rafael Kitover [Sat, 23 May 2009 19:46:11 +0000]
Sybase bindvar and IC::DT support
Peter Rabbitson [Sat, 23 May 2009 19:35:59 +0000]
Add storage component of multipk resultset update/delete for multicolumn IN capable rdbms
Switch Pg to that (tested via DBICTEST_DSN)
Peter Rabbitson [Sat, 23 May 2009 19:33:28 +0000]
Tests and test schema adjustments for resultset update/delete
Rafael Kitover [Sat, 23 May 2009 14:44:59 +0000]
Sybase autopk, and a test, no limit support yet
Peter Rabbitson [Sat, 23 May 2009 08:09:46 +0000]
Refactor rs_update_delete (too many methods for no reason)
Make mysql use _per_row_update_delete by default as this is the only thing it understands: http://dev.mysql.com/doc/refman/5.0/en/subquery-errors.html
Ash Berlin [Fri, 22 May 2009 16:54:00 +0000]
Make distinct calculate columns *after* prefetch has been resolved. Tests to come
Rafael Kitover [Fri, 22 May 2009 13:50:45 +0000]
::Replicated -- check for master rebless and reapply role if necessary
Peter Rabbitson [Fri, 22 May 2009 08:35:36 +0000]
duh
Peter Rabbitson [Fri, 22 May 2009 08:31:25 +0000]
Some attributes require a grouped count subquery, some - just a subquery. Differentiate properly
Peter Rabbitson [Fri, 22 May 2009 08:28:58 +0000]
Extend DB2 test
Rafael Kitover [Fri, 22 May 2009 06:09:05 +0000]
fix limit for DB2
Rafael Kitover [Fri, 22 May 2009 04:52:47 +0000]
comment addition
Rafael Kitover [Fri, 22 May 2009 02:54:12 +0000]
add some support for trying to determine storage driver without being connected
Peter Rabbitson [Thu, 21 May 2009 07:59:50 +0000]
Duh, no point of having ordered subqueries while counting, Debolaz++
Peter Rabbitson [Thu, 21 May 2009 07:45:52 +0000]
Clarify usage of _resolved_attrs by adding the explicit _resolved_attrs_copy
Clarify code in ResultSetColumn
Peter Rabbitson [Wed, 20 May 2009 21:47:05 +0000]
on_connect_do now accepts a single string like it does an arrayref (patch by prema)
Peter Rabbitson [Wed, 20 May 2009 21:00:13 +0000]
Switch as_query testing to direct specification in is_same_sql_bind
Peter Rabbitson [Wed, 20 May 2009 20:59:10 +0000]
POD fixes
Arthur Axel "fREW" Schmidt [Wed, 20 May 2009 16:03:55 +0000]
fix test for people with spaces in path
Justin Hunter [Wed, 20 May 2009 15:06:50 +0000]
fix for sql functions in group_by
Justin Hunter [Wed, 20 May 2009 15:04:17 +0000]
update to Changes
Peter Rabbitson [Wed, 20 May 2009 13:42:48 +0000]
More explicit attribute deletion/detection - a lof of this is probably redundant, as _resoved_attrs() should flatten them away (i.e. prefetch to collapse and distinct to group_by). Nevertheless keep them there for explcetness ( delete() is cheap )
Peter Rabbitson [Wed, 20 May 2009 13:32:27 +0000]
Make sure we always work with resolved rs attributes while counting (and test)
Peter Rabbitson [Wed, 20 May 2009 12:30:40 +0000]
Add explicit grouping for rs update/delete operations if the parameters warrant it (tests coming tonight)
Peter Rabbitson [Wed, 20 May 2009 10:51:05 +0000]
Bring back the old code from resolve_prefetch so ash's code can work
Add tests to make sure we throw it away in 09
Peter Rabbitson [Wed, 20 May 2009 10:44:54 +0000]
detect/purge having bind for compeleteness
Peter Rabbitson [Wed, 20 May 2009 07:03:08 +0000]
Make joined rs counts backwards compatible - we do not collapse a result exploded by a has_many join unless it is explicitly requested by distinct => 1, OR unless we have collapse set which implies prefetch
Rafael Kitover [Wed, 20 May 2009 03:58:36 +0000]
add test for distinct result of sql function
Rafael Kitover [Wed, 20 May 2009 03:11:12 +0000]
add mysql lost password faq
Dan Dascalescu [Wed, 20 May 2009 00:56:57 +0000]
Tiny POD formatting fix
Peter Rabbitson [Tue, 19 May 2009 18:46:40 +0000]
Simplify __count() - explicitly specify which attributes to copy, instead of deleting a whole bunch of them
Peter Rabbitson [Tue, 19 May 2009 17:52:39 +0000]
Make podcoverage happy (deprecated, undocumented methods)
Peter Rabbitson [Tue, 19 May 2009 17:43:56 +0000]
Adjust dependencies - most of them pull in bugfixes
Peter Rabbitson [Tue, 19 May 2009 17:42:59 +0000]
Merge 'joined_count' into 'trunk'
Peter Rabbitson [Tue, 19 May 2009 17:34:19 +0000]
Hide resultsource methods that should have never been documented
Peter Rabbitson [Tue, 19 May 2009 17:26:21 +0000]
Make sure pg test can restart after half-way failures
Alexander Hartmaier [Tue, 19 May 2009 17:07:08 +0000]
added test for total_entries on a paged resultset
Peter Rabbitson [Tue, 19 May 2009 16:11:00 +0000]
Make select always equal group by on count subqueries
Make sure offset does not increment boundlessly on every _resolved_attrs run
Justin Hunter [Tue, 19 May 2009 03:33:47 +0000]
I think I got it right this time
Justin Hunter [Tue, 19 May 2009 03:30:18 +0000]
doc patch per amiri
Arthur Axel "fREW" Schmidt [Mon, 18 May 2009 23:10:20 +0000]
I contributed!
Arthur Axel "fREW" Schmidt [Tue, 19 May 2009 04:56:37 +0000]
Merge 'trunk' into 'joined_count'
Arthur Axel "fREW" Schmidt [Mon, 18 May 2009 21:56:37 +0000]
cleanup for ribasushi
Peter Rabbitson [Mon, 18 May 2009 21:05:10 +0000]
Merge 'diamond_relationships' into 'trunk'
Arthur Axel "fREW" Schmidt [Mon, 18 May 2009 20:56:43 +0000]
Test to show top limit grouping problem
Peter Rabbitson [Mon, 18 May 2009 20:14:44 +0000]
Merge 'trunk' into 'top_limit_tweaks'
r6304@Thesaurus (orig r6303): frew | 2009-05-18 21:43:48 +0200
Test to show problem
r6305@Thesaurus (orig r6304): ribasushi | 2009-05-18 22:12:35 +0200
Failing tests go to branches
r6306@Thesaurus (orig r6305): ribasushi | 2009-05-18 22:14:26 +0200
Require bugfixed sqla
Peter Rabbitson [Mon, 18 May 2009 20:14:26 +0000]
Require bugfixed sqla
Peter Rabbitson [Mon, 18 May 2009 20:12:35 +0000]
Failing tests go to branches
Arthur Axel "fREW" Schmidt [Mon, 18 May 2009 19:43:48 +0000]
Test to show problem
Peter Rabbitson [Mon, 18 May 2009 17:32:42 +0000]
pager optimization
Peter Rabbitson [Mon, 18 May 2009 17:27:38 +0000]
Merge 'trunk' into 'joined_count'
r6290@Thesaurus (orig r6289): ribasushi | 2009-05-17 00:06:40 +0200
Rewrite SqlMakerTest to fully depend on SQLA::Test
Allow is_same_sql_bind to accept an arrayrefref instead of any pair of $sql, \@bind
r6299@Thesaurus (orig r6298): frew | 2009-05-18 18:16:44 +0200
Fix order by clauses for MSSQL
Arthur Axel "fREW" Schmidt [Mon, 18 May 2009 16:16:44 +0000]
Fix order by clauses for MSSQL
Peter Rabbitson [Mon, 18 May 2009 12:05:31 +0000]
Add a comment about a small resolve_join omission
Peter Rabbitson [Sun, 17 May 2009 23:10:22 +0000]
Fixes for the diamond-relationship prefetch/join problem
The core of the issue was that resolve_prefetch calculated duplicate join alias numbers separate from resolve_join
In order to solve this, now the only join alias calculation happens in resolve_join (with prefetch being always merged as extra joins), and each join arrayref in from is labeled with the full relationship chain from me to the particular join. Then resolve_prefetch has to walk this chain and pull the necessary alias in order to generate the correct select
Peter Rabbitson [Sun, 17 May 2009 13:19:54 +0000]
Merge 'trunk' into 'diamond_relationships'
r6255@Thesaurus (orig r6254): ribasushi | 2009-05-14 12:12:44 +0200
Sometimes _prepare_for_execute may not return a set of bind vars - guard against that
r6256@Thesaurus (orig r6255): ribasushi | 2009-05-14 12:14:19 +0200
Clarify test
r6264@Thesaurus (orig r6263): ribasushi | 2009-05-14 15:40:19 +0200
r6121@Thesaurus (orig r6120): caelum | 2009-05-04 17:13:22 +0200
Making new branch for storage tweaking
r6122@Thesaurus (orig r6121): caelum | 2009-05-04 20:07:47 +0200
support hashrefs for connect_replicants
r6123@Thesaurus (orig r6122): caelum | 2009-05-04 23:07:43 +0200
::Replicated - test hashref for connect_replicants and croak on coderef, switch to MX::Types, make test less noisy
r6143@Thesaurus (orig r6142): caelum | 2009-05-06 05:13:56 +0200
fix ::DBI::Replicated::all_storages
r6144@Thesaurus (orig r6143): caelum | 2009-05-06 05:25:04 +0200
Replicated - fixup types and namespace::clean
r6147@Thesaurus (orig r6146): caelum | 2009-05-06 15:29:39 +0200
::DBI:Replicated - merge connect_info from master to replicants
r6184@Thesaurus (orig r6183): caelum | 2009-05-08 18:08:29 +0200
support ::DBI::Replicated opts in connect_info
r6190@Thesaurus (orig r6189): caelum | 2009-05-09 05:31:15 +0200
::DBI::Replicated - add master_read_weight to ::Random balancer_type
r6191@Thesaurus (orig r6190): caelum | 2009-05-09 12:50:25 +0200
::DBI::Replicated - fix fallback to master, test for the warning, other cleanups
r6193@Thesaurus (orig r6192): caelum | 2009-05-09 13:52:52 +0200
updated Changes
r6194@Thesaurus (orig r6193): caelum | 2009-05-09 14:21:44 +0200
::DBI::Replicated - don't build pool/balancer from connect_info unless necessary
r6268@Thesaurus (orig r6267): caelum | 2009-05-15 04:04:12 +0200
minor replication changes - use a real hash merge, clarify master_read_weight, really done with this now.
r6272@Thesaurus (orig r6271): abraxxa | 2009-05-15 13:45:54 +0200
added Static sub-classing DBIx::Class result classes section to the cookbook
r6277@Thesaurus (orig r6276): ribasushi | 2009-05-16 00:46:00 +0200
Optimize some Ordered.pm code
r6278@Thesaurus (orig r6277): ribasushi | 2009-05-16 08:02:18 +0200
Cleanup tests
r6280@Thesaurus (orig r6279): ribasushi | 2009-05-16 09:30:05 +0200
Not sure what this part of the test is for, but it breaks custom resultsets, and the test passes without it. Removing as a possible remnant of an ancient civilization
r6281@Thesaurus (orig r6280): ribasushi | 2009-05-16 09:33:24 +0200
Add default resultclass/resultsetclass to the entire test schema, as I am tired of typing extra shit for debugging purposes
r6282@Thesaurus (orig r6281): ribasushi | 2009-05-16 09:34:21 +0200
Now we can do diag $rs->hri_dump, ain't that nice
r6290@Thesaurus (orig r6289): ribasushi | 2009-05-17 00:06:40 +0200
Rewrite SqlMakerTest to fully depend on SQLA::Test
Allow is_same_sql_bind to accept an arrayrefref instead of any pair of $sql, \@bind
Peter Rabbitson [Sat, 16 May 2009 22:06:40 +0000]
Rewrite SqlMakerTest to fully depend on SQLA::Test
Allow is_same_sql_bind to accept an arrayrefref instead of any pair of $sql, \@bind
Peter Rabbitson [Sat, 16 May 2009 08:40:44 +0000]
Test and fixed for paged grouped count
Peter Rabbitson [Sat, 16 May 2009 07:35:47 +0000]
Merge 'trunk' into 'joined_count'
r6264@Thesaurus (orig r6263): ribasushi | 2009-05-14 15:40:19 +0200
r6121@Thesaurus (orig r6120): caelum | 2009-05-04 17:13:22 +0200
Making new branch for storage tweaking
r6122@Thesaurus (orig r6121): caelum | 2009-05-04 20:07:47 +0200
support hashrefs for connect_replicants
r6123@Thesaurus (orig r6122): caelum | 2009-05-04 23:07:43 +0200
::Replicated - test hashref for connect_replicants and croak on coderef, switch to MX::Types, make test less noisy
r6143@Thesaurus (orig r6142): caelum | 2009-05-06 05:13:56 +0200
fix ::DBI::Replicated::all_storages
r6144@Thesaurus (orig r6143): caelum | 2009-05-06 05:25:04 +0200
Replicated - fixup types and namespace::clean
r6147@Thesaurus (orig r6146): caelum | 2009-05-06 15:29:39 +0200
::DBI:Replicated - merge connect_info from master to replicants
r6184@Thesaurus (orig r6183): caelum | 2009-05-08 18:08:29 +0200
support ::DBI::Replicated opts in connect_info
r6190@Thesaurus (orig r6189): caelum | 2009-05-09 05:31:15 +0200
::DBI::Replicated - add master_read_weight to ::Random balancer_type
r6191@Thesaurus (orig r6190): caelum | 2009-05-09 12:50:25 +0200
::DBI::Replicated - fix fallback to master, test for the warning, other cleanups
r6193@Thesaurus (orig r6192): caelum | 2009-05-09 13:52:52 +0200
updated Changes
r6194@Thesaurus (orig r6193): caelum | 2009-05-09 14:21:44 +0200
::DBI::Replicated - don't build pool/balancer from connect_info unless necessary
r6268@Thesaurus (orig r6267): caelum | 2009-05-15 04:04:12 +0200
minor replication changes - use a real hash merge, clarify master_read_weight, really done with this now.
r6272@Thesaurus (orig r6271): abraxxa | 2009-05-15 13:45:54 +0200
added Static sub-classing DBIx::Class result classes section to the cookbook
r6277@Thesaurus (orig r6276): ribasushi | 2009-05-16 00:46:00 +0200
Optimize some Ordered.pm code
r6278@Thesaurus (orig r6277): ribasushi | 2009-05-16 08:02:18 +0200
Cleanup tests
r6280@Thesaurus (orig r6279): ribasushi | 2009-05-16 09:30:05 +0200
Not sure what this part of the test is for, but it breaks custom resultsets, and the test passes without it. Removing as a possible remnant of an ancient civilization
r6281@Thesaurus (orig r6280): ribasushi | 2009-05-16 09:33:24 +0200
Add default resultclass/resultsetclass to the entire test schema, as I am tired of typing extra shit for debugging purposes
r6282@Thesaurus (orig r6281): ribasushi | 2009-05-16 09:34:21 +0200
Now we can do diag $rs->hri_dump, ain't that nice
Peter Rabbitson [Sat, 16 May 2009 07:34:21 +0000]
Now we can do diag $rs->hri_dump, ain't that nice
Peter Rabbitson [Sat, 16 May 2009 07:33:24 +0000]
Add default resultclass/resultsetclass to the entire test schema, as I am tired of typing extra shit for debugging purposes
Peter Rabbitson [Sat, 16 May 2009 07:30:05 +0000]
Not sure what this part of the test is for, but it breaks custom resultsets, and the test passes without it. Removing as a possible remnant of an ancient civilization
Peter Rabbitson [Sat, 16 May 2009 06:36:45 +0000]
Rename tests
Peter Rabbitson [Sat, 16 May 2009 06:02:18 +0000]
Cleanup tests
Peter Rabbitson [Fri, 15 May 2009 22:46:00 +0000]
Optimize some Ordered.pm code
Peter Rabbitson [Fri, 15 May 2009 21:35:06 +0000]
A workable fix for the resultset multicol update/delete debacle - by default fallback to per-row deletions, with the ability to overide this behavior for various storage drivers
Alexander Hartmaier [Fri, 15 May 2009 11:45:54 +0000]
added Static sub-classing DBIx::Class result classes section to the cookbook
Peter Rabbitson [Fri, 15 May 2009 08:43:04 +0000]
Add failing multikey rs delete (and by implication update) test
Rafael Kitover [Fri, 15 May 2009 02:04:12 +0000]
minor replication changes - use a real hash merge, clarify master_read_weight, really done with this now.
Peter Rabbitson [Thu, 14 May 2009 13:40:19 +0000]
Merge 'storage-tweaks' into 'trunk'
Peter Rabbitson [Thu, 14 May 2009 11:19:59 +0000]
Questionable test changes - need a review
Peter Rabbitson [Thu, 14 May 2009 11:19:35 +0000]
Straightforward test changes