more useful options | |
PerlMonks |
Re: Re: Re: Prepared query not accepting || instruction at executionby CountZero (Bishop) |
on Dec 29, 2002 at 09:18 UTC ( [id://222893]=note: print w/replies, xml ) | Need Help?? |
In that case you will need two placeholders: one for the 'Y' and one for the 'N'. Using placehodlers will do all the quoting internally for you. This means that your filterstring will be quoted in such a way that it is no longer a boolean operation but a single string to be matched against. Hence, the empty recordset as a result. If for reasons internally to the logic of your program, you need the filterstring to be modifiable (e.g. sometimes 'OR' or 'AND' or more or less arguments, ...) then the only solution is to put the SQL string together yourself and not rely on placeholders. CountZero "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In Section
Seekers of Perl Wisdom
|
|