~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/start_transaction.rst

  • Committer: Stewart Smith
  • Date: 2010-11-07 04:22:31 UTC
  • mto: (1911.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1912.
  • Revision ID: stewart@flamingspork.com-20101107042231-ola4sl7j0qvg58tz
fix ARCHIVE storage engine calling exit (lintian warning). Was because we were linking in libinternal into libazio, which links into archive plugin. Just link libinternal into the command line utilities.

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. ::
5
 
 
6
 
        START TRANSACTION [WITH CONSISTENT SNAPSHOT]
7
 
        BEGIN
8
 
 
9
 
.. warning::
10
 
 
11
 
   If you are currently already in a transaction Drizzle will give a warning
12
 
   stating that you are in a transaction in a similar way to PostgreSQL.
13
 
   This is instead of implicitly committing the transaction in the way MySQL
14
 
   does.
 
4
START TRANSACTION [WITH CONSISTENT SNAPSHOT]
 
5
 
 
6
Will begin a transaction. SET AUTOMCOMMIT must be set to zero in order for
 
7
this to work. The transaction is then run until either the connection to the
 
8
database is dropped, or a rollback or a commit command is sent.