diff options
| author | Hiroshi Inoue | 2017-05-31 07:49:33 +0000 |
|---|---|---|
| committer | Hiroshi Inoue | 2017-05-31 07:49:33 +0000 |
| commit | 260981ad54edd08cb79088cf443f5e657424c352 (patch) | |
| tree | cb361444d959a99c245aac7bb482d231c199b7a1 /pgxalib.cpp | |
| parent | bfc4cb1b57dbf8fe3da5c03fbb91e0f49d243ddd (diff) | |
Rename "OK" button in Global settings dialog to "Save" button because the button updates the registry.
Diffstat (limited to 'pgxalib.cpp')
| -rwxr-xr-x | pgxalib.cpp | 4 |
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; } |
