Re: Why isn't this query working in python?
En Mon, 28 May 2007 14:53:57 -0300, Dennis Lee Bieber
<wlfraed@ix.net com.comescribió :
Yes, the original message said self.amember_cu rsor.execute(*s ql)
It IS confusing...
--
Gabriel Genellina
En Mon, 28 May 2007 14:53:57 -0300, Dennis Lee Bieber
<wlfraed@ix.net com.comescribió :
On Sun, 27 May 2007 20:35:28 -0400, Carsten Haese <carsten@uniqsy s.com>
declaimed the following in comp.lang.pytho n:
>
>
It's confusing, as the example shown is not the common form for
parameter passing on the .execute() call -- without the .execute() it is
unclear. I presume the .execute() is using *sql to unpack the tuple...
declaimed the following in comp.lang.pytho n:
>
>On Sun, 2007-05-27 at 16:39 -0400, davelist@mac.co m wrote:
sql = """SELECT payment_id FROM amember_payment s WHERE
member_id=%s AND expire_date NOW() AND completed=1 AND (product_id
>>11 AND product_id <21)""", (self.uid)
member_id=%s AND expire_date NOW() AND completed=1 AND (product_id
>>11 AND product_id <21)""", (self.uid)
It's confusing, as the example shown is not the common form for
parameter passing on the .execute() call -- without the .execute() it is
unclear. I presume the .execute() is using *sql to unpack the tuple...
It IS confusing...
--
Gabriel Genellina
Comment