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
//SQL Server 2019 added a new error with better error message: https://docs.microsoft.com/en-us/archive/blogs/sql_server_team/string-or-binary-data-would-be-truncated-replacing-the-infamous-error-8152
publicboolIsUniqueConstraintError(DbExceptionexception)=>exceptionisSqlException{Number:CannotInsertDuplicateKeyUniqueConstraint or CannotInsertDuplicateKeyUniqueIndex};
23
+
publicboolIsMaxLengthExceededError(DbExceptionexception)=>exceptionisSqlException{Number:StringOrBinaryDataWouldBeTruncated or StringOrBinaryDataWouldBeTruncated2019};
0 commit comments