Eneboo - Documentación para desarrolladores
|
00001 /* Copyright (C) 2003-2004, 2006 MySQL AB 00002 00003 This program is free software; you can redistribute it and/or modify 00004 it under the terms of the GNU General Public License as published by 00005 the Free Software Foundation; version 2 of the License. 00006 00007 This program is distributed in the hope that it will be useful, 00008 but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00010 GNU General Public License for more details. 00011 00012 You should have received a copy of the GNU General Public License 00013 along with this program; if not, write to the Free Software 00014 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ 00015 00016 00017 extern const char *unknown_sqlstate; 00018 extern const char *not_error_sqlstate; 00019 00020 #ifdef __cplusplus 00021 extern "C" { 00022 #endif 00023 00024 extern CHARSET_INFO *default_client_charset_info; 00025 MYSQL_FIELD *unpack_fields(MYSQL_DATA *data,MEM_ROOT *alloc,uint fields, 00026 my_bool default_value, uint server_capabilities); 00027 void free_rows(MYSQL_DATA *cur); 00028 void free_old_query(MYSQL *mysql); 00029 void end_server(MYSQL *mysql); 00030 my_bool mysql_reconnect(MYSQL *mysql); 00031 void mysql_read_default_options(struct st_mysql_options *options, 00032 const char *filename,const char *group); 00033 my_bool 00034 cli_advanced_command(MYSQL *mysql, enum enum_server_command command, 00035 const char *header, ulong header_length, 00036 const char *arg, ulong arg_length, my_bool skip_check, 00037 MYSQL_STMT *stmt); 00038 unsigned long cli_safe_read(MYSQL *mysql); 00039 void set_stmt_errmsg(MYSQL_STMT * stmt, const char *err, int errcode, 00040 const char *sqlstate); 00041 void set_mysql_error(MYSQL *mysql, int errcode, const char *sqlstate); 00042 #ifdef __cplusplus 00043 } 00044 #endif 00045 00046 #define protocol_41(A) ((A)->server_capabilities & CLIENT_PROTOCOL_41) 00047