diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-12-18 13:42:56 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-12-18 13:42:56 +0100 |
commit | 197d980f5b1fabef40d908f2aaf51c5be184c0e2 (patch) | |
tree | bce582eaddc95334e22634744af8482b7f272467 /plugins | |
parent | db23c5e79a875da684c3828dbc0c5acda8b16083 (diff) | |
parent | 3c236053cf87a16dfd7449f729e477dffd6e2fae (diff) | |
download | rsyslog-197d980f5b1fabef40d908f2aaf51c5be184c0e2.tar.gz rsyslog-197d980f5b1fabef40d908f2aaf51c5be184c0e2.tar.bz2 rsyslog-197d980f5b1fabef40d908f2aaf51c5be184c0e2.zip |
Merge branch 'v2-stable' into debian_lenny
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ompgsql/ompgsql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ompgsql/ompgsql.c b/plugins/ompgsql/ompgsql.c index 1d7b2eb7..03a2b79f 100644 --- a/plugins/ompgsql/ompgsql.c +++ b/plugins/ompgsql/ompgsql.c @@ -167,12 +167,12 @@ rsRetVal writePgSQL(uchar *psz, instanceData *pData) dbgprintf("writePgSQL: %s", psz); /* try insert */ - PQexec(pData->f_hpgsql, (char*)psz); + PQclear(PQexec(pData->f_hpgsql, (char*)psz)); if(PQstatus(pData->f_hpgsql) != CONNECTION_OK) { /* error occured, try to re-init connection and retry */ closePgSQL(pData); /* close the current handle */ CHKiRet(initPgSQL(pData, 0)); /* try to re-open */ - PQexec(pData->f_hpgsql, (char*)psz); + PQclear(PQexec(pData->f_hpgsql, (char*)psz)); if(PQstatus(pData->f_hpgsql) != CONNECTION_OK) { /* re-try insert */ /* we failed, giving up for now */ reportDBError(pData, 0); |