LP#1089468: QueryParser is not re-entrant user/jcamins/lp1089468
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 13 Dec 2012 15:14:52 +0000 (10:14 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 13 Dec 2012 15:23:27 +0000 (10:23 -0500)
commit3fc49c4f74f32b6b4846ba786fa1a0f1ee913149
tree8617af24141324262936ac0780059c81717a7b30
parent1da314f9232ba902d54bfc77315ad8418d066d83
LP#1089468: QueryParser is not re-entrant

Because the ->parse() method of QueryParser did not clear an instance's
parse tree prior to parsing, any time a QP instance was reused, the user
ended up with a corrupted parse tree containing bits of old queries as
well as bits of the new query.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/QueryParser.pm