Modified:
branches/guffert/test/my_basics.c
branches/guffert/test/my_types.c
Log:
Fix %lu to be %u, since it is just an SQLUINTEGER. Failed on RHEL ia64 with -O2.
Modified: branches/guffert/test/my_basics.c
===================================================================
--- branches/guffert/test/my_basics.c 2007-12-04 00:52:10 UTC (rev 917)
+++ branches/guffert/test/my_basics.c 2007-12-04 03:33:24 UTC (rev 918)
@@ -618,7 +618,7 @@
ok_env(henv, SQLAllocHandle(SQL_HANDLE_DBC, henv, &hdbc1));
- expect_dbc(hdbc1, SQLDriverConnect(hdbc1, NULL, conn, sizeof(conn), conn_out,
+ expect_dbc(hdbc1, SQLDriverConnect(hdbc1, NULL, conn, SQL_NTS, conn_out,
sizeof(conn_out), &conn_out_len,
SQL_DRIVER_NOPROMPT),
SQL_ERROR);
Modified: branches/guffert/test/my_types.c
===================================================================
--- branches/guffert/test/my_types.c 2007-12-04 00:52:10 UTC (rev 917)
+++ branches/guffert/test/my_types.c 2007-12-04 03:33:24 UTC (rev 918)
@@ -652,7 +652,7 @@
ok_sql(hstmt, "DROP TABLE IF EXISTS t_bug32171");
ok_sql(hstmt, "CREATE TABLE t_bug32171 (a INT UNSIGNED)");
- sprintf((char *)buff, "INSERT INTO t_bug32171 VALUES ('%lu')", in);
+ sprintf((char *)buff, "INSERT INTO t_bug32171 VALUES ('%u')", in);
ok_stmt(hstmt, SQLExecDirect(hstmt, buff, SQL_NTS));
ok_sql(hstmt, "SELECT * FROM t_bug32171");
| Thread |
|---|
| • Connector/ODBC 3.51 commit: r918 - branches/guffert/test | jwinstead | 4 Dec |