~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/start_transaction.rst

  • Committer: Brian Aker
  • Date: 2010-12-25 00:28:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2031.
  • Revision ID: brian@tangent.org-20101225002849-g73mg6ihulajis0o
First pass in refactoring of the name of my_decimal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
START TRANSACTION
2
2
======================
3
3
 
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. ::
 
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. ::
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.