Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.039 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.02; 'subject:error': 0.03; 'correct.': 0.07; 'dan': 0.09; 'subject:version': 0.09; 'cc:addr :python-list': 0.11; 'cc:name:python list': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'subject:that': 0.31; 'values.': 0.31; 'probably': 0.32; 'subject:the': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'should': 0.36; 'carefully': 0.74; 'subject:your': 0.76; 'subject:have': 0.80; 'subject:SQL': 0.84; 'subject:check': 0.84; 'subject:NEW': 0.91; 'to:none': 0.92; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=402Iol0iZ91xGgeLFBUNdvtD/n+bHq1+kuZHX0cpUPo=; b=v0mKCDHPIOnEnRfF6hKZFKeMQMO90Tuctk2a4VZ4VtSAom+GZisUpnzeou/FrdqUOw ROGwttii+TOalTG0RD9cCQfMhSKECyaJ7YZz7Ejgrj0QReRWbeUx7fW0cNudb1UHn3DK DAUehwJ6Ez7qUwdKd0VfWcskkc9c4W+iU/HYUaqFpKzZYfd6xGFZbnBNYhM6VhesQXAF l33r5h0P6TbKN5ZIMGFwi3PGwl4lbMD1GAdr2QX7DskWFrsLrVJtLM80TAwOiNRqBmHs JXJsDRrAVQq+qPQQuVoqGn+MxrU9diPkCd6OThfEfosBKmdEOKcGztEHtRyzCqIu+5G6 chxQ== MIME-Version: 1.0 X-Received: by 10.68.111.33 with SMTP id if1mr4018450pbb.31.1386692902772; Tue, 10 Dec 2013 08:28:22 -0800 (PST) In-Reply-To: References: <6b73a879-b490-48cb-a896-4d4abee90bf5@googlegroups.com> Date: Wed, 11 Dec 2013 03:28:22 +1100 Subject: Re: ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'S SIZE 11.5 NEW IN BOX', '$49.99')' at line 1") From: Chris Angelico Cc: Python List Content-Type: text/plain; charset=UTF-8 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: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386692912 news.xs4all.nl 2851 [2001:888:2000:d::a6]:36819 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61477 On Wed, Dec 11, 2013 at 3:23 AM, Dan Stromberg wrote: > > On Mon, Dec 9, 2013 at 12:41 AM, Jai wrote: >> >> >> sql = """insert into `category` (url, catagory,price) VAlUES >> ('%s', '%s', '%s')"""%(link1,x,y) > > > Is that VALUES or VAlUES or VAIUES? It probably should be VALUES. SQL's case insensitive. But I did have to check carefully to see that that really was correct. ChrisA