List:Commits« Previous MessageNext Message »
From:jwinstead Date:December 28 2007 5:38pm
Subject:Connector/ODBC 3.51 commit: r966 - trunk/test
View as plain text  
Modified:
   trunk/test/my_types.c
Log:
Fix %lu to be %u, since it is just an SQLUINTEGER. Failed on RHEL ia64 with -O2.


Modified: trunk/test/my_types.c
===================================================================
--- trunk/test/my_types.c	2007-12-28 17:25:44 UTC (rev 965)
+++ trunk/test/my_types.c	2007-12-28 17:38:59 UTC (rev 966)
@@ -701,7 +701,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: r966 - trunk/testjwinstead28 Dec