in reply to DBI - validate SQL without executing
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.
|
|---|