Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'charset:iso-8859-7': 0.04; 'column': 0.07; 'says.': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.11; 'attribute.': 0.16; 'hits': 0.16; 'subject:run': 0.16; 'top-level': 0.16; 'module': 0.19; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In- Reply-To:1': 0.27; 'chris': 0.29; 'code': 0.31; 'says': 0.33; 'received:209.85': 0.35; 'received:google.com': 0.35; 'received:209': 0.37; 'skip:_ 30': 0.39; 'webpage': 0.68; '\xcc\xe1\xf1\xf4\xdf\xef\xf5': 0.84; '2013': 0.98 X-Received: by 10.49.6.66 with SMTP id y2mr1654106qey.18.1364444317734; Wed, 27 Mar 2013 21:18:37 -0700 (PDT) Newsgroups: comp.lang.python Date: Wed, 27 Mar 2013 21:18:37 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.83.207; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 References: <2ac959c6-d169-452f-b622-83fe25fbd8da@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.83.207 MIME-Version: 1.0 Subject: Re: Cannot run a single MySQLdb execute.... From: =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364444320 news.xs4all.nl 6849 [2001:888:2000:d::a6]:36667 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42090 =D4=E7 =D0=DD=EC=F0=F4=E7, 28 =CC=E1=F1=F4=DF=EF=F5 2013 6:08:28 =F0.=EC. U= TC+2, =EF =F7=F1=DE=F3=F4=E7=F2 Chris Angelico =DD=E3=F1=E1=F8=E5: > As it says in that document, paramstyle is a top-level module > attribute. Try printing it out. See what it says. Then match your code =20 sql =3D '''SELECT hits FROM counters WHERE url =3D %s''' % page print( sql ) cur.execute( sql ) Now the error says: _mysql_exceptions.OperationalError: (1054, "Unknown column 'index.html' in = 'where clause'") as you cna see at my webpage