From 7f598060c74a0d9f9c2641d44a9b1ca7caf9df12 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Fri, 19 Jun 2020 08:41:21 +0900 Subject: [PATCH] Fix a compilation error in cygwin. --- test/src/params-batch-exec-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/params-batch-exec-test.c b/test/src/params-batch-exec-test.c index c087617..d46f890 100644 --- a/test/src/params-batch-exec-test.c +++ b/test/src/params-batch-exec-test.c @@ -60,7 +60,7 @@ static SQLRETURN BatchExecute(HDBC conn, int batch_size) b_result(rc, hstmt, BATCHCNT, status); SQLCloseCursor(hstmt); **/ - strncpy((LPTSTR) &strs[BATCHCNT - 3], "4-long", sizeof(strs[0])); + strncpy((SQLCHAR *) &strs[BATCHCNT - 3], "4-long", sizeof(strs[0])); rc = SQLExecDirect(hstmt, "INSERT INTO test_batch VALUES (?, ?)" " ON CONFLICT (id) DO UPDATE SET dt=EXCLUDED.dt" , SQL_NTS); -- 2.39.5