We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f96f6f commit ae44fbbCopy full SHA for ae44fbb
src/pgsql.cpp
@@ -130,18 +130,13 @@ void pg_conn_t::end_copy(std::string const &context) const
130
static std::string concat_params(int num_params,
131
char const *const *param_values)
132
{
133
- std::string params;
+ util::string_joiner_t joiner{','};
134
135
for (int i = 0; i < num_params; ++i) {
136
- params += param_values[i] ? param_values[i] : "<NULL>";
137
- params += ',';
+ joiner.add(param_values[i] ? param_values[i] : "<NULL>");
138
}
139
140
- if (!params.empty()) {
141
- params.resize(params.size() - 1);
142
- }
143
-
144
- return params;
+ return joiner();
145
146
147
pg_result_t
0 commit comments