projects
/
psqlodbc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fec66e
)
Ensure a commit is issued after connection setup is autocommit is off (bug 1000476...
author
Dave Page
<dpage@pgadmin.org>
Fri, 9 Dec 2005 22:59:13 +0000
(22:59 +0000)
committer
Dave Page
<dpage@pgadmin.org>
Fri, 9 Dec 2005 22:59:13 +0000
(22:59 +0000)
connection.c
patch
|
blob
|
blame
|
history
diff --git
a/connection.c
b/connection.c
index 673cc88ac31dd97360d9c22fa6ce012a330bc8cd..f450091901bbeba9dd649b546f1314d41ddb697b 100644
(file)
--- a/
connection.c
+++ b/
connection.c
@@
-1343,6
+1343,9
@@
CC_connect(ConnectionClass *self, char password_req, char *salt_para)
ci->updatable_cursors = ci->allow_keyset;
#endif /* DRIVER_CURSOR_IMPLEMENT */
+ if (!CC_is_in_autocommit(self))
+ CC_commit(self);
+
CC_clear_error(self); /* clear any initial command errors */
self->status = CONN_CONNECTED;