In extensions.py: COMMITED -> COMMITTED. (Closes: #73)

This commit is contained in:
Federico Di Gregorio 2005-11-19 14:20:41 +00:00
parent b97b0b04de
commit f4fee20b3b
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
2005-11-19 Federico Di Gregorio <fog@initd.org> 2005-11-19 Federico Di Gregorio <fog@initd.org>
* lib/extensions.py: COMMITED -> COMMITTED. (Closes: #73)
* doc/extensions.rst: included Daniele's work after minor cosmetic changes * doc/extensions.rst: included Daniele's work after minor cosmetic changes
like using the new constants instead of numbers for transaction isolation like using the new constants instead of numbers for transaction isolation
levels. levels.

View File

@ -42,12 +42,12 @@ from _psycopg import ISQLQuote
"""Isolation level values.""" """Isolation level values."""
ISOLATION_LEVEL_AUTOCOMMIT = 0 ISOLATION_LEVEL_AUTOCOMMIT = 0
ISOLATION_LEVEL_READ_COMMITED = 1 ISOLATION_LEVEL_READ_COMMITTED = 1
ISOLATION_LEVEL_SERIALIZABLE = 2 ISOLATION_LEVEL_SERIALIZABLE = 2
# Postgresql maps the the other standard values to already defined levels # PostgreSQL maps the the other standard values to already defined levels
ISOLATION_LEVEL_REPEATABLE_READ = ISOLATION_LEVEL_SERIALIZABLE ISOLATION_LEVEL_REPEATABLE_READ = ISOLATION_LEVEL_SERIALIZABLE
ISOLATION_LEVEL_READ_UNCOMMITTED = ISOLATION_LEVEL_READ_COMMITED ISOLATION_LEVEL_READ_UNCOMMITTED = ISOLATION_LEVEL_READ_COMMITTED
def register_adapter(typ, callable): def register_adapter(typ, callable):