MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
embedded_priv.h
1 /* Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
15 
16 /* Prototypes for the embedded version of MySQL */
17 
18 #include <sql_common.h>
19 
20 C_MODE_START
21 void lib_connection_phase(NET *net, int phase);
22 void init_embedded_mysql(MYSQL *mysql, int client_flag);
23 void *create_embedded_thd(int client_flag);
24 int check_embedded_connection(MYSQL *mysql, const char *db);
25 void free_old_query(MYSQL *mysql);
26 extern MYSQL_METHODS embedded_methods;
27 
28 /* This one is used by embedded library to gather returning data */
29 typedef struct embedded_query_result
30 {
31  MYSQL_ROWS **prev_ptr;
32  unsigned int warning_count, server_status;
33  struct st_mysql_data *next;
34  my_ulonglong affected_rows, insert_id;
35  char info[MYSQL_ERRMSG_SIZE];
36  MYSQL_FIELD *fields_list;
37  unsigned int last_errno;
38  char sqlstate[SQLSTATE_LENGTH+1];
39 } EQR;
40 
41 C_MODE_END