From 260981ad54edd08cb79088cf443f5e657424c352 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Wed, 31 May 2017 16:49:33 +0900 Subject: Rename "OK" button in Global settings dialog to "Save" button because the button updates the registry. --- pgxalib.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pgxalib.cpp') diff --git a/pgxalib.cpp b/pgxalib.cpp index f78976e..69d0966 100755 --- a/pgxalib.cpp +++ b/pgxalib.cpp @@ -39,6 +39,8 @@ private: vector 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; } -- cgit v1.2.3