pg: Add a few result fetching methods
I'm not sure if these are free from memory leaks, need to find a way to test for that.
This commit is contained in:
parent
711300b227
commit
9d5905e3b4
5 changed files with 223 additions and 21 deletions
|
|
@ -47,9 +47,13 @@ typedef enum { PQSHOW_CONTEXT_NEVER, PQSHOW_CONTEXT_ERRORS, PQSHOW_CONTEXT_ALWAY
|
|||
X(PQfname, char *, const PGresult *, int) \
|
||||
X(PQfreemem, void, void *) \
|
||||
X(PQftype, Oid, const PGresult *, int) \
|
||||
X(PQgetisnull, int, const PGresult *, int, int) \
|
||||
X(PQgetlength, int, const PGresult *, int, int) \
|
||||
X(PQgetvalue, char *, const PGresult *, int, int) \
|
||||
X(PQlibVersion, int, void) \
|
||||
X(PQnfields, int, const PGresult *) \
|
||||
X(PQnparams, int, const PGresult *) \
|
||||
X(PQntuples, int, const PGresult *) \
|
||||
X(PQparamtype, Oid, const PGresult *, int) \
|
||||
X(PQprepare, PGresult *, PGconn *, const char *, const char *, int, const Oid *) \
|
||||
X(PQresStatus, char *, ExecStatusType) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue