ECPG and escape strings

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема ECPG and escape strings
Дата
Msg-id 20050803143124.GA28095@winnie.fuhr.org
обсуждение исходный текст
Ответы Re: ECPG and escape strings  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: ECPG and escape strings  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-hackers
ECPG seems to be a little overzealous with the new escape string syntax:

% cat foo.pgc
int
main(void)
{   putchar('\n');   return 0;
}

% ecpg foo.pgc

% gcc -I`pg_config --includedir` -c foo.c
foo.pgc: In function `main':
foo.pgc:4: `E' undeclared (first use in this function)
foo.pgc:4: (Each undeclared identifier is reported only once
foo.pgc:4: for each function it appears in.)
foo.pgc:4: syntax error before character constant

% cat foo.c
/* Processed by ecpg (4.1.1) */
/* These include files are added by the preprocessor */
#include <ecpgtype.h>
#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.h>
/* End of automatic include section */
#line 1 "foo.pgc"
int
main(void)
{   putchar(E'\n');   return 0;
}

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/


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

Предыдущее
От: April Lorenzen
Дата:
Сообщение: pg_resetxlog says file system is read only?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: #escape_string_warning = off