Skip to content

Commit

Permalink
NpgsqlError
Browse files Browse the repository at this point in the history
Fix bug that would cause NpgsqlError to stop reading error fields prematurally if it encountered a field type it doesn't understand.
  • Loading branch information
glenebob committed Nov 17, 2013
1 parent d2164d9 commit 126cd71
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Npgsql/NpgsqlError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@ internal NpgsqlError(ProtocolVersion protocolVersion, Stream stream)
_constraintName = PGUtil.ReadString(stream);
;
break;
default:
// Unknown error field; consume and discard.
PGUtil.ReadString(stream);
;
break;

}
}
Expand Down

0 comments on commit 126cd71

Please sign in to comment.