~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/start_transaction.rst

  • Committer: Brian Aker
  • Date: 2011-01-06 05:17:09 UTC
  • Revision ID: brian@tangent.org-20110106051709-oa0se8ur02uc6i9o
Added native functions into the function table.

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.