in reply to Question re SQL::Abstract (or something similar, whose existence I ignore!)
It's possible that you're building up your query clauses too early. Why not just build up the "where" hash that SQL::Abstract wants and turn that into your statement and bind variable only just before running the query?
Also, you might look at SQL::Interpolate. You can similarly just keep building up a list of clauses and then fire them all off to SQL::Interpolate at once right before you run your query.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Question re SQL::Abstract (or something similar, whose existence I ignore!)
by blazar (Canon) on May 18, 2006 at 17:08 UTC | |
by xdg (Monsignor) on May 18, 2006 at 21:54 UTC | |
by blazar (Canon) on May 19, 2006 at 14:47 UTC |