Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/08/2010, 23:12
Avatar de razpeitia
razpeitia
Moderador
 
Fecha de Ingreso: marzo-2005
Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 19 años, 1 mes
Puntos: 1360
Respuesta: MySql Commit InnoDB

Nunca llegas a hacer el commit, por que siempre retornas antes de llegar al commit

Correccion:
Código Python:
Ver original
  1. def executeone(self, consulta):
  2.         self.cursor=self.conn.cursor()
  3.         try:
  4.             self.cursor.execute(consulta)        
  5.             registro=self.cursor.fetchone ()
  6.             self.conn.commit()
  7.             self.cursor.close
  8.             return registro
  9.         except MySQLdb.Error, e:
  10.             return False