List:Commits« Previous MessageNext Message »
From:jwinstead Date:December 1 2007 7:55am
Subject:Connector/ODBC 3.51 commit: r905 - branches/guffert/test
View as plain text  
Modified:
   branches/guffert/test/my_error.c
Log:
Fix test to work with unixODBC, which expects a valid attribute identifier
before it checks if there are connections on the environment.


Modified: branches/guffert/test/my_error.c
===================================================================
--- branches/guffert/test/my_error.c	2007-12-01 06:30:47 UTC (rev 904)
+++ branches/guffert/test/my_error.c	2007-12-01 06:55:51 UTC (rev 905)
@@ -386,7 +386,8 @@
   ok_con(hdbc1, SQLConnect(hdbc1, mydsn, SQL_NTS, myuid, SQL_NTS,
                            mypwd, SQL_NTS));
 
-  expect_env(henv1, SQLSetEnvAttr(henv1, 999, (SQLPOINTER)1, 0), SQL_ERROR);
+  expect_env(henv1, SQLSetEnvAttr(henv1, SQL_ATTR_ODBC_VERSION,
+                                  (SQLPOINTER)SQL_OV_ODBC3, 0), SQL_ERROR);
   is(check_sqlstate_ex(henv1, SQL_HANDLE_ENV, "HY010") == OK);
 
   expect_dbc(hdbc1, SQLSetConnectAttr(hdbc1, SQL_ATTR_ASYNC_ENABLE,

Thread
Connector/ODBC 3.51 commit: r905 - branches/guffert/testjwinstead1 Dec