QP support for nested WITH construction
authorBill Erickson <berick@esilibrary.com>
Fri, 18 May 2012 20:42:19 +0000 (16:42 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 21 May 2012 12:26:16 +0000 (08:26 -0400)
commit08297491c797391c199475a9e47b00550f4804fb
treede322f0900c630c1449c8beb7d3ded0f63e8c187
parentf2a11f55a53d3f5a5af1510a4d1016711e0763da
QP support for nested WITH construction

Nested query plans build their own tsquery chunks which have to be
individually JOINed to the final query.  To do this, each tsquery SELECT
gets its own entry in the top-level WITH, complete with alias for
joining.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm