1
/* Copyright (C) 2003-2005 DRIZZLE AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
16
#define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG | \
17
CLIENT_TRANSACTIONS | \
18
CLIENT_PROTOCOL_41 | CLIENT_SECURE_CONNECTION)
20
sig_handler my_pipe_sig_handler(int sig);
21
void read_user_name(char *name);
22
my_bool handle_local_infile(DRIZZLE *drizzle, const char *net_filename);
25
/* TODO: Do we still need these now that there's not non-threaded stuff? */
26
#define init_sigpipe_variables
27
#define set_sigpipe(drizzle)
28
#define reset_sigpipe(drizzle)
30
void mysql_detach_stmt_list(LIST **stmt_list, const char *func_name);
32
cli_drizzle_connect(DRIZZLE *drizzle,const char *host, const char *user,
33
const char *passwd, const char *db,
34
uint port, const char *unix_socket,ulong client_flag);
36
void cli_drizzle_close(DRIZZLE *drizzle);
38
DRIZZLE_FIELD * cli_list_fields(DRIZZLE *drizzle);
39
DRIZZLE_DATA * cli_read_rows(DRIZZLE *drizzle,DRIZZLE_FIELD *drizzle_fields,
41
int cli_unbuffered_fetch(DRIZZLE *drizzle, char **row);
42
const char * cli_read_statistics(DRIZZLE *drizzle);
43
int cli_read_change_user_result(DRIZZLE *drizzle, char *buff, const char *passwd);
46
extern int drizzle_init_character_set(DRIZZLE *drizzle);