Modified:
branches/guffert/test/my_result.c
Log:
fix test to use platform-independent sizeof(SQLWCHAR)
Modified: branches/guffert/test/my_result.c
===================================================================
--- branches/guffert/test/my_result.c 2008-01-02 04:52:49 UTC (rev 973)
+++ branches/guffert/test/my_result.c 2008-01-02 16:02:24 UTC (rev 974)
@@ -2137,10 +2137,10 @@
is_num(outlen, 10);
expect_stmt(hstmt, SQLGetData(hstmt, 1, SQL_C_WCHAR, outbuf, 0, &outlen),
SQL_SUCCESS_WITH_INFO);
- is_num(outlen, 20);
+ is_num(outlen, 10 * sizeof(SQLWCHAR));
ok_stmt(hstmt, SQLGetData(hstmt, 1, SQL_C_WCHAR, outbuf, 100, &outlen));
- is_num(outlen, 20);
+ is_num(outlen, 10 * sizeof(SQLWCHAR));
is_wstr(outbuf, W(L"qwertyuiop"), 11);
return OK;
| Thread |
|---|
| • Connector/ODBC 3.51 commit: r974 - branches/guffert/test | jbalint | 2 Jan |