diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2000-02-07 23:10:11 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2000-02-07 23:10:11 +0000 |
| commit | 9ceb5d8a7bfc4a6315f37913afb5f3d6cefa651f (patch) | |
| tree | cfe54170ff754e064955bb00be586a5b26ab7db3 /src/interfaces/libpq/pqexpbuffer.h | |
| parent | 4842ef86247a323de9ec25e799d756c320222fe0 (diff) | |
Fixed psql double quoting of SQL ids
Fixed libpq printing functions
Diffstat (limited to 'src/interfaces/libpq/pqexpbuffer.h')
| -rw-r--r-- | src/interfaces/libpq/pqexpbuffer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/libpq/pqexpbuffer.h b/src/interfaces/libpq/pqexpbuffer.h index b70170d61a5..014254465aa 100644 --- a/src/interfaces/libpq/pqexpbuffer.h +++ b/src/interfaces/libpq/pqexpbuffer.h @@ -18,7 +18,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pqexpbuffer.h,v 1.3 2000/01/26 05:58:46 momjian Exp $ + * $Id: pqexpbuffer.h,v 1.4 2000/02/07 23:10:11 petere Exp $ * *------------------------------------------------------------------------- */ @@ -40,8 +40,8 @@ typedef struct PQExpBufferData { char *data; - int len; - int maxlen; + size_t len; + size_t maxlen; } PQExpBufferData; typedef PQExpBufferData *PQExpBuffer; @@ -113,7 +113,7 @@ extern void resetPQExpBuffer(PQExpBuffer str); * * Returns 1 if OK, 0 if failed to enlarge buffer. */ -extern int enlargePQExpBuffer(PQExpBuffer str, int needed); +extern int enlargePQExpBuffer(PQExpBuffer str, size_t needed); /*------------------------ * printfPQExpBuffer @@ -153,6 +153,6 @@ extern void appendPQExpBufferChar(PQExpBuffer str, char ch); * if necessary. */ extern void appendBinaryPQExpBuffer(PQExpBuffer str, - const char *data, int datalen); + const char *data, size_t datalen); #endif /* PQEXPBUFFER_H */ |
