Hans Leidekker (@hans) commented about dlls/odbc32/proxyodbc.c:
} else if (env->hdr.win32_handle) {
if (env->hdr.win32_funcs->SQLGetEnvAttr)
ret = env->hdr.win32_funcs->SQLGetEnvAttr( env->hdr.win32_handle, SQL_ATTR_ODBC_VERSION, &env->driver_ver, 0, NULL );
SQL_ATTR_ODBC_VERSION is used to indicate the behavior the driver/manager conforms to. SQL_DRIVER_ODBC_VER indicates the real driver version AFAICT. In any case, this is not the right place to get the attribute.