Strange MySQL Problem...

John Nagle nagle at animats.com
Thu Apr 3 07:35:51 CEST 2008


Gabriel Genellina wrote:
> En Wed, 02 Apr 2008 16:36:43 -0300, Victor Subervi 
> <victorsubervi at gmail.com> escribió:
> 
>> I have this code which works fine:
> 
> "works fine"? Please check again...
> The same remarks I've posted earlier apply here.

    In addition, you're not committing the database update.
You need to do

    connection.commit()

after updating.

    In general, server side programs should have a try-block
wrapped around most of the program, with some code to display or
log errors in some useful way.

					John Nagle



More information about the Python-list mailing list