BUG #14633: ecpg : nothing is generated when using option -v

Started by zosrothkoalmost 9 years ago3 messagesbugs
Jump to latest
#1zosrothko
zosrothko@orange.fr

The following bug has been logged on the website:

Bug reference: 14633
Logged by: Francis ANDRE
Email address: zosrothko@orange.fr
PostgreSQL version: 9.5.1
Operating system: Win7 Pro
Description:

Hi

Running the ecpg precompiler command with option -v generates an empty
main.cxx

C:\MXW\Clients\PagesJaunes\SQLDynamic\SQLDynamic>"C:\Program Files
(x86)\PostgreSQL\9.5\bin\ecpg.exe" -v -o main.cxx main.pgc

ecpg, le préprocesseur C embarqué de PostgreSQL, version 4.11.0
la recherche EXEC SQL INCLUDE ... commence ici :
.
/usr/local/include
C:/Program Files (x86)/PostgreSQL/9.5/include
/usr/include
fin de la liste de recherche

C:\MXW\Clients\PagesJaunes\SQLDynamic\SQLDynamic>type main.cxx

C:\MXW\Clients\PagesJaunes\SQLDynamic\SQLDynamic>

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

#2Michael Meskes
meskes@postgresql.org
In reply to: zosrothko (#1)
Re: BUG #14633: ecpg : nothing is generated when using option -v

Running the ecpg precompiler command with option -v generates an empty
main.cxx
...

Not sure I understand why you think this is a bug. 'ecpg -v' is supposed to

Print additional information including the version and the "include" path.

It is not supposed to do any preprocessing. But since you added an '-o'
option it did create the file.

Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL

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

#3zosrothko
zosrothko@orange.fr
In reply to: Michael Meskes (#2)
Re: BUG #14633: ecpg : nothing is generated when using option -v

Le 27/04/2017 à 19:35, Michael Meskes a écrit :

Running the ecpg precompiler command with option -v generates an empty
main.cxx
...

Not sure I understand why you think this is a bug. 'ecpg -v' is supposed to

Print additional information including the version and the "include" path.

It is not supposed to do any preprocessing. But since you added an '-o'
option it did create the file.

Ok... I would expect that -v combined with -o would do the preprocessing
of the ecpg file while printing additional information.

Michael

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