home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 March (DVD) / PCWorld_2008-03_DVD.iso / komunikace / mysql / mysql-essential-5.0.45-win32.msi / product.cab / fili240 < prev    next >
Encoding:
Text File  |  2007-07-06  |  1.8 KB  |  48 lines

  1. /* Copyright (C) 2003-2004, 2006 MySQL AB
  2.    
  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.
  6.    
  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.
  11.    
  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 */
  15.  
  16.  
  17. extern const char    *unknown_sqlstate;
  18. extern const char    *not_error_sqlstate;
  19.  
  20. #ifdef    __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24. extern CHARSET_INFO *default_client_charset_info;
  25. MYSQL_FIELD *unpack_fields(MYSQL_DATA *data,MEM_ROOT *alloc,uint fields,
  26.                my_bool default_value, uint server_capabilities);
  27. void free_rows(MYSQL_DATA *cur);
  28. void free_old_query(MYSQL *mysql);
  29. void end_server(MYSQL *mysql);
  30. my_bool mysql_reconnect(MYSQL *mysql);
  31. void mysql_read_default_options(struct st_mysql_options *options,
  32.                 const char *filename,const char *group);
  33. my_bool
  34. cli_advanced_command(MYSQL *mysql, enum enum_server_command command,
  35.              const char *header, ulong header_length,
  36.              const char *arg, ulong arg_length, my_bool skip_check,
  37.                      MYSQL_STMT *stmt);
  38. unsigned long cli_safe_read(MYSQL *mysql);
  39. void set_stmt_errmsg(MYSQL_STMT * stmt, const char *err, int errcode,
  40.              const char *sqlstate);
  41. void set_mysql_error(MYSQL *mysql, int errcode, const char *sqlstate);
  42. #ifdef    __cplusplus
  43. }
  44. #endif
  45.  
  46. #define protocol_41(A) ((A)->server_capabilities & CLIENT_PROTOCOL_41)
  47.  
  48.