Обсуждение: bug in EN_set_odbc3 macro

Поиск
Список
Период
Сортировка

bug in EN_set_odbc3 macro

От
tomas@nocrew.org (Tomas Skäre)
Дата:
Hi,

I found that the EN_set_odbc3 macro in environ.h seems to be
wrong. It's defined as:

#define EN_set_odbc3(env) (env->flag &= EN_OV_ODBC2)

There should probably be a ~ in there too:

#define EN_set_odbc3(env) (env->flag &= ~EN_OV_ODBC2)


Greetings,

Tomas

Re: bug in EN_set_odbc3 macro

От
"Hiroshi Inoue"
Дата:
> -----Original Message-----
> From: Tomas Sk舐e
>
> Hi,
>
> I found that the EN_set_odbc3 macro in environ.h seems to be
> wrong. It's defined as:
>
> #define EN_set_odbc3(env) (env->flag &= EN_OV_ODBC2)
>
> There should probably be a ~ in there too:
>
> #define EN_set_odbc3(env) (env->flag &= ~EN_OV_ODBC2)

Oops you are right.
I would fix it ASAP.

Thanks.
Hiroshi Inoue