20#ifndef _tdsguard_gH4tOYBTzynx4DgqFzOEbB_
21#define _tdsguard_gH4tOYBTzynx4DgqFzOEbB_
24#include <freetds/convert.h>
25#include <freetds/utils/string.h>
26#include <freetds/bool.h>
32#include <freetds/pushvis.h>
50 bool cs_expose_formats;
51 bool cs_note_empty_data;
69 CS_CHAR text[CS_MAX_MSG];
77 CS_BYTE sqlstate[CS_SQLSTATE_SIZE];
85 CS_CHAR text[CS_MAX_MSG];
93 CS_BYTE sqlstate[CS_SQLSTATE_SIZE];
101 CS_CHAR text[CS_MAX_MSG];
108 CS_BYTE sqlstate[CS_SQLSTATE_SIZE];
136 CS_INT date_convert_fmt;
137 CS_INT cs_errhandletype;
138 CS_INT cs_diag_msglimit;
143 CS_INT cs_diag_msglimit_client;
144 CS_INT cs_diag_msglimit_server;
145 CS_INT cs_diag_msglimit_total;
152 CS_CSLIBMSG_FUNC _cslibmsg_cb;
153 CS_CLIENTMSG_FUNC _clientmsg_cb;
154 CS_SERVERMSG_FUNC _servermsg_cb;
168static inline size_t cs_servermsg_len(
CS_CONTEXT *ctx)
180 TDS_SMALLINT *indicator;
191 CS_CLIENTMSG_FUNC _clientmsg_cb;
192 CS_SERVERMSG_FUNC _servermsg_cb;
220 CS_INT datalen_value;
221 CS_SMALLINT indicator_value;
255#define CS_DYNAMIC_CMD 160
256#define CS_CUR_CMD 161
260#define _CS_RES_NONE -1
261#define _CS_RES_INIT 0
262#define _CS_RES_RESULTSET_EMPTY 1
263#define _CS_RES_RESULTSET_ROWS 2
264#define _CS_RES_STATUS 3
265#define _CS_RES_CMD_DONE 4
266#define _CS_RES_CMD_SUCCEED 5
267#define _CS_RES_END_RESULTS 6
268#define _CS_RES_DESCRIBE_RESULT 7
272#define _CS_COMMAND_IDLE 0
273#define _CS_COMMAND_BUILDING 1
274#define _CS_COMMAND_READY 2
275#define _CS_COMMAND_SENT 3
278#define _CS_CANCEL_NOCANCEL 0
279#define _CS_CANCEL_PENDING 1
284 CS_INT command_state;
285 CS_INT results_state;
294 int curr_result_type;
297 int get_data_bytes_returned;
299 CS_INT send_data_started;
302 CS_INT client_cursor_id;
314#define _CS_ERRHAND_INLINE 1
315#define _CS_ERRHAND_CB 2
327#define _CS_CURS_TYPE_UNACTIONED 0
328#define _CS_CURS_TYPE_REQUESTED 1
329#define _CS_CURS_TYPE_SENT 2
383TDS_SERVER_TYPE _ct_get_server_type(
TDSSOCKET *tds,
int datatype);
385int _ct_get_client_type(
const TDSCOLUMN *col,
bool describe);
387 int layer,
int origin,
int severity,
int number,
388 const char *fmt, ...);
389CS_INT _ct_diag_clearmsg(
CS_CONTEXT * context, CS_INT type);
393CS_INT _ct_get_string_length(
const char *buf, CS_INT buflen);
399bool _ct_is_large_identifiers_version(CS_INT version);
412#include <freetds/popvis.h>
Main include file for libtds.
int login_timeout
not used unless positive
Definition ctlib.h:161
bool use_large_identifiers
structures uses large identifiers
Definition ctlib.h:165
int query_timeout
not used unless positive
Definition ctlib.h:162
Metadata about columns in regular and compute rows.
Definition tds.h:698
Hold information for any results.
Definition tds.h:778
Holds information about a cursor.
Definition tds.h:946
Holds information for a dynamic (also called prepared) query.
Definition tds.h:986
Information for a server connection.
Definition tds.h:1185