From 54744cb90ebf7ebe9ae60e6f4de12586c6d2083f Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Mon, 6 Feb 2023 08:55:12 +1100 Subject: [PATCH 10/42] odbc32: Foward SQLSetConnectAttr requets onto the driver --- dlls/odbc32/proxyodbc.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c index 6e4e1a68011..89062e9cadf 100644 --- a/dlls/odbc32/proxyodbc.c +++ b/dlls/odbc32/proxyodbc.c @@ -1812,6 +1812,7 @@ SQLRETURN WINAPI SQLSetConnectAttrW(SQLHDBC ConnectionHandle, SQLINTEGER Attribu SQLINTEGER StringLength) { struct SQLHDBC_data *hdbc = ConnectionHandle; + SQLRETURN ret = SQL_SUCCESS; TRACE("(ConnectionHandle %p, Attribute %d, Value %p, StringLength %d)\n", ConnectionHandle, Attribute, Value, StringLength); @@ -1831,11 +1832,18 @@ SQLRETURN WINAPI SQLSetConnectAttrW(SQLHDBC ConnectionHandle, SQLINTEGER Attribu hdbc->login_timeout = 0; break; default: - FIXME("Unhandle attribute %d\n", Attribute); - return SQL_ERROR; + if (hdbc->pSQLSetConnectAttrW) + ret = hdbc->pSQLSetConnectAttrW(hdbc->driver_hdbc, Attribute, Value, StringLength); + else + { + FIXME("Unsupported Attribute %d\n", Attribute); + ret = SQL_ERROR; + } } - return SQL_SUCCESS; + TRACE("ret %d\n", ret); + + return ret; } /************************************************************************* -- 2.39.1