trouble getting postgresql error message
Posted: Sun 27 Feb 2011 15:37
Hy, i have some trouble getting the correct error message from the postgres server to the client. it seems like a pgdac problem.
serverside the error is raised like that:
ERROR: update or delete on table "art" violates foreign key constraint "artoption_arts_aph_ak_nr_fkey" on table "artoption_arts"
SQL Status:23503
Detail:Key (ak_nr)=(TEST) is still referenced from table "artoption_arts".
(also shown in psql)
@ the client, only the first part of the error message is visble. (the content after ERROR:)
The SQL Status is missing as well as the important DETAIL part.
what to do, to get the important detail part through PGDAC to the user. I'm sure, in earlier versions that worked well. (much earlier, think the problem is about a half year, but i thought the reason was that we upgraded from postgres 81 to 90, but that isnt the reason, the error from the server is correct).
PS:
i checked that with ado too, here the error message looks like that:
update or delete on table "art" violates foreign key constraint "artoption_arts_aph_ak_nr_fkey" on table "artoption_arts"
Key (ak_nr)=(TEST) is still referenced from table "artoption_arts".
... so the user can see the ERROR and DETAIL part. SQL Status is hidden, like in PGDAC too, thats ok.
serverside the error is raised like that:
ERROR: update or delete on table "art" violates foreign key constraint "artoption_arts_aph_ak_nr_fkey" on table "artoption_arts"
SQL Status:23503
Detail:Key (ak_nr)=(TEST) is still referenced from table "artoption_arts".
(also shown in psql)
@ the client, only the first part of the error message is visble. (the content after ERROR:)
The SQL Status is missing as well as the important DETAIL part.
what to do, to get the important detail part through PGDAC to the user. I'm sure, in earlier versions that worked well. (much earlier, think the problem is about a half year, but i thought the reason was that we upgraded from postgres 81 to 90, but that isnt the reason, the error from the server is correct).
PS:
i checked that with ado too, here the error message looks like that:
update or delete on table "art" violates foreign key constraint "artoption_arts_aph_ak_nr_fkey" on table "artoption_arts"
Key (ak_nr)=(TEST) is still referenced from table "artoption_arts".
... so the user can see the ERROR and DETAIL part. SQL Status is hidden, like in PGDAC too, thats ok.