File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
DbExceptionClassifier/PostgreSQL Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ public class PostgreSQLExceptionClassifier : IDbExceptionClassifier
1111 public bool IsNumericOverflowError ( DbException exception ) => exception is PostgresException { SqlState : PostgresErrorCodes . NumericValueOutOfRange } ;
1212 public bool IsUniqueConstraintError ( DbException exception ) => exception is PostgresException { SqlState : PostgresErrorCodes . UniqueViolation } ;
1313 public bool IsMaxLengthExceededError ( DbException exception ) => exception is PostgresException { SqlState : PostgresErrorCodes . StringDataRightTruncation } ;
14- public bool IsDeadlockError ( DbException exception ) => exception is PostgresException { SqlState : "40P01" } ;
14+ public bool IsDeadlockError ( DbException exception ) => exception is PostgresException { SqlState : PostgresErrorCodes . DeadlockDetected } ;
1515}
You can’t perform that action at this time.
0 commit comments