List:Commits« Previous MessageNext Message »
From:jwinstead Date:July 12 2007 1:21am
Subject:Connector/ODBC 3.51 commit: r567 - trunk/driver
View as plain text  
Modified:
   trunk/driver/info.c
Log:
Change data type of array of functions to be the same as how it is
requested in SQLGetFunctions().


Modified: trunk/driver/info.c
===================================================================
--- trunk/driver/info.c	2007-07-12 01:20:23 UTC (rev 566)
+++ trunk/driver/info.c	2007-07-12 01:21:12 UTC (rev 567)
@@ -1205,7 +1205,7 @@
 /**
   List of functions supported in the driver.
 */
-SQLINTEGER myodbc3_functions[]=
+SQLUSMALLINT myodbc3_functions[]=
 {
     SQL_API_SQLALLOCCONNECT,
     SQL_API_SQLALLOCENV,
@@ -1304,7 +1304,7 @@
                                   SQLUSMALLINT fFunction,
                                   SQLUSMALLINT *pfExists)
 {
-  SQLINTEGER index, myodbc_func_size;
+  SQLUSMALLINT index, myodbc_func_size;
 
   MYODBCDbgEnter;
   MYODBCDbgInfo("fFunction: %d",fFunction);
@@ -1315,7 +1315,7 @@
   {
     for (index= 0; index < myodbc_func_size; index++)
     {
-      int id= myodbc3_functions[index];
+      SQLUSMALLINT id= myodbc3_functions[index];
       pfExists[id >> 4]|= (1 << (id & 0x000F));
     }
     MYODBCDbgReturnReturn(SQL_SUCCESS);

Thread
Connector/ODBC 3.51 commit: r567 - trunk/driverjwinstead12 Jul