ecpg -D SYMBOL

Поиск
Список
Период
Сортировка
От Luke McFarlane
Тема ecpg -D SYMBOL
Дата
Msg-id 40EA3D5A.1010400@fisheye.com.au
обсуждение исходный текст
Ответы Re: ecpg -D SYMBOL  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-bugs
Hi

I'm running postgresql 7.4.1 and ecpg 3.1.0.

When defining a symbol on the command line with ecpg -D SYMBOL the ecpg
preprocessor will replace that symbol with empty space in 'C' program
space rather than limiting it to 'SQL' program space.

For example:

EXEC SQL IFDEF SYMBOL;
EXEC SQL ...
EXEC SQL ENDIF;

#ifdef SYMBOL
...
#endif

compiling with ecpg -D SYMBOL results in

EXEC SQL IFDEF SYMBOL;
EXEC SQL ...
EXEC SQL ENDIF;

#ifdef
...
#endif

It shouldn't touch anything outside EXEC SQL.

Also, if you try to fool ecpg by compiling with ecpg -D SYMBOL=SYMBOL it
will sit in an infinite loop gobbling as much virtual memory as it sees fit.

Luke

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #1118: Misleading Commit message
Следующее
От: Luis Sousa
Дата:
Сообщение: Bug related with permissions - VIEWS and RULES