Jeff Zucker wrote:
>
> Steffen Goeldner wrote:
> >
> > > The order of options for SQL_SQL92_PREDICATES and for
> > > SQL_STRING_FUNCTIONS (not SQL92_STRING...) are different in your Local
> > > directory than they are in the MSDN ODBC docs.
> >
> > Do you mean the order in the output of GetInfoAll.pl? E.g.:
> >
> > SQL_FN_STR_CONCAT | SQL_FN_STR_LEFT | SQL_FN_STR_LTRIM ...
>
> No, I mean the order (and values) of the bitmask.
>
> You have:
>
> $ReturnValues{SQL_SQL92_PREDICATES} =
> {
> SQL_SP_EXISTS => 0x00000001
> , SQL_SP_ISNOTNULL => 0x00000002
> , SQL_SP_ISNULL => 0x00000004
> , SQL_SP_MATCH_FULL => 0x00000008
> ...
> }
>
> The ODBC docs have:
>
> SQL_SP_BETWEEN
> SQL_SP_COMPARISON
> SQL_SP_EXISTS
> SQL_SP_IN
> ...
>
> Which I assumed means
>
> SQL_SP_BETWEEN => 0x00000001
> SQL_SP_COMPARISON => 0x00000002
> SQL_SP_EXISTS => 0x00000004
> SQL_SP_IN => 0x00000008
> ...
>
> Perhaps I am mistaken when I assume that the order in the docs is the
> bitmask order (the docs become pretty useless otherwise). If so, then
> where is the bitmask order listed?
I used the C header files (sql.h and sqlext.h) from the MDAC SDK 2.6:
...
/* SQL_SQL92_PREDICATES bitmasks */
#define SQL_SP_EXISTS 0x00000001L
#define SQL_SP_ISNOTNULL 0x00000002L
#define SQL_SP_ISNULL 0x00000004L
#define SQL_SP_MATCH_FULL 0x00000008L
...
Steffen