Skip site navigation (1) Skip section navigation (2)

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

From: "Dennis van Dok" <dvandok(at)quicknet(dot)nl>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1556: psql ON_ERROR_STOP returns 3 when scripts ends in C style comment
Date: 2005-03-21 21:06:49
Message-ID: 20050321210649.7EFB0F0D73@svr2.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      1556
Logged by:          Dennis van Dok
Email address:      dvandok(at)quicknet(dot)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

Responses

pgsql-bugs by date

Next:From: Josh BerkusDate: 2005-03-22 01:11:49
Subject: Re: BUG #1552: massive performance hit between 7.4 and 8.0.1
Previous:From: Peter CottinghamDate: 2005-03-21 19:20:04
Subject: BUG #1555: bug in GROUP BY?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group