TPQConnection: Duplicated error message.
Original Reporter info from Mantis: silvioprog
-
Reporter name: silvioprog
Original Reporter info from Mantis: silvioprog
- Reporter name: silvioprog
Description:
Hello,
When I try violate a unique key via pgAdmin, I got the following message error:
---------------------------
An error occurred:
ERROR: duplicate key value violates unique constraint "un_test"
---------------------------
OK, the message above is correct, but, when I try the same operation via SQLdb, I got:
---------------------------
TPQConnection : Execution of query failed (PostgreSQL: ERRO: duplicate key value violates unique constraint "un_test"
Severity: ERROR
SQL State: 23505
Primary Error: duplicate key value violates unique constraint "un_test
"
Error Detail:
Hint:
Character:
)
---------------------------
Is it really necessary to show the error message twice? It seems so redundant.
Steps to reproduce:
SQL to create the table for tests and program to test it in attached.
Mantis conversion info:
- Mantis ID: 24229
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 24153 (#e766ac47)
- Target version: 3.0.0