On 26/05/20, Frank Millman (fr...@chagford.com) wrote: > I have a function that returns a complex SQL query and a tuple of > parameters. The query is stored inside the function as a triple-quoted > string, and the parameters are derived depending on the input arguments. > > Sometimes while testing I will comment out some of the SQL using '--'. If > those lines happen to contain a parameter placeholder ('%s') I expected to > remove the parameter from the tuple as well.
Could you provide an example?