On 17/09/2010 15:59, Victor Subervi wrote:
I rebooted MySQL and it now works fine ;)

I recommend that you always list the column names explicitly to be on
the safe side:

cursor.execute('insert into Passengers (flights_id, customer_id, name, sex , weight, price, round_trip, confirmation, late_fee, late_fee_paid) values (%s, %s, %s, %s, %s, %s, %s, %s, "no", "n/a")', (curr_flight, curr_customer, name, curr_sex, curr_weight, price, curr_rt, curr_confirmation))

[snip code]
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to