struct
{
char dbmsName[40]; // Name of the dbms product
- char dbmsVer[20]; // Version # of the dbms product
+ char dbmsVer[40]; // Version # of the dbms product
char driverName[40]; // Driver name
- char odbcVer[20]; // ODBC version of the driver
- char drvMgrOdbcVer[20]; // ODBC version of the driver manager
- char driverVer[40]; // Driver version
- char serverName[40]; // Server Name, typically a connect string
+ char odbcVer[60]; // ODBC version of the driver
+ char drvMgrOdbcVer[60]; // ODBC version of the driver manager
+ char driverVer[60]; // Driver version
+ char serverName[80]; // Server Name, typically a connect string
char databaseName[128]; // Database filename
char outerJoins[2]; // Indicates whether the data source supports outer joins
char procedureSupport[2]; // Indicates whether the data source supports stored procedures
if (SQLGetInfo(hdbc, SQL_DBMS_NAME, (UCHAR*) dbInf.dbmsName, 40, &cb) != SQL_SUCCESS)
return(DispAllErrors(henv, hdbc));
- if (SQLGetInfo(hdbc, SQL_DBMS_VER, (UCHAR*) dbInf.dbmsVer, 20, &cb) != SQL_SUCCESS)
+ if (SQLGetInfo(hdbc, SQL_DBMS_VER, (UCHAR*) dbInf.dbmsVer, 40, &cb) != SQL_SUCCESS)
return(DispAllErrors(henv, hdbc));
if (SQLGetInfo(hdbc, SQL_ACTIVE_CONNECTIONS, (UCHAR*) &dbInf.maxConnections, sizeof(dbInf.maxConnections), &cb) != SQL_SUCCESS)
if (SQLGetInfo(hdbc, SQL_DRIVER_NAME, (UCHAR*) dbInf.driverName, 40, &cb) != SQL_SUCCESS)
return(DispAllErrors(henv, hdbc));
- if (SQLGetInfo(hdbc, SQL_DRIVER_ODBC_VER, (UCHAR*) dbInf.odbcVer, 20, &cb) != SQL_SUCCESS)
+ if (SQLGetInfo(hdbc, SQL_DRIVER_ODBC_VER, (UCHAR*) dbInf.odbcVer, 60, &cb) == SQL_ERROR)
return(DispAllErrors(henv, hdbc));
- if (SQLGetInfo(hdbc, SQL_ODBC_VER, (UCHAR*) dbInf.drvMgrOdbcVer, 20, &cb) != SQL_SUCCESS)
+ if (SQLGetInfo(hdbc, SQL_ODBC_VER, (UCHAR*) dbInf.drvMgrOdbcVer, 60, &cb) == SQL_ERROR)
return(DispAllErrors(henv, hdbc));
- if (SQLGetInfo(hdbc, SQL_DRIVER_VER, (UCHAR*) dbInf.driverVer, 40, &cb) != SQL_SUCCESS)
+ if (SQLGetInfo(hdbc, SQL_DRIVER_VER, (UCHAR*) dbInf.driverVer, 60, &cb) == SQL_ERROR)
return(DispAllErrors(henv, hdbc));
if (SQLGetInfo(hdbc, SQL_ODBC_API_CONFORMANCE, (UCHAR*) &dbInf.apiConfLvl, sizeof(dbInf.apiConfLvl), &cb) != SQL_SUCCESS)
int i, j;
char* ptr;
- j = STRLEN("/iodbc.ini") + 1;
+ j = STRLEN("/odbc.ini") + 1;
if( size < j )
{
}
#ifdef FIX_INI_FILE
- sprintf( buf, "%s/iodbc.ini", DIR_INI_FILE );
+ sprintf( buf, "%s/odbc.ini", DIR_INI_FILE );
#else
# ifdef OS2
*buf = '\0';
- if( NULL != getenv("IODBC_INI") )
+ if( NULL != getenv("ODBC_INI") )
{
- strcpy( buf, getenv("IODBC_INI") );
+ strcpy( buf, getenv("ODBC_INI") );
}
else
{
}
else
{
- strcpy( buf, "iodbc.ini" );
+ strcpy( buf, "odbc.ini" );
}
}
return NULL;
}
- sprintf( buf + i, "/iodbc.ini");
+ sprintf( buf + i, "/odbc.ini");
return buf;
# else
return NULL;
}
- sprintf( buf, "%s%s", ptr, "/.iodbc.ini");
- /* i.e. searching ~/.iodbc.ini */
+ sprintf( buf, "%s%s", ptr, "/.odbc.ini");
+ /* i.e. searching ~/.odbc.ini */
# endif
# endif
#endif