SCM

[#1011245] Fill SQLSTATE in all NpgsqlExceptions

View Trackers | Feature Requests | Download .csv | Monitor

Date:
2012-10-10 04:16
Priority:
3
State:
Open
Submitted by:
chen huajun (chenhuajun)
Assigned to:
Nobody (None)
Category:
None
Group:
None
Resolution:
None
 
Summary:
Fill SQLSTATE in all NpgsqlExceptions

Detailed description
Right now,Only NpgsqlExceptions related to talking to the server have SQLSTATE(NpgsqlException.Code) been filled.
Maybe it's better to fill SQLSTATE to all NpgsqlExceptions.

For example:
1)NpgsqlException with SQLSTATE filled
throw new NpgsqlException(errors);

2)NpgsqlException without SQLSTATE filled
NpgsqlCommand.cs(1506): return new NpgsqlException(resman.GetString("Exception_ConnectionBroken"), e);

reference:
http://pgfoundry.org/forum/forum.php?thread_id=15317&forum_id=518

Followup

No Followups Have Been Posted

Attached Files:

Changes:

No Changes Have Been Made to This Item

Powered By FusionForge