2024-06-06 19:55:05 -07:00
|
|
|
From e74193b1a57027b193e190fa41c5b85eee39e1b8 Mon Sep 17 00:00:00 2001
|
2023-02-16 15:44:46 -08:00
|
|
|
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
|
|
|
Date: Wed, 8 Feb 2023 09:03:40 +1100
|
2024-06-06 19:55:05 -07:00
|
|
|
Subject: [PATCH] odbc32: Pass ODBC version when creating driver environment
|
2023-02-16 15:44:46 -08:00
|
|
|
|
|
|
|
---
|
|
|
|
dlls/odbc32/proxyodbc.c | 5 +++++
|
|
|
|
1 file changed, 5 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c
|
2024-06-06 19:55:05 -07:00
|
|
|
index 901e2dca006..35ff5b7fc35 100644
|
2023-02-16 15:44:46 -08:00
|
|
|
--- a/dlls/odbc32/proxyodbc.c
|
|
|
|
+++ b/dlls/odbc32/proxyodbc.c
|
2024-06-06 19:55:05 -07:00
|
|
|
@@ -2546,6 +2546,11 @@ SQLRETURN WINAPI SQLDriverConnectW(SQLHDBC ConnectionHandle, SQLHWND WindowHandl
|
2023-02-16 15:44:46 -08:00
|
|
|
if (connection->pSQLAllocHandle)
|
|
|
|
{
|
|
|
|
connection->pSQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &connection->driver_env);
|
|
|
|
+
|
|
|
|
+ if (connection->pSQLSetEnvAttr)
|
|
|
|
+ connection->pSQLSetEnvAttr(connection->driver_env, SQL_ATTR_ODBC_VERSION,
|
|
|
|
+ (SQLPOINTER)connection->environment->version, 0);
|
|
|
|
+
|
|
|
|
connection->pSQLAllocHandle(SQL_HANDLE_DBC, connection->driver_env, &connection->driver_hdbc);
|
|
|
|
}
|
2024-06-06 19:55:05 -07:00
|
|
|
else if(connection->pSQLAllocConnect && connection->pSQLAllocEnv)
|
2023-02-16 15:44:46 -08:00
|
|
|
--
|
2024-06-06 19:55:05 -07:00
|
|
|
2.43.0
|
2023-02-16 15:44:46 -08:00
|
|
|
|