ecpg c++ scope operator lost

Поиск
Список
Период
Сортировка
От Mark Pether
Тема ecpg c++ scope operator lost
Дата
Msg-id 3FE0B927.8060402@redsheriff.com
обсуждение исходный текст
Ответы Re: ecpg c++ scope operator lost  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-bugs
Ecpg pretty prints my code causing compile errors.

ie. code to compile:

EXEC SQL BEGIN DECLARE SECTION;
        char bound_waiting_state =
            static_cast<char>(Processor::waiting);
EXEC SQL END DECLARE SECTION;

turns into:

 /* exec sql begin declare section */
#line 90 "Schedule.pgcc"
   char  bound_waiting_state  = static_cast < char > ( Processor : :
waiting ) ;
/* exec sql end declare section */
#line 93 "Schedule.pgcc"

The scope operator becomes space padded and compiler barfs.

Work around is to initialise variables outside of declare section.

Regards,
Mark Pether.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1020: Timestamp representation printed by PostgreSQL are invalid
Следующее
От: "Gustavo Scotti"
Дата:
Сообщение: Bugs in bigint indexes