Default isolation level set to 2 if not set in the server.

This commit is contained in:
Federico Di Gregorio 2005-10-08 03:14:13 +00:00
parent 06c8434520
commit 6e69ac665f

View File

@ -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) {