psqlodbc.git / summary / log / commit / refs
commit bf15d5434cfa35aed7bb8335209f866eb299e22e
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Tue Jan 06 09:36:57 2015 +0000
Fix building with MSDTC=no.
setup.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/setup.c b/setup.c
index 91773936..fbb05500 100644
--- a/setup.c
+++ b/setup.c
@@ -442,6 +442,7 @@ void test_connection(HANDLE hwnd, ConnInfo *ci, BOOL withDTC)
emsg = szMsg;
if (withDTC)
{
+#ifdef _HANDLE_ENLIST_IN_DTC_
HRESULT res;
void *pObj = NULL;
@@ -466,6 +467,9 @@ void test_connection(HANDLE hwnd, ConnInfo *ci, BOOL withDTC)
}
else if (FAILED(res))
snprintf(szMsg, sizeof(szMsg), "%s\nDistibuted Transaction enlistment error %x", emsg, res);
+#else /* _HANDLE_ENLIST_IN_DTC_ */
+ snprintf(szMsg, sizeof(szMsg), "%s\nDistibuted Transaction enlistment not supported by this driver", emsg);
+#endif
}
}
else
[parent: f807c6488ea0]