mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
Fix declaration after statement
This style is frowned upon. I inadvertently introduced one in commit fe0e0b4fc7f0. (My compiler does not complain about it, even though -Wdeclaration-after-statement is specified. Weird.) Author: Masahiko Sawada
This commit is contained in:
parent
4cae471d1b
commit
65d857d92c
@ -2725,9 +2725,11 @@ readCommandResponse(CState *st, char *varprefix)
|
|||||||
|
|
||||||
while (res != NULL)
|
while (res != NULL)
|
||||||
{
|
{
|
||||||
/* look now at the next result to know whether it is the last */
|
bool is_last;
|
||||||
|
|
||||||
|
/* peek at the next result to know whether the current is last */
|
||||||
next_res = PQgetResult(st->con);
|
next_res = PQgetResult(st->con);
|
||||||
bool is_last = (next_res == NULL);
|
is_last = (next_res == NULL);
|
||||||
|
|
||||||
switch (PQresultStatus(res))
|
switch (PQresultStatus(res))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user