projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53bc96a
)
Do not set connection values if no connection is open.
author
Michael Meskes
<
[email protected]
>
Thu, 3 Sep 2009 09:09:01 +0000
(09:09 +0000)
committer
Michael Meskes
<
[email protected]
>
Thu, 3 Sep 2009 09:09:01 +0000
(09:09 +0000)
src/interfaces/ecpg/ecpglib/misc.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/ecpglib/misc.c
b/src/interfaces/ecpg/ecpglib/misc.c
index 7e27f27191b99d179db37a5de6a74a327a50b411..1257e95f4c1d1096491d0c18666d1808c4c39978 100644
(file)
--- a/
src/interfaces/ecpg/ecpglib/misc.c
+++ b/
src/interfaces/ecpg/ecpglib/misc.c
@@
-202,12
+202,12
@@
ECPGtrans(int lineno, const char *connection_name, const char *transaction)
if (!ecpg_check_PQresult(res, lineno, con->connection, ECPG_COMPAT_PGSQL))
return FALSE;
PQclear(res);
- }
- if (strncmp(transaction, "commit", 6) == 0 || strncmp(transaction, "rollback", 8) == 0)
- con->committed = true;
- else
- con->committed = false;
+ if (strncmp(transaction, "commit", 6) == 0 || strncmp(transaction, "rollback", 8) == 0)
+ con->committed = true;
+ else
+ con->committed = false;
+ }
return true;
}