mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Applied spelling fixes patch from Peter Eisentraut
This commit is contained in:
parent
b263fbf274
commit
557608f715
|
@ -309,7 +309,7 @@ The module exports a few exceptions in addition to the :ref:`standard ones
|
||||||
|
|
||||||
(subclasses `~psycopg2.OperationalError`)
|
(subclasses `~psycopg2.OperationalError`)
|
||||||
|
|
||||||
Error related to SQL query cancelation. It can be trapped specifically to
|
Error related to SQL query cancellation. It can be trapped specifically to
|
||||||
detect a timeout.
|
detect a timeout.
|
||||||
|
|
||||||
.. versionadded:: 2.0.7
|
.. versionadded:: 2.0.7
|
||||||
|
|
|
@ -1553,7 +1553,7 @@ static struct PyMemberDef cursorObject_members[] = {
|
||||||
{"rowcount", T_LONG, OFFSETOF(rowcount), RO,
|
{"rowcount", T_LONG, OFFSETOF(rowcount), RO,
|
||||||
"Number of rows read from the backend in the last command."},
|
"Number of rows read from the backend in the last command."},
|
||||||
{"arraysize", T_LONG, OFFSETOF(arraysize), 0,
|
{"arraysize", T_LONG, OFFSETOF(arraysize), 0,
|
||||||
"Number of records `fetchmany()` must fetch if not explicitely " \
|
"Number of records `fetchmany()` must fetch if not explicitly " \
|
||||||
"specified."},
|
"specified."},
|
||||||
{"description", T_OBJECT, OFFSETOF(description), RO,
|
{"description", T_OBJECT, OFFSETOF(description), RO,
|
||||||
"Cursor description as defined in DBAPI-2.0."},
|
"Cursor description as defined in DBAPI-2.0."},
|
||||||
|
|
|
@ -153,7 +153,7 @@ HIDDEN char *psycopg_escape_string(PyObject *conn,
|
||||||
|
|
||||||
#ifdef PSYCOPG_EXTENSIONS
|
#ifdef PSYCOPG_EXTENSIONS
|
||||||
#define QueryCanceledError_doc \
|
#define QueryCanceledError_doc \
|
||||||
"Error related to SQL query cancelation."
|
"Error related to SQL query cancellation."
|
||||||
|
|
||||||
#define TransactionRollbackError_doc \
|
#define TransactionRollbackError_doc \
|
||||||
"Error causing transaction rollback (deadlocks, serialisation failures, etc)."
|
"Error causing transaction rollback (deadlocks, serialisation failures, etc)."
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -114,7 +114,7 @@ class psycopg_build_ext(build_ext):
|
||||||
def get_compiler(self):
|
def get_compiler(self):
|
||||||
"""Return the name of the C compiler used to compile extensions.
|
"""Return the name of the C compiler used to compile extensions.
|
||||||
|
|
||||||
If a compiler was not explicitely set (on the command line, for
|
If a compiler was not explicitly set (on the command line, for
|
||||||
example), fall back on the default compiler.
|
example), fall back on the default compiler.
|
||||||
"""
|
"""
|
||||||
if self.compiler:
|
if self.compiler:
|
||||||
|
|
|
@ -204,8 +204,8 @@ class DeadlockSerializationTests(unittest.TestCase):
|
||||||
error, psycopg2.extensions.TransactionRollbackError))
|
error, psycopg2.extensions.TransactionRollbackError))
|
||||||
|
|
||||||
|
|
||||||
class QueryCancelationTests(unittest.TestCase):
|
class QueryCancellationTests(unittest.TestCase):
|
||||||
"""Tests for query cancelation."""
|
"""Tests for query cancellation."""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.conn = psycopg2.connect(tests.dsn)
|
self.conn = psycopg2.connect(tests.dsn)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user