BUG #1556: psql ON_ERROR_STOP returns 3 when scripts ends in C style comment

Поиск
Список
Период
Сортировка
От Dennis van Dok
Тема BUG #1556: psql ON_ERROR_STOP returns 3 when scripts ends in C style comment
Дата
Msg-id 20050321210649.7EFB0F0D73@svr2.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #1556: psql ON_ERROR_STOP returns 3 when scripts ends in C style comment  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      1556
Logged by:          Dennis van Dok
Email address:      dvandok@quicknet.nl
PostgreSQL version: 7.3.4
Operating system:   Debian GNU/Linux 3.0
Description:        psql ON_ERROR_STOP returns 3 when scripts ends in C
style comment
Details:

Running a script through psql with ON_ERROR_STOP=1 will yield return value 3
if the script ends with a C style comment (/*...*/).

minimal example:

echo '/**/' | psql -v ON_ERROR_STOP=1 template1; echo $?
3

:-/

Regards,

Dennis

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

Предыдущее
От: Brian O'Reilly
Дата:
Сообщение: Re: BUG #1552: massive performance hit between 7.4 and 8.0.1
Следующее
От: "Guido Barosio"
Дата:
Сообщение: BUG #1554: wrong character on the sjis_to_utf8.map file