developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 10 years ago

Closed 10 years ago

#1175 closed bug (fixed)

Queries executed by an installer should be in a transaction

Reported by: laurentj Owned by:
Priority: high Milestone: Jelix 1.2RC1
Component: jelix:installer Version: trunk
Severity: critical Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

If a SQL error occured during the execution of an install script, previous queries executed by this script should be rollbacked, so we can relaunch the installer safely.

Change History (1)

comment:1 Changed 10 years ago by laurentj

  • Resolution set to fixed
  • Status changed from new to closed

Too complex in fact.

Scripts should begin transaction themselves, depending of what they do.

However, an improvement have been done in the execSQLScript method of the installers : by default, queries are executed inside a transaction. http://bitbucket.org/jelix/jelix-trunk/changeset/5d882f5af477

Note: See TracTickets for help on using tickets.