#24 ANSI to Unicode conversions turn "" into NULL

open
nobody
None
5
2007-08-25
2007-08-25
Jim Winstead
No

When "" is passed to the non-W version of functions and a Unicode driver is in use, the driver manager passes NULL to the underlying driver.

One example of a place this would cause trouble is the catalog functions, where NULL is sometimes not acceptable when "" is, such as for the catalog or schema when SQL_ATTR_METADATA_ID is SQL_TRUE, and the user wants to get objects that do not belong to any schema or catalog.

Discussion

  • Jim Winstead
    Jim Winstead
    2007-08-25

    Logged In: YES
    user_id=35872
    Originator: YES

    The Unicode to ANSI conversions probably have the same problem, but I've not tested that.