| От | Haller Christoph |
|---|---|
| Тема | ERROR: Cannot insert a duplicate key into a unique index |
| Дата | |
| Msg-id | 200109121506.RAA17397@rodos обсуждение исходный текст |
| Ответы |
Re: ERROR: Cannot insert a duplicate key into a unique index
|
| Список | pgsql-sql |
[SQL] ERROR: Cannot insert a duplicate key into a unique index I'm working on a C code application using loads of insert commands. It is essential to distinguish between an error coming from a misformed command or other fatal reasons and a duplicate key. In either case, the PQresultStatus() returns PGRES_FATAL_ERROR I can check PQresultErrorMessage() for the error message above, but then I have to rely on this string never be changed. This is no good programming style. Does anybody have another, better idea or is there at least a header file available, where all the error messages can be found? Regards, Christoph
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера