Index: openacs-4/packages/edit-this-page/tcl/etp-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/edit-this-page/tcl/etp-procs-postgresql.xql,v diff -u -r1.5 -r1.6 --- openacs-4/packages/edit-this-page/tcl/etp-procs-postgresql.xql 20 Nov 2001 02:04:50 -0000 1.5 +++ openacs-4/packages/edit-this-page/tcl/etp-procs-postgresql.xql 21 Nov 2001 14:20:59 -0000 1.6 @@ -111,18 +111,12 @@ - select * from ( - select $columns - from cr_items i - left join - cr_revisions r - on (i.live_revision = r.revision_id) - where i.parent_id = etp__get_folder_id(:package_id) - and i.name != 'index' - ) as attributes - where $extra_where_clauses - order by $orderby - $limit_clause + select $columns + from cr_items i left join cr_revisions r on (i.live_revision = r.revision_id) + where i.parent_id = etp__get_folder_id(:package_id) and i.name != 'index' + $extra_where_clauses + order by $orderby + $limit_clause