From 896ad7c827f232657cd179e01a69754e08e89f1f Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 12 Nov 2012 01:32:38 +0000 Subject: [PATCH] Fixed a couple of terms in the docs After Pierre-Louis Bonicoli's suggestions in ticket #138. --- doc/src/usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/usage.rst b/doc/src/usage.rst index 06e51794..a2c9b3fe 100644 --- a/doc/src/usage.rst +++ b/doc/src/usage.rst @@ -51,7 +51,7 @@ The main entry points of Psycopg are: - create new `cursor`\s using the `~connection.cursor()` method to execute database commands and queries, - - terminate the session using the methods `~connection.commit()` or + - terminate transactions using the methods `~connection.commit()` or `~connection.rollback()`. - The class `cursor` allows interaction with the database: @@ -529,7 +529,7 @@ It is possible to set the connection in *autocommit* mode: this way all the commands executed will be immediately committed and no rollback is possible. A few commands (e.g. :sql:`CREATE DATABASE`, :sql:`VACUUM`...) require to be run outside any transaction: in order to be able to run these commands from -Psycopg, the session must be in autocommit mode: you can use the +Psycopg, the connection must be in autocommit mode: you can use the `~connection.autocommit` property (`~connection.set_isolation_level()` in older versions).