1 /* Copyright (C) 2001-2004, 2006 MySQL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
16 /* Prototypes for the embedded version of MySQL */
19 void lib_connection_phase(NET
*net
, int phase
);
20 void init_embedded_mysql(MYSQL
*mysql
, int client_flag
);
21 void *create_embedded_thd(int client_flag
);
22 int check_embedded_connection(MYSQL
*mysql
, const char *db
);
23 void free_old_query(MYSQL
*mysql
);
24 extern MYSQL_METHODS embedded_methods
;
26 /* This one is used by embedded library to gather returning data */
27 typedef struct embedded_query_result
29 MYSQL_ROWS
**prev_ptr
;
30 unsigned int warning_count
, server_status
;
31 struct st_mysql_data
*next
;
32 my_ulonglong affected_rows
, insert_id
;
33 char info
[MYSQL_ERRMSG_SIZE
];
34 MYSQL_FIELD
*fields_list
;
35 unsigned int last_errno
;
36 char sqlstate
[SQLSTATE_LENGTH
+1];