Re: ecpg error --> DbPg_cre_sect_buf.pgc:1334: ERROR:

Поиск
Список
Период
Сортировка
От Douglas McNaught
Тема Re: ecpg error --> DbPg_cre_sect_buf.pgc:1334: ERROR:
Дата
Msg-id 871wxvzana.fsf@suzuka.mcnaught.org
обсуждение исходный текст
Ответ на ecpg error --> DbPg_cre_sect_buf.pgc:1334: ERROR: syntax error at or near "RELEASE"  (jason.ctr.alburger@faa.gov)
Список pgsql-general
jason.ctr.alburger@faa.gov writes:

> I'm relatively new to database programming & I've inherited a system to
> maintain that contains lots of embedded SQL.  I'm attempting to port my C
> source code from RH 7.2 (with ecpg 2.8.0) to Mandrake 10.0 (with ecpg
> 4.1.1).   ecpg 4.1.1 is generating an error which I did not get on the
> RH7.2 system with ecpg 2.8.0....It's telling me I have a syntax error with
> a "ROLLBACK RELEASE" (DbPg_cre_sect_buf.pgc:1334: ERROR: syntax error at or
> near "RELEASE").  Here's a snippet of the code in error...

I think RELEASE is now a reserved word (referring to savepoints) so
you should probably just change the code to use 'ROLLBACK;'.

-Doug

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

Предыдущее
От: jason.ctr.alburger@faa.gov
Дата:
Сообщение: ecpg error --> DbPg_cre_sect_buf.pgc:1334: ERROR: syntax error at or near "RELEASE"
Следующее
От: "Ets ROLLAND"
Дата:
Сообщение: PG 8 stop working !?