Skip to content

Commit

Permalink
Start adding support for big(date)time
Browse files Browse the repository at this point in the history
Sybase added this new type to ASE 15.5.
The format is mainly an int64_t type counting microseconds since
01 Jan 0000.

Add mnemonic constant and type definition for protocol.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  • Loading branch information
freddy77 committed Sep 21, 2015
1 parent 5a84363 commit a74a06e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/freetds/proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ typedef struct tdsunique
typedef TDS_INT TDS_DATE;
typedef TDS_INT TDS_TIME;

typedef TDS_UINT8 TDS_BIGTIME;
typedef TDS_UINT8 TDS_BIGDATETIME;

#define TDS5_PARAMFMT2_TOKEN 32 /* 0x20 */
#define TDS_LANGUAGE_TOKEN 33 /* 0x21 TDS 5.0 only */
#define TDS_ORDERBY2_TOKEN 34 /* 0x22 */
Expand Down Expand Up @@ -222,6 +225,8 @@ typedef enum
SYBUINTN = 68, /* 0x44 */
SYBUNITEXT = 174, /* 0xAE */
SYBXML = 163, /* 0xA3 */
SYB5BIGDATETIME = 187, /* 0xBB */
SYB5BIGTIME = 188, /* 0xBC */

} TDS_SERVER_TYPE;

Expand Down

0 comments on commit a74a06e

Please sign in to comment.