[freetds] Supporting fast forward-only cursors?

James K. Lowden jklowden at freetds.org
Fri Jan 11 10:00:51 EST 2008


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


More information about the FreeTDS mailing list