sql-api.c revision 3e28b527dd6048a40684afd29cff0ee008fc0014
/* Copyright (c) 2004-2007 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "sql-api-private.h"
#include <stdlib.h>
void sql_drivers_init(void)
{
}
void sql_drivers_deinit(void)
{
}
{
}
{
unsigned int i, count;
for (i = 0; i < count; i++) {
break;
}
}
}
const char *connect_string ATTR_UNUSED)
{
unsigned int i, count;
for (i = 0; i < count; i++) {
return db;
}
}
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
static const struct sql_field_def *
{
unsigned int i;
return &fields[i];
}
return NULL;
}
static void
{
const struct sql_field_def *def;
const char *name;
unsigned int i, count, field_size = 0;
for (i = 0; i < count; i++) {
case SQL_TYPE_STR:
field_size = sizeof(const char *);
break;
case SQL_TYPE_UINT:
field_size = sizeof(unsigned int);
break;
case SQL_TYPE_ULLONG:
field_size = sizeof(unsigned long long);
break;
case SQL_TYPE_BOOL:
field_size = sizeof(bool);
break;
}
} else {
}
}
}
const struct sql_field_def *fields,
{
}
{
unsigned int i, count;
const char *value;
void *ptr;
for (i = 0; i < count; i++) {
continue;
case SQL_TYPE_STR: {
break;
}
case SQL_TYPE_UINT: {
*((unsigned int *)ptr) =
}
break;
}
case SQL_TYPE_ULLONG: {
*((unsigned long long *)ptr) =
}
break;
}
case SQL_TYPE_BOOL: {
break;
}
}
}
}
{
int ret;
return ret;
return 1;
}
{
}
unsigned int idx)
{
}
{
}
unsigned int idx)
{
}
const unsigned char *
{
}
const char *field_name)
{
}
{
}
{
}
static void
{
}
static int
{
return -1;
}
static const char *
{
return "Not connected to database";
}
{
}
{
}
const char **error_r)
{
}
{
}
{
}
struct sql_result sql_not_connected_result = {
MEMBER(v) {
}
};