Fix a compilation error in cygwin.
authorHiroshi Inoue <h-inoue@dream.email.ne.jp>
Thu, 18 Jun 2020 23:41:21 +0000 (08:41 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Thu, 18 Jun 2020 23:41:21 +0000 (08:41 +0900)
test/src/params-batch-exec-test.c

index c08761758b8fe1ca8798dee325793fc11c2ab2b9..d46f890becbe4d31d9c72d82e9242d27c683b609 100644 (file)
@@ -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);