Skip to Content.
Sympa Menu

freetds - Re: [freetds] Supporting fast forward-only cursors?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Supporting fast forward-only cursors?
  • Date: Fri, 11 Jan 2008 10:00:51 -0500

ZIGLIO, Frediano, VF-IT wrote:
>
> Another problem is how to define these constants. These constants are
> not "open" that is are contained in copyrighted header (odbcss.h).

If you're referring to a simple #define e.g.

#define SQL_HANDLE_ENV 1

then there's no copyright issue. We use the same symbolic constants (and
sometimes matching values) as Sybase and Microsoft do for db-lib and
ct-lib. That was done for compatibility: the application should work the
same way when compiled with the vendor's or FreeTDS's header files. There
are only so many ways to achieve that.

AIUI all you need to do is create a .h file with the constants you need.
I of course favor enum over #define, but it's up to you.

Regards,

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page