mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 10:53:44 +03:00
Default isolation level set to 2 if not set in the server.
This commit is contained in:
parent
06c8434520
commit
6e69ac665f
|
@ -131,6 +131,8 @@ conn_connect(connectionObject *self)
|
||||||
else if ((strncmp(lvl2a, data, strlen(lvl2a)) == 0)
|
else if ((strncmp(lvl2a, data, strlen(lvl2a)) == 0)
|
||||||
|| (strncmp(lvl2b, data, strlen(lvl2b)) == 0))
|
|| (strncmp(lvl2b, data, strlen(lvl2b)) == 0))
|
||||||
self->isolation_level = 2;
|
self->isolation_level = 2;
|
||||||
|
else
|
||||||
|
self->isolation_level = 2;
|
||||||
CLEARPGRES(pgres);
|
CLEARPGRES(pgres);
|
||||||
|
|
||||||
if (PQsetnonblocking(pgconn, 1) != 0) {
|
if (PQsetnonblocking(pgconn, 1) != 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user