Skip to content

Commit 4e17628

Browse files
committed
Error handling.
1 parent 4881763 commit 4e17628

File tree

1 file changed

+4
-0
lines changed
  • Provider/src/FirebirdSql.Data.FirebirdClient/Common

1 file changed

+4
-0
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient/Common/IscHelper.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using System.Globalization;
2121
using System.Resources;
2222
using System.Text;
23+
using FirebirdSql.Data.FirebirdClient;
2324

2425
namespace FirebirdSql.Data.Common
2526
{
@@ -40,6 +41,9 @@ public static List<object> ParseDatabaseInfo(byte[] buffer)
4041

4142
switch (type)
4243
{
44+
case IscCodes.isc_info_error:
45+
throw FbException.Create("Received error response.");
46+
4347
case IscCodes.isc_info_allocation:
4448
case IscCodes.isc_info_ods_version:
4549
case IscCodes.isc_info_ods_minor_version:

0 commit comments

Comments
 (0)