Homec4science

dbquery: connection safety for execute statements

Authored by Tibor Simko <tibor.simko@cern.ch> on Nov 10 2009, 21:34.

Description

dbquery: connection safety for execute statements

  • Added more re-connection safety for run_sql() and run_sql_many() by enveloping cursor execute statements in a try/except clause, as it used to be before run_sql_many() was introduced. This fixes recently observed problems of the type `MySQL server has gone away' on some configurations.
  • Removed unused code related to query warnings.
  • Other minor docstring and cosmetic changes.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Nov 10 2009, 22:10
Parents
R3600:80fdbdc8bb86: I18N: infrastructure for the Romanian translation
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:6f5cceebe988: dbquery: connection safety for execute statements (authored by Tibor Simko <tibor.simko@cern.ch>).Nov 10 2009, 22:10