1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-22 14:32:25 +03:00

Fixup various new-to-v18 usages of appendPQExpBuffer

Use appendPQExpBufferStr when there are no parameters and
appendPQExpBufferChar when the string length is 1.

Author: David Rowley <drowleyml@gmail.com>
Discussion: https://postgr.es/m/CAApHDvoARMvPeXTTC0HnpARBHn-WgVstc8XFCyMGOzvgu_1HvQ@mail.gmail.com
This commit is contained in:
David Rowley
2025-04-17 11:37:55 +12:00
parent f3281f9f93
commit 3fae25cbb3
4 changed files with 11 additions and 14 deletions

View File

@@ -2859,7 +2859,7 @@ error_return:
}
}
appendPQExpBufferStr(&conn->errorMessage, "\n");
appendPQExpBufferChar(&conn->errorMessage, '\n');
return PGRES_POLLING_FAILED;
}