Re: SYBUNIQUE missing from sybdb.h?

Erik Bryn <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Assuming this was just an oversight. Here's a simple patch to fix it.

- Erik

Index: include/sybdb.h
===================================================================
RCS file: /cvsroot/freetds/freetds/include/sybdb.h,v
retrieving revision 1.95
diff -u -8 -p -r1.95 sybdb.h
--- include/sybdb.h 14 Sep 2010 02:12:47 -0000 1.95
+++ include/sybdb.h 6 Oct 2010 05:18:33 -0000
@@ -193,18 +193,20 @@ enum
  SYBNUMERIC = 108, /* 0x6C */
 #define SYBNUMERIC SYBNUMERIC
  SYBDECIMAL = 106, /* 0x6A */
 #define SYBDECIMAL SYBDECIMAL
  SYBFLTN = 109, /* 0x6D */
 #define SYBFLTN SYBFLTN
  SYBMONEYN = 110, /* 0x6E */
 #define SYBMONEYN SYBMONEYN
- SYBDATETIMN = 111 /* 0x6F */
+ SYBDATETIMN = 111, /* 0x6F */
 #define SYBDATETIMN SYBDATETIMN
+ SYBUNIQUE = 36 /* 0x24 */
+#define SYBUNIQUE SYBUNIQUE
 };

 #define SYBAOPCNT  0x4b
 #define SYBAOPCNTU 0x4c
 #define SYBAOPSUM  0x4d
 #define SYBAOPSUMU 0x4e
 #define SYBAOPAVG  0x4f
 #define SYBAOPAVGU 0x50


On Tue, Oct 5, 2010 at 5:08 PM, Erik Bryn <[email protected]> wrote:

> Is there a reason SYBUNIQUE is defined in tds.h, but not in sybdb.h?
>
> - Erik
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.