2024-06-23 00:08:28 -07:00
|
|
|
From bf680aa668ce942e0f7d37333c3680561ec45b84 Mon Sep 17 00:00:00 2001
|
2023-02-16 15:44:46 -08:00
|
|
|
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
|
|
|
Date: Mon, 6 Feb 2023 11:47:40 +1100
|
2024-06-23 00:08:28 -07:00
|
|
|
Subject: [PATCH] odbc32: Implement SQLFreeStmt
|
2023-02-16 15:44:46 -08:00
|
|
|
|
|
|
|
---
|
|
|
|
dlls/odbc32/proxyodbc.c | 15 ++++++++++++++-
|
|
|
|
1 file changed, 14 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c
|
2024-06-23 00:08:28 -07:00
|
|
|
index 12d75fd1fcc..c457c4ac203 100644
|
2023-02-16 15:44:46 -08:00
|
|
|
--- a/dlls/odbc32/proxyodbc.c
|
|
|
|
+++ b/dlls/odbc32/proxyodbc.c
|
2024-06-23 00:08:28 -07:00
|
|
|
@@ -799,10 +799,23 @@ SQLRETURN WINAPI SQLFreeHandle(SQLSMALLINT HandleType, SQLHANDLE Handle)
|
2023-02-16 15:44:46 -08:00
|
|
|
*/
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2024-06-23 00:08:28 -07:00
|
|
|
2.43.0
|
2023-02-16 15:44:46 -08:00
|
|
|
|