You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
From 6a5e8b2df87ec1221ff85a4cef6d7eb9900ffafc Mon Sep 17 00:00:00 2001
|
|
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
|
Date: Sat, 26 Apr 2025 17:51:54 +1000
|
|
Subject: [PATCH] odbc32: SQLSetStmtAttrW add ANSI fallback
|
|
|
|
---
|
|
dlls/odbc32/proxyodbc.c | 8 +++++++-
|
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c
|
|
index ab81b0d2bb7..bfec7c0aa18 100644
|
|
--- a/dlls/odbc32/proxyodbc.c
|
|
+++ b/dlls/odbc32/proxyodbc.c
|
|
@@ -8149,7 +8149,13 @@ static SQLRETURN set_stmt_attr_win32_w( struct statement *stmt, SQLINTEGER attr,
|
|
{
|
|
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)
|
|
+ {
|
|
+ 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;
|
|
+ }
|
|
else if (stmt->hdr.win32_funcs->SQLSetStmtOption)
|
|
{
|
|
/* ODBC v2.0 */
|
|
--
|
|
2.50.1
|
|
|