~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/start_transaction.rst

  • Committer: Lee Bieber
  • Date: 2011-01-15 03:08:27 UTC
  • mfrom: (1994.5.38 doc)
  • mto: This revision was merged to the branch mainline in revision 2087.
  • Revision ID: kalebral@gmail.com-20110115030827-0h9s99kiknrmt9ti
Merge Stewart - some documentation clean up

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
START TRANSACTION
2
2
======================
3
3
 
4
 
How do you begin a transaction in Drizzle? First of all, SET AUTOMCOMMIT must be set to zero. A transaction can then run until either the connection to the database is dropped, or a rollback or a commit command is sent. ::
 
4
A transaction can be started with either the BEGIN or START TRANSACTION statements. It can also be started by any statement when AUTOCOMMIT is disabled. A transaction can then run until either the connection to the database is dropped (in which case it is rolled back), or an explicit rollback or a commit command is sent. ::
5
5
 
6
6
        START TRANSACTION [WITH CONSISTENT SNAPSHOT]
 
7
        BEGIN
 
8
 
 
9
When https://bugs.launchpad.net/drizzle/+bug/674719 is fixed, Drizzle will have the PostgreSQL like behaviour of giving an error if a transaction is already in progress.