mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
42 lines
1.2 KiB
Diff
42 lines
1.2 KiB
Diff
|
From 20e5843387fd2daf28414b529dddd83dafa23cae Mon Sep 17 00:00:00 2001
|
||
|
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
||
|
Date: Mon, 6 Feb 2023 11:47:40 +1100
|
||
|
Subject: [PATCH 26/42] odbc32: Implement SQLFreeStmt
|
||
|
|
||
|
---
|
||
|
dlls/odbc32/proxyodbc.c | 15 ++++++++++++++-
|
||
|
1 file changed, 14 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c
|
||
|
index 821c769c865..18efa222945 100644
|
||
|
--- a/dlls/odbc32/proxyodbc.c
|
||
|
+++ b/dlls/odbc32/proxyodbc.c
|
||
|
@@ -807,10 +807,23 @@ SQLRETURN WINAPI SQLFreeHandle(SQLSMALLINT HandleType, SQLHANDLE Handle)
|
||
|
*/
|
||
|
SQLRETURN WINAPI SQLFreeStmt(SQLHSTMT StatementHandle, SQLUSMALLINT Option)
|
||
|
{
|
||
|
+ struct SQLHSTMT_data *statement = StatementHandle;
|
||
|
SQLRETURN ret = SQL_ERROR;
|
||
|
|
||
|
- FIXME("(StatementHandle %p, Option %d)\n", StatementHandle, Option);
|
||
|
+ TRACE("(StatementHandle %p, Option %d)\n", StatementHandle, Option);
|
||
|
|
||
|
+ if (statement->type != SQL_HANDLE_STMT)
|
||
|
+ {
|
||
|
+ WARN("Wrong handle type %d\n", statement->type);
|
||
|
+ return SQL_ERROR;
|
||
|
+ }
|
||
|
+
|
||
|
+ if (statement->connection->pSQLFreeStmt)
|
||
|
+ {
|
||
|
+ ret = statement->connection->pSQLFreeStmt(statement->driver_stmt, Option);
|
||
|
+ }
|
||
|
+
|
||
|
+ TRACE("ret %d\n", ret);
|
||
|
return ret;
|
||
|
}
|
||
|
|
||
|
--
|
||
|
2.39.1
|
||
|
|