Index: openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-procs-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-procs-postgresql.xql,v
diff -u -r1.11.2.1 -r1.11.2.2
--- openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-procs-postgresql.xql 3 Jul 2016 17:58:48 -0000 1.11.2.1
+++ openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-procs-postgresql.xql 5 Aug 2016 14:38:36 -0000 1.11.2.2
@@ -22,8 +22,7 @@
postgresql8.3
select txt.object_id
- from
- [join $from_clauses ","]
+ from [join $from_clauses ","]
$base_query
[expr {[llength $where_clauses] > 0 ? " and " : ""}]
[join $where_clauses " and "]
@@ -35,13 +34,12 @@
postgresql8.4
- select distinct(orig_object_id) from acs_permission__permission_p_recursive_array(array(
- select txt.object_id
- from
- [join $from_clauses ","]
- $base_query
- [expr {[llength $where_clauses] > 0 ? " and [join $where_clauses { and }]" : ""}]
- order by ts_rank(fti,to_tsquery(:query)) desc
+ select distinct(orig_object_id) from acs_permission.permission_p_recursive_array(array(
+ select txt.object_id
+ from [join $from_clauses ","]
+ $base_query
+ [expr {[llength $where_clauses] > 0 ? " and [join $where_clauses { and }]" : ""}]
+ order by ts_rank(fti,to_tsquery(:query)) desc
), :user_id, 'read')
$limit_clause $offset_clause
@@ -51,8 +49,7 @@
postgresql8.3
select count(*)
- from
- [join $from_clauses ","]
+ from [join $from_clauses ","]
$base_query
[expr {[llength $where_clauses] > 0 ? " and [join $where_clauses { and }]" : ""}]
@@ -63,8 +60,7 @@
select count(distinct(orig_object_id)) from acs_permission__permission_p_recursive_array(array(
select txt.object_id
- from
- [join $from_clauses ","]
+ from [join $from_clauses ","]
$base_query
[expr {[llength $where_clauses] > 0 ? " and " : ""}]
[join $where_clauses " and "]