driver-pgsql.c revision c9343c25215e98880db8f9e9c5f120f6311bc06d
949N/A#include "sql-api-private.h"
949N/A#ifdef BUILD_PGSQL
949N/A#include <libpq-fe.h>
949N/A char *connect_string;
949N/Astruct pgsql_binary_value {
949N/Astruct pgsql_result {
949N/A unsigned int fields_count;
949N/Astruct pgsql_queue {
949N/Astruct pgsql_transaction_context {
949N/A case PGRES_POLLING_READING:
949N/A case PGRES_POLLING_WRITING:
992N/A case PGRES_POLLING_OK:
992N/A case PGRES_POLLING_FAILED:
949N/Astatic enum sql_db_flags
t_push();
t_pop();
if (free_result)
int ret;
if (ret > 0)
if (ret < 0) {
int ret;
if (ret < 0) {
if (ret > 0) {
return queue;
char *to;
#ifdef HAVE_PQESCAPE_STRING_CONN
return to;
static struct sql_result *
case PGRES_COMMAND_OK:
case PGRES_TUPLES_OK:
case PGRES_EMPTY_QUERY:
case PGRES_NONFATAL_ERROR:
const char *field_name)
unsigned int idx)
return NULL;
const char *value;
*size_r = 0;
return NULL;
const char *field_name)
int idx;
if (idx < 0)
return NULL;
const char *msg;
static struct sql_transaction_context *
const char **error_r)
MEMBER(v) {
MEMBER(v) {
void driver_pgsql_init(void);
void driver_pgsql_deinit(void);
void driver_pgsql_init(void)
void driver_pgsql_deinit(void)