Re: Minor issue - Mailing list psycopg

From Rory Campbell-Lange
Subject Re: Minor issue
Date
Msg-id 20200526114541.GA21741@campbell-lange.net
Whole thread Raw
In response to Minor issue  (Frank Millman <frank@chagford.com>)
Responses Re: Minor issue  (Frank Millman <frank@chagford.com>)
List psycopg
On 26/05/20, Frank Millman (frank@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?



psycopg by date:

Previous
From: Frank Millman
Date:
Subject: Minor issue
Next
From: Frank Millman
Date:
Subject: Re: Minor issue