How about just adding a '0 = 1' condition to the statement?
I'd prefer to build the sql from separate parts (column-list, table list, join-list, condition-list, with only columns and conditions user-defined), but that would obviously be quite another approach, and more work.
In reply to Re: DBI - validate SQL without executing
by erix
in thread DBI - validate SQL without executing
by Errto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |