[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freetds
Subject:    Re: [freetds] Supporting fast forward-only cursors?
From:       "James K. Lowden" <jklowden () freetds ! org>
Date:       2008-01-11 15:00:51
Message-ID: 20080111100051.4d822cba.jklowden () freetds ! org
[Download RAW message or body]

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
_______________________________________________
FreeTDS mailing list
FreeTDS@lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic