[open-ils-commits] r7855 -
trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Oct 3 13:21:15 EDT 2007
Author: miker
Date: 2007-10-03 13:10:26 -0400 (Wed, 03 Oct 2007)
New Revision: 7855
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm
Log:
fixing patron search SQL error introduced by the dedup intersect check
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm 2007-10-02 19:59:50 UTC (rev 7854)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm 2007-10-03 17:10:26 UTC (rev 7855)
@@ -508,7 +508,7 @@
my $clone_select = '';
$clone_select = "JOIN (SELECT cu.id as id FROM $a_table ca ".
"JOIN $u_table cu ON (cu.mailing_address = ca.id OR cu.billing_address = ca.id) ".
- "WHERE $addr_where) AS clone USING (id)" if ($addr_where);
+ "WHERE $addr_where) AS clone ON (clone.id = users.id)" if ($addr_where);
my $select = '';
if ($usr_where) {
@@ -548,7 +548,7 @@
$select = <<" SQL";
SELECT DISTINCT $distinct_list
FROM $u_table AS users
- JOIN ($select) AS search USING (id)
+ JOIN ($select) AS search ON (search.id = users.id)
JOIN $descendants d ON (d.id = users.home_ou)
$opt_in_join
$clone_select
More information about the open-ils-commits
mailing list