From 192aebea139c23194f1b594cfa0d077d2aa32537 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Sun, 23 May 2021 20:41:50 +0900 Subject: [PATCH] Suppress compiler warnings. --- test/src/fetch-refcursors-test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/src/fetch-refcursors-test.c b/test/src/fetch-refcursors-test.c index dda841e..ed9a47a 100644 --- a/test/src/fetch-refcursors-test.c +++ b/test/src/fetch-refcursors-test.c @@ -52,18 +52,18 @@ static void setup_procedure() test_disconnect(); } -static void refcursor_test(char* connectparams, SQLPOINTER autocommit) +static void refcursor_test(char* connectparams, SQLUINTEGER autocommit) { SQLRETURN rc; HSTMT hstmt = SQL_NULL_HSTMT; int num_cursor = 0; - printf("\n-- TEST using %s and SQL_ATTR_AUTOCOMMIT=%d\n", connectparams, autocommit); + printf("\n-- TEST using %s and SQL_ATTR_AUTOCOMMIT=%u\n", connectparams, autocommit); test_connect_ext(connectparams); /* Conditionally start a transaction */ - rc = SQLSetConnectAttr(conn, SQL_ATTR_AUTOCOMMIT, autocommit, SQL_IS_UINTEGER); + rc = SQLSetConnectAttr(conn, SQL_ATTR_AUTOCOMMIT, (SQLPOINTER) (SQLULEN) autocommit, SQL_IS_UINTEGER); CHECK_STMT_RESULT(rc, "SQLSetConnectAttr failed", hstmt); rc = SQLAllocHandle(SQL_HANDLE_STMT, conn, &hstmt); -- 2.39.5