From 9e3090ab1d097b249464fbb88c77503ab0fdf02e Mon Sep 17 00:00:00 2001 From: Larry Williamson Date: Thu, 5 Dec 2024 06:21:04 -0500 Subject: Clear the pgsql output vector before adding new values. --- src/modules/extra/m_pgsql.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/extra/m_pgsql.cpp') 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)); -- cgit v1.3.1-10-gc9f91