[BUGS] postgresql-10.0/src/bin/psql/mainloop.c:465: suspicious condition ?

Поиск
Список
Период
Сортировка
От David Binderman
Тема [BUGS] postgresql-10.0/src/bin/psql/mainloop.c:465: suspicious condition ?
Дата
Msg-id HE1PR0802MB233122B61F00A15E035C83BE9C710@HE1PR0802MB2331.eurprd08.prod.outlook.com
обсуждение исходный текст
Ответы Re: [BUGS] postgresql-10.0/src/bin/psql/mainloop.c:465: suspicious condition ?
Список pgsql-bugs
Hello there,

postgresql-10.0/src/bin/psql/mainloop.c:461] -> [postgresql-10.0/src/bin/psql/mainloop.c:465]: (warning) Opposite inner
'if'condition leads to a dead code block. 

Source code is
   if (query_buf->len > 0 && !pset.cur_cmd_interactive &&       successResult == EXIT_SUCCESS)   {       /* save query
inhistory */       if (pset.cur_cmd_interactive)           pg_send_history(history_buf); 

It looks like function pg_send_history can never be executed.

Regards

David Binderman

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Noah Misch
Дата:
Сообщение: Re: [BUGS] BUG #14794: Installation failure if user specify French password
Следующее
От: buschmann@nidsa.net
Дата:
Сообщение: [BUGS] BUG #14844: Failure/Duplicate key value with ALTER DATABASE setsearch_path