Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 96386 invoked from network); 14 Dec 2006 07:50:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2006 07:50:17 -0000 Received: (qmail 71271 invoked by uid 500); 14 Dec 2006 07:50:25 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 71247 invoked by uid 500); 14 Dec 2006 07:50:25 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 71236 invoked by uid 99); 14 Dec 2006 07:50:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 23:50:24 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 23:50:16 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id EF32A1A981A; Wed, 13 Dec 2006 23:49:30 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r487088 - in /db/derby/docs/trunk/src: devguide/cdevconcepts15366.dita devguide/cdevconcepts22300.dita ref/rrefjavcsti.dita ref/rrefsqlj41180.dita Date: Thu, 14 Dec 2006 07:49:30 -0000 To: derby-commits@db.apache.org From: kahatlen@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061214074930.EF32A1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kahatlen Date: Wed Dec 13 23:49:30 2006 New Revision: 487088 URL: http://svn.apache.org/viewvc?view=rev&rev=487088 Log: DERBY-2060: SET CURRENT ISOLATION in ref.man refers java.sql.Connection.setTransactionLevel instead of java.sql.Connection.setTransactionIsolation Patch contributed by Kim Haase. Modified: db/derby/docs/trunk/src/devguide/cdevconcepts15366.dita db/derby/docs/trunk/src/devguide/cdevconcepts22300.dita db/derby/docs/trunk/src/ref/rrefjavcsti.dita db/derby/docs/trunk/src/ref/rrefsqlj41180.dita Modified: db/derby/docs/trunk/src/devguide/cdevconcepts15366.dita URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/devguide/cdevconcepts15366.dita?view=diff&rev=487088&r1=487087&r2=487088 ============================================================================== --- db/derby/docs/trunk/src/devguide/cdevconcepts15366.dita (original) +++ db/derby/docs/trunk/src/devguide/cdevconcepts15366.dita Wed Dec 13 23:49:30 2006 @@ -44,8 +44,19 @@ locking out transactions. Lower isolation levels thus allow greater concurrency.

Inserts, updates, and deletes always behave the same no matter what the isolation level is. Only the behavior of select statements varies.

-

To set isolation levels you can use the JDBC Connection.setIsolationLevel method -or the SQL SET ISOLATION statement. The names of the isolation levels are +

To set isolation levels you can use the JDBC Connection.setTransactionIsolation method +or the SQL SET ISOLATION statement.

+

If there is an active transaction, the network client driver always commits +the active transaction, whether you use the JDBC +Connection.setTransactionIsolation method or the SQL SET ISOLATION +statement. It does this even if the method call or statement does not actually +change the isolation level (that is, if it sets the isolation level to its +current value). The embedded driver also always commits the active transaction +if you use the SET ISOLATION statement. However, if you use the +Connection.setTransactionIsolation method, the embedded driver commits +the active transaction only if the call to Connection.setTransactionIsolation +actually changes the isolation level.

+

The names of the isolation levels are different, depending on whether you use a JDBC method or SQL statement. shows the equivalent names for isolation levels whether they are set through the JDBC method or @@ -63,7 +74,7 @@ -Connection.TRANSACTION_READ_ UNCOMMITTED (ANSI level +Connection.TRANSACTION_READ_UNCOMMITTED (ANSI level 0) UR, DIRTY READ, READ UNCOMMITTED Modified: db/derby/docs/trunk/src/devguide/cdevconcepts22300.dita URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/devguide/cdevconcepts22300.dita?view=diff&rev=487088&r1=487087&r2=487088 ============================================================================== --- db/derby/docs/trunk/src/devguide/cdevconcepts22300.dita (original) +++ db/derby/docs/trunk/src/devguide/cdevconcepts22300.dita Wed Dec 13 23:49:30 2006 @@ -39,10 +39,13 @@ within an SQL statement. For more information, see "SET ISOLATION statement" in the . You can use the WITH clause to change the isolation level for the current statement -only, not the transaction. For information about the"WITH clause," see the -"SELECT statement"in the .

+only, not the transaction. For information about the WITH clause, see +"SELECT statement" in the .

In all cases except when you change the isolation level using the WITH -clause, changing the isolation level commits the current transaction.

+clause, changing the isolation level commits the current transaction. In most +cases, the current transaction is committed even if you set the isolation level +in a way that does not change it (that is, if you set it to its current value). +See for details.

For information about how to choose a particular isolation level, see . Modified: db/derby/docs/trunk/src/ref/rrefjavcsti.dita URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ref/rrefjavcsti.dita?view=diff&rev=487088&r1=487087&r2=487088 ============================================================================== --- db/derby/docs/trunk/src/ref/rrefjavcsti.dita (original) +++ db/derby/docs/trunk/src/ref/rrefjavcsti.dita Wed Dec 13 23:49:30 2006 @@ -30,8 +30,11 @@ java.sql.Connection.TRANSACTION_READ_COMMITTED, and java.sql.Connection.TRANSACTION_READ_UNCOMMITTED transaction isolations are available from a database.

TRANSACTION_READ_COMMITTED is the default isolation level.

-

Changing the current isolation for the connection with setConnection commits -the current transaction and begins a new transaction, per the JDBC standard.

+

Changing the current isolation for the connection with setTransactionIsolation commits +the current transaction and begins a new transaction. +For more details about transaction isolation, see "Locking, concurrency, and +isolation" in the +.

Modified: db/derby/docs/trunk/src/ref/rrefsqlj41180.dita URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ref/rrefsqlj41180.dita?view=diff&rev=487088&r1=487087&r2=487088 ============================================================================== --- db/derby/docs/trunk/src/ref/rrefsqlj41180.dita (original) +++ db/derby/docs/trunk/src/ref/rrefsqlj41180.dita Wed Dec 13 23:49:30 2006 @@ -19,18 +19,26 @@ -SET CURRENT ISOLATION statement +SET ISOLATION statement SET ISOLATION statementISOLATION -

The SET CURRENT ISOLATION LEVEL statement allows a user to change +

The SET ISOLATION statement allows a user to change the isolation level for the user's connection. Valid levels are SERIALIZABLE, REPEATABLE READ, READ COMMITTED, and READ UNCOMMITTED.

Issuing this -command commits the current transaction, which is consistent with the java.sql.Connection.setTransactionLevel method.

For -information about isolation levels, see "Locking, Concurrency, and Isolation" -in the .

+statement always commits the current transaction. The JDBC +java.sql.Connection.setTransactionIsolation method behaves almost +identically to this command, with one exception: if you are using the embedded +driver, and if the call to java.sql.Connection.setTransactionIsolation +does not actually change the isolation level (that is, if it sets the isolation +level to its current value), the current transaction is not committed.

+

For information about isolation levels, see "Locking, concurrency, and +isolation" +in the . For +information about the JDBC java.sql.Connection.setTransactionIsolation +method, see .

Syntax SET [ CURRENT ] ISOLATION [ = ] { UR | DIRTY READ | READ UNCOMMITTED