Re: Minor issue

From: Rory Campbell-Lange <rory(at)campbell-lange(dot)net>
To: Frank Millman <frank(at)chagford(dot)com>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: Minor issue
Date: 2020-05-26 11:45:41
Message-ID: 20200526114541.GA21741@campbell-lange.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On 26/05/20, Frank Millman (frank(at)chagford(dot)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?

In response to

  • Minor issue at 2020-05-26 11:42:56 from Frank Millman

Responses

Browse psycopg by date

  From Date Subject
Next Message Frank Millman 2020-05-26 12:00:56 Re: Minor issue
Previous Message Frank Millman 2020-05-26 11:42:56 Minor issue