diff options
| author | 2024-12-05 06:21:04 -0500 | |
|---|---|---|
| committer | 2024-12-05 11:21:04 +0000 | |
| commit | 9e3090ab1d097b249464fbb88c77503ab0fdf02e (patch) | |
| tree | f5bf9c8a1d2c522272bb0aff57ad426934dd11d1 | |
| parent | Fix some compiler warnings when building on Haiku. (diff) | |
Clear the pgsql output vector before adding new values.
| -rw-r--r-- | src/modules/extra/m_pgsql.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index e4e656771..bf936dbfa 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -177,7 +177,8 @@ public: if (currentrow >= PQntuples(res)) return false; int ncols = PQnfields(res); - + + result.clear(); for(int i = 0; i < ncols; i++) { result.push_back(GetValue(currentrow, i)); |
