driver-mysql.c revision 200bedfb0a0472b74b2ec50c0a36bb167f39ea76
951N/A#include "sql-api-private.h"
951N/A#ifdef BUILD_MYSQL
struct mysql_db {
unsigned int next_query_connection;
struct mysql_connection {
const char *host;
unsigned int connect_delay;
unsigned int connect_failure_count;
struct mysql_result {
unsigned int fields_count;
struct mysql_transaction_context {
bool failed;
return TRUE;
return FALSE;
#ifdef HAVE_MYSQL_SSL
#ifdef HAVE_MYSQL_SSL_CIPHER
alarm(0);
if (failed) {
return FALSE;
return TRUE;
for (i = 0; i < size; i++) {
return ret;
const char *connect_string)
const char **field;
t_push();
*args);
value++;
t_pop();
for (i = 0; i < size; i++)
static enum sql_db_flags
return SQL_DB_FLAG_BLOCKING;
const char *query)
case CR_SERVER_GONE_ERROR:
case CR_SERVER_LOST:
unsigned int i, start;
bool reset;
int ret;
i = start;
if (ret != 0) {
return ret;
} while (i != start);
if (reset)
for (i = 0; i < size; i++)
static struct sql_result *
const char *field_name)
unsigned int idx)
const char *field_name)
int idx;
if (idx < 0)
return NULL;
static struct sql_transaction_context *
const char *error;
const char **error_r)
int ret = 0;
return ret;
NULL,
NULL,
void driver_mysql_init(void);
void driver_mysql_deinit(void);
void driver_mysql_init(void)
void driver_mysql_deinit(void)