summaryrefslogtreecommitdiff
path: root/pgxalib.cpp
diff options
context:
space:
mode:
authorHiroshi Inoue2017-05-31 07:49:33 +0000
committerHiroshi Inoue2017-05-31 07:49:33 +0000
commit260981ad54edd08cb79088cf443f5e657424c352 (patch)
treecb361444d959a99c245aac7bb482d231c199b7a1 /pgxalib.cpp
parentbfc4cb1b57dbf8fe3da5c03fbb91e0f49d243ddd (diff)
Rename "OK" button in Global settings dialog to "Save" button because the button updates the registry.
Diffstat (limited to 'pgxalib.cpp')
-rwxr-xr-xpgxalib.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/pgxalib.cpp b/pgxalib.cpp
index f78976e..69d0966 100755
--- a/pgxalib.cpp
+++ b/pgxalib.cpp
@@ -39,6 +39,8 @@ private:
vector<string> qvec;
int pos;
bool immediateConnection;
+ string sqlState;
+ string errMsg;
void parse_xa_info();
public:
@@ -150,6 +152,8 @@ HDBC XAConnection::ActivateConnection(void)
1, sqlstate, NULL, errmsg,
sizeof(errmsg), NULL);
mylog("SQLDriverConnect return=%d sqlstate=%s error=%s\n", ret, sqlstate, errmsg);
+ sqlState = (char *) sqlstate;
+ errMsg = (char *) errmsg;
SQLFreeHandle(SQL_HANDLE_DBC, xaconn);
xaconn = NULL;
}