SQLFreeEnv--Free environment handle

In ODBC Version 3, SQLFreeEnv() was deprecated and replaced with SQLFreeHandle(); see SQLFreeHandle--Free handle resources for more information.

Recommendation: Although this version of interfejs DB2 CLI continues to support SQLFreeEnv(), use SQLFreeHandle() in your interfejs DB2 CLI programs so that they conform to the latest standards.

Migrating to the new function

The statement:

   SQLFreeEnv(henv);
 

for example, would be rewritten using the new function as:

   SQLFreeHandle(SQL_HANDLE_ENV, henv);
 

Informacje pokrewne