libpqtypes home page

PQgeterror(3)                  libpqtypes Manual                 PQgeterror(3)



NAME
       PQgeterror, PQseterror - libpqtypes error system management functions

SYNOPSIS
       #include <libpqtypes.h>

       const char *PQgeterror(void);
       void PQseterror(const char *format, ...);

DESCRIPTION
       The  libpqtypes  library  maintains  a per-thread global error message.
       The error message is managed by PQgeterror() and PQseterror().

       PQseterror() takes a regular printf compatible format string  for  set-
       ting the libpqtypes error message.

       To  clear  the  libpqtypes error message, call PQseterror() with a NULL
       format string: PQseterror(NULL);

RETURN VALUE
       PQgeterror() returns the last error message for the calling thread.  It
       will never return NULL.

EXAMPLES
       None.

AUTHOR
       A  contribution  of  eSilo, LLC. for the PostgreSQL Database Management
       System.  Written by Andrew Chernow and Merlin Moncure.

REPORTING BUGS
       Report bugs to <libpqtypes@esilo.com>.

COPYRIGHT
       Copyright (c) 2008 eSilo, LLC. All rights reserved.
       This is free software; see the source for copying conditions.  There is
       NO  warranty; not even for MERCHANTABILITY or  FITNESS FOR A PARTICULAR
       PURPOSE.

SEE ALSO
       pqt-specs(3)



libpqtypes                           2008                        PQgeterror(3)

libpqtypes home page