Skip to Content.
Sympa Menu

freetds - [freetds] patch for improved ctlib compatibility

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Norbert Sendetzky <norbert AT linuxnetworks.de>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] patch for improved ctlib compatibility
  • Date: Sun, 27 Aug 2006 13:26:34 +0200

Hi all

FreeTDS 0.64 doesn't define some types available in Sybase' version of the
ctlib header files yet. Even if they might currently not be supported by the
code behind, it helps compiling sources for both versions of the library.

Thanks


Norbert
--
OpenPGP public key
http://www.linuxnetworks.de/norbert.pubkey.asc

diff -ru freetds-0.64/include/cspublic.h freetds-0.64.new/include/cspublic.h
--- freetds-0.64/include/cspublic.h	2006-02-24 22:14:20.000000000 +0100
+++ freetds-0.64.new/include/cspublic.h	2006-08-27 13:14:17.000000000 +0200
@@ -41,18 +41,26 @@
 #define CS_STATIC static
 
 
+#define CS_SUCCEED		1
 #define CS_FAIL		0
-#define CS_SUCCEED	1
-#define CS_CANCELED	-202
-#define CS_ROW_FAIL	-203
-#define CS_END_DATA	-204
-#define CS_END_RESULTS	-205
-#define CS_END_ITEM	-206
-#define CS_NOMSG	-207
-#define CS_TIMED_OUT 	-208
-#define CS_PENDING 	-2
-#define CS_INTERRUPT 	-5
-#define CS_QUIET 	-3
+#define CS_MEM_ERROR		-1
+#define CS_PENDING 		-2
+#define CS_QUIET 		-3
+#define CS_BUSY		-4
+#define CS_INTERRUPT 		-5
+#define CS_BLK_HAS_TEXT	-6
+#define CS_CONTINUE		-7
+#define CS_FATAL		-8
+#define CS_RET_HAFAILOVER	-9
+#define CS_UNSUPPORTED		-10
+
+#define CS_CANCELED		-202
+#define CS_ROW_FAIL		-203
+#define CS_END_DATA		-204
+#define CS_END_RESULTS		-205
+#define CS_END_ITEM		-206
+#define CS_NOMSG		-207
+#define CS_TIMED_OUT 		-208
 
 #define CS_SIZEOF(x) sizeof(x)
 
@@ -299,7 +307,7 @@
 
 /*
  * Code added for CURSOR support
- * types accepted by ct_cursor 
+ * types accepted by ct_cursor
  */
 #define CS_CURSOR_DECLARE  700
 #define CS_CURSOR_OPEN     701
@@ -434,6 +442,10 @@
 
 #define CS_VERSION_100	112
 #define CS_VERSION_110	1100
+#define CS_VERSION_120	1100
+#define CS_VERSION_125	12500
+#define CS_VERSION_150	15000
+
 #define BLK_VERSION_100 CS_VERSION_100
 #define BLK_VERSION_110 CS_VERSION_100
 
@@ -552,6 +564,15 @@
 #define CS_VOID_TYPE        TDS_STATIC_CAST(CS_INT, 23)
 #define CS_USHORT_TYPE      TDS_STATIC_CAST(CS_INT, 24)
 #define CS_UNICHAR_TYPE     TDS_STATIC_CAST(CS_INT, 25)
+#define CS_BLOB_TYPE        TDS_STATIC_CAST(CS_INT, 26)
+#define CS_DATE_TYPE        TDS_STATIC_CAST(CS_INT, 27)
+#define CS_TIME_TYPE        TDS_STATIC_CAST(CS_INT, 28)
+#define CS_UNITEXT_TYPE     TDS_STATIC_CAST(CS_INT, 29)
+#define CS_BIGINT_TYPE      TDS_STATIC_CAST(CS_INT, 30)
+#define CS_USMALLINT_TYPE   TDS_STATIC_CAST(CS_INT, 31)
+#define CS_UINT_TYPE        TDS_STATIC_CAST(CS_INT, 32)
+#define CS_UBIGINT_TYPE     TDS_STATIC_CAST(CS_INT, 33)
+#define CS_XML_TYPE         TDS_STATIC_CAST(CS_INT, 34)
 #define CS_UNIQUE_TYPE      TDS_STATIC_CAST(CS_INT, 40)
 
 #define CS_USER_TYPE        TDS_STATIC_CAST(CS_INT, 100)

Attachment: pgpMgBAGSRTLW.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page