Skip to content

Commit 446a8a2

Browse files
committed
Another Npgsql exception detected as operation timeout
1 parent a6e8ed3 commit 446a8a2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • Orm/Xtensive.Orm.PostgreSql/Sql.Drivers.PostgreSql

Orm/Xtensive.Orm.PostgreSql/Sql.Drivers.PostgreSql/Driver.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ private SqlExceptionType ProcessClientSideException(NpgsqlException clientSideEx
100100
}
101101
}
102102
}
103+
if (innerException is TimeoutException timeoutException) {
104+
return SqlExceptionType.OperationTimeout;
105+
}
103106
return SqlExceptionType.Unknown;
104107
}
105108

0 commit comments

Comments
 (0)