X-Received: by 10.224.157.1 with SMTP id z1mr9586177qaw.8.1364443691681; Wed, 27 Mar 2013 21:08:11 -0700 (PDT) X-Received: by 10.49.81.198 with SMTP id c6mr1643973qey.37.1364443691615; Wed, 27 Mar 2013 21:08:11 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!t2no23401682qal.0!news-out.google.com!v17ni9qad.0!nntp.google.com!ca1no13947161qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Wed, 27 Mar 2013 21:08:11 -0700 (PDT) In-Reply-To: <2ac959c6-d169-452f-b622-83fe25fbd8da@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.83.207; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 NNTP-Posting-Host: 94.68.83.207 References: <2ac959c6-d169-452f-b622-83fe25fbd8da@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <27d81c51-92cc-40bf-b9c3-701c19fca282@googlegroups.com> Subject: Re: Cannot run a single MySQLdb execute.... From: =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= Cc: python-list@python.org Injection-Date: Thu, 28 Mar 2013 04:08:11 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.python:42085 If you mean if iam using '?' or this '%s' the latter used to work flawlessly with python 2.6 but it does not in pythin 3.2.3 both this command fail in python 3.x cur.execute( '''SELECT hits FROM counters WHERE url = ?''', (page,) ) cur.execute( '''SELECT hits FROM counters WHERE url = %s''', (page,) ) i dont have a clue why....