Clear the pgsql output vector before adding new values.

This commit is contained in:
Larry Williamson 2024-12-05 06:21:04 -05:00 committed by GitHub
parent dbc17141d5
commit 9e3090ab1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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));