Skip to content

Commit b0f36cc

Browse files
committed
Another little tweak.
1 parent bc3046b commit b0f36cc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/pqxx/params.hxx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,13 @@ public:
9292
{
9393
// First argument is a source of an encoding group, not a parameter.
9494
m_enc = pqxx::internal::get_encoding_group(first);
95-
append_pack(loc, std::forward<Args>(args)...);
9695
}
9796
else
9897
{
99-
// All arguments are parameters for the SQL statement.
100-
append_pack(
101-
loc, std::forward<First>(first), std::forward<Args>(args)...);
98+
// The first argument is just a regular parameter.
99+
append(std::forward<First>(first), loc);
102100
}
101+
append_pack(loc, std::forward<Args>(args)...);
103102
}
104103

105104
/// Pre-allocate room for at least `n` parameters.

0 commit comments

Comments
 (0)