Re: No tuples, but AttributeError about tuple!

2009-10-05 Thread Victor Subervi
d', '', '', '', '', '', ''); > > Values are enclosed in single quotes for SQL. > > - Original Message - From: "Victor Subervi" < > victorsube...@gmail.com> > To: "Michael Dykman" ; >

Re: No tuples, but AttributeError about tuple!

2009-10-05 Thread Victor Subervi
You were right about the % I'd forgotten. Still, I got the same error. So I tried to change the command to this: insert into products (ID, Name, Title, Description, Price, Bedrooms, Bathrooms, Conditions, Acreage, Construction, Location, Estate, Address, Furnished, pic1, pic2, pic3, pic4, pic5, pi

Re: No tuples, but AttributeError about tuple!

2009-10-04 Thread Michael Dykman
This looks like much more of a python question than a MySQL question.. I'll reply offline. - michael dykman On Sun, Oct 4, 2009 at 2:04 PM, Victor Subervi wrote: > Hi; > I have the following python code: >      sql = 'insert into products values(%s, %s, %s, %s, %s, %s, %s, %s, %s, > %s, %s, %s