You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.5 KiB

  1. /* Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; version 2 of the License.
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License
  10. along with this program; if not, write to the Free Software
  11. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
  12. /* Prototypes for the embedded version of MySQL */
  13. #include <sql_common.h>
  14. C_MODE_START
  15. void lib_connection_phase(NET *net, int phase);
  16. void init_embedded_mysql(MYSQL *mysql, int client_flag);
  17. void *create_embedded_thd(int client_flag);
  18. int check_embedded_connection(MYSQL *mysql, const char *db);
  19. void free_old_query(MYSQL *mysql);
  20. extern MYSQL_METHODS embedded_methods;
  21. /* This one is used by embedded library to gather returning data */
  22. typedef struct embedded_query_result
  23. {
  24. MYSQL_ROWS **prev_ptr;
  25. unsigned int warning_count, server_status;
  26. struct st_mysql_data *next;
  27. my_ulonglong affected_rows, insert_id;
  28. char info[MYSQL_ERRMSG_SIZE];
  29. MYSQL_FIELD *fields_list;
  30. unsigned int last_errno;
  31. char sqlstate[SQLSTATE_LENGTH+1];
  32. } EQR;
  33. C_MODE_END