You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've started using poco::data , v1.11.0. ( I seems like a wonderful lib, thanks for creating it ).
I seem to be unable to find a statements sqlcode.
at least when I use Poco::Data::PostgreSQL::PostgreSQLException, with postgresql v15.3
and have a failing insert statement with the following msg "the display text is "ERROR: null value in column "...l" of relation "..." violates not-null constraint" ,
the value returned by exception.code() is 0.
while I expected to see something like 23502.
so either this is a bug,
Or I am looking in the wrong place.
Please advise,
Omer.
The text was updated successfully, but these errors were encountered:
but this seems to be incorrect implementation, the pSQLState is returned as part of a string, which defeats the purpose of SQLState ( to have a numeric return value and allow the user to avoid string parsing to determine how to proceed).
hello all,
I've started using poco::data , v1.11.0. ( I seems like a wonderful lib, thanks for creating it ).
I seem to be unable to find a statements sqlcode.
at least when I use Poco::Data::PostgreSQL::PostgreSQLException, with postgresql v15.3
and have a failing insert statement with the following msg "the display text is "ERROR: null value in column "...l" of relation "..." violates not-null constraint" ,
the value returned by exception.code() is 0.
while I expected to see something like 23502.
so either this is a bug,
Or I am looking in the wrong place.
Please advise,
Omer.
The text was updated successfully, but these errors were encountered: