41
41
#define min(a, b) ((a) < (b) ? (a) : (b))
44
const char * sqlstate_get_unknown(void);
45
const char * sqlstate_get_not_error(void);
46
const char * sqlstate_get_cant_connect(void);
44
const char * drizzleclient_sqlstate_get_unknown(void);
45
const char * drizzleclient_sqlstate_get_not_error(void);
46
const char * drizzleclient_sqlstate_get_cant_connect(void);
48
48
void drizzle_set_default_port(unsigned int port);
49
49
void drizzle_set_error(DRIZZLE *drizzle, int errcode, const char *sqlstate);
50
50
void drizzle_set_extended_error(DRIZZLE *drizzle, int errcode,
51
51
const char *sqlstate,
52
52
const char *format, ...);
53
void free_old_query(DRIZZLE *drizzle);
53
void drizzleclient_free_old_query(DRIZZLE *drizzle);
55
int connect_with_timeout(int fd, const struct sockaddr *name,
55
int drizzleclient_connect_with_timeout(int fd, const struct sockaddr *name,
56
56
unsigned int namelen, int32_t timeout);
58
58
void drizzle_close_free_options(DRIZZLE *drizzle);
59
59
void drizzle_close_free(DRIZZLE *drizzle);
62
bool cli_read_query_result(DRIZZLE *drizzle);
63
DRIZZLE_RES *cli_use_result(DRIZZLE *drizzle);
64
void cli_fetch_lengths(uint32_t *to, DRIZZLE_ROW column,
62
bool drizzleclient_cli_read_query_result(DRIZZLE *drizzle);
63
DRIZZLE_RES *drizzleclient_cli_use_result(DRIZZLE *drizzle);
64
void drizzleclient_cli_fetch_lengths(uint32_t *to, DRIZZLE_ROW column,
65
65
uint32_t field_count);
66
void cli_flush_use_result(DRIZZLE *drizzle);
66
void drizzleclient_cli_flush_use_result(DRIZZLE *drizzle);