List Info

Thread: How to get SQL Error code




How to get SQL Error code
user name
2007-03-05 05:11:57
Hi,

It seems that the sql_error exception class (as described
at
http://thaiopensource
.org/devprojects/libpqxx/doc/2.6.9/html/Reference/a00265.htm
l#_details)
does not have any way to get the underlying SQL error code
from
http://www.postgresql.org/docs/8.1/interact
ive/errcodes-appendix.html -
did I miss something?

Thanks,
Markus

-- 
Markus Schaber | Logical Tracking&Tracing International
AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org
_______________________________________________
Libpqxx-general mailing list
Libpqxx-generalgborg.postgresql.org
http://gborg.postgresql.org/mailman/listinfo/libpqxx
-general

Re: How to get SQL Error code
country flaguser name
Netherlands
2007-03-05 09:39:09
On Mon, March 5, 2007 18:11, Markus Schaber wrote:
> Hi,
>
> It seems that the sql_error exception class (as
described at
> http://thaiopensource
.org/devprojects/libpqxx/doc/2.6.9/html/Reference/a00265.htm
l#_details)
> does not have any way to get the underlying SQL error
code from
> http://www.postgresql.org/docs/8.1/interact
ive/errcodes-appendix.html -
> did I miss something?

There isn't always an underlying SQL error code, so at the
moment it's not
made available yet.  But there is a hierarchy of exception
classes to give
you more information about the nature of the problem.


Jeroen


_______________________________________________
Libpqxx-general mailing list
Libpqxx-generalgborg.postgresql.org
http://gborg.postgresql.org/mailman/listinfo/libpqxx
-general

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )