24#include <freetds/convert.h>
25#include <freetds/utils/string.h>
26#include <freetds/bool.h>
32#include <freetds/pushvis.h>
50 short cs_expose_formats;
68 CS_CHAR text[CS_MAX_MSG];
76 CS_BYTE sqlstate[CS_SQLSTATE_SIZE];
84 CS_CHAR text[CS_MAX_MSG];
92 CS_BYTE sqlstate[CS_SQLSTATE_SIZE];
100 CS_CHAR text[CS_MAX_MSG];
107 CS_BYTE sqlstate[CS_SQLSTATE_SIZE];
135 CS_INT date_convert_fmt;
136 CS_INT cs_errhandletype;
137 CS_INT cs_diag_msglimit;
142 CS_INT cs_diag_msglimit_client;
143 CS_INT cs_diag_msglimit_server;
144 CS_INT cs_diag_msglimit_total;
151 CS_CSLIBMSG_FUNC _cslibmsg_cb;
152 CS_CLIENTMSG_FUNC _clientmsg_cb;
153 CS_SERVERMSG_FUNC _servermsg_cb;
167static inline size_t cs_servermsg_len(
CS_CONTEXT *ctx)
179 TDS_SMALLINT *indicator;
190 CS_CLIENTMSG_FUNC _clientmsg_cb;
191 CS_SERVERMSG_FUNC _servermsg_cb;
219 CS_INT datalen_value;
220 CS_SMALLINT indicator_value;
254#define CS_DYNAMIC_CMD 160
255#define CS_CUR_CMD 161
259#define _CS_RES_NONE -1
260#define _CS_RES_INIT 0
261#define _CS_RES_RESULTSET_EMPTY 1
262#define _CS_RES_RESULTSET_ROWS 2
263#define _CS_RES_STATUS 3
264#define _CS_RES_CMD_DONE 4
265#define _CS_RES_CMD_SUCCEED 5
266#define _CS_RES_END_RESULTS 6
267#define _CS_RES_DESCRIBE_RESULT 7
271#define _CS_COMMAND_IDLE 0
272#define _CS_COMMAND_BUILDING 1
273#define _CS_COMMAND_READY 2
274#define _CS_COMMAND_SENT 3
277#define _CS_CANCEL_NOCANCEL 0
278#define _CS_CANCEL_PENDING 1
283 CS_INT command_state;
284 CS_INT results_state;
293 int curr_result_type;
296 int get_data_bytes_returned;
298 CS_INT send_data_started;
301 CS_INT client_cursor_id;
313#define _CS_ERRHAND_INLINE 1
314#define _CS_ERRHAND_CB 2
326#define _CS_CURS_TYPE_UNACTIONED 0
327#define _CS_CURS_TYPE_REQUESTED 1
328#define _CS_CURS_TYPE_SENT 2
382TDS_SERVER_TYPE _ct_get_server_type(
TDSSOCKET *tds,
int datatype);
384int _ct_get_client_type(
const TDSCOLUMN *col,
bool describe);
385void _ctclient_msg(
CS_CONNECTION * con,
const char *funcname,
int layer,
int origin,
int severity,
int number,
386 const char *fmt, ...);
387CS_INT _ct_diag_clearmsg(
CS_CONTEXT * context, CS_INT type);
396bool _ct_is_large_identifiers_version(CS_INT version);
409#include <freetds/popvis.h>
Main include file for libtds.
int login_timeout
not used unless positive
Definition ctlib.h:160
bool use_large_identifiers
structures uses large identifiers
Definition ctlib.h:164
int query_timeout
not used unless positive
Definition ctlib.h:161
Metadata about columns in regular and compute rows.
Definition tds.h:693
Hold information for any results.
Definition tds.h:773
Holds informations about a cursor.
Definition tds.h:941
Holds information for a dynamic (also called prepared) query.
Definition tds.h:981
Information for a server connection.
Definition tds.h:1180