2025-05-05 09:07:19 +10:00
|
|
|
From 99f47c28203a9f80e3575fa15c424f1dee320cab Mon Sep 17 00:00:00 2001
|
2025-04-26 12:34:21 +10:00
|
|
|
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
|
|
|
Date: Sat, 26 Apr 2025 17:51:54 +1000
|
2025-05-05 09:07:19 +10:00
|
|
|
Subject: [PATCH] odbc32: SQLSetStmtAttrW add ANSI fallback
|
2025-04-26 12:34:21 +10:00
|
|
|
|
|
|
|
---
|
2025-04-28 11:04:44 +10:00
|
|
|
dlls/odbc32/proxyodbc.c | 8 +++++++-
|
|
|
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
2025-04-26 12:34:21 +10:00
|
|
|
|
|
|
|
diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c
|
2025-05-05 09:07:19 +10:00
|
|
|
index ca5cd3214cd..d8ec78d5ca7 100644
|
2025-04-26 12:34:21 +10:00
|
|
|
--- a/dlls/odbc32/proxyodbc.c
|
|
|
|
+++ b/dlls/odbc32/proxyodbc.c
|
2025-05-05 09:07:19 +10:00
|
|
|
@@ -8078,7 +8078,13 @@ static SQLRETURN set_stmt_attr_win32_w( struct statement *stmt, SQLINTEGER attr,
|
2025-04-26 12:34:21 +10:00
|
|
|
{
|
|
|
|
if (stmt->hdr.win32_funcs->SQLSetStmtAttrW)
|
|
|
|
return stmt->hdr.win32_funcs->SQLSetStmtAttrW( stmt->hdr.win32_handle, attr, value, len );
|
|
|
|
- if (stmt->hdr.win32_funcs->SQLSetStmtAttr) FIXME( "Unicode to ANSI conversion not handled\n" );
|
|
|
|
+ if (stmt->hdr.win32_funcs->SQLSetStmtAttr)
|
|
|
|
+ {
|
2025-04-28 11:04:44 +10:00
|
|
|
+ SQLRETURN ret = stmt->hdr.win32_funcs->SQLSetStmtAttr( stmt->hdr.win32_handle, attr, value, len );
|
|
|
|
+ if (ret == SQL_ERROR)
|
|
|
|
+ FIXME( "Unicode to ANSI conversion not handled (%d)\n", attr );
|
|
|
|
+ return ret;
|
2025-04-26 12:34:21 +10:00
|
|
|
+ }
|
|
|
|
else if (stmt->hdr.win32_funcs->SQLSetStmtOption)
|
|
|
|
{
|
|
|
|
/* ODBC v2.0 */
|
|
|
|
--
|
|
|
|
2.47.2
|
|
|
|
|