Permalink
Browse files

Calling WriteWithLengthInternal to check buffer space

  • Loading branch information...
YohDeadfall committed Sep 23, 2018
1 parent 925f73a commit c362e1c996d432f1df7030af49966897c4e26f5a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Npgsql/TypeHandlers/UnmappedCompositeHandler.cs
@@ -190,7 +190,7 @@ public override int ValidateAndGetLength(object value, ref NpgsqlLengthCache len
protected internal override Task WriteObjectWithLength(object value, NpgsqlWriteBuffer buf, NpgsqlLengthCache lengthCache, NpgsqlParameter parameter, bool async)
=> value == null || value is DBNull
? WriteWithLengthInternal<DBNull>(null, buf, lengthCache, parameter, async)
: WriteWithLength(value, buf, lengthCache, parameter, async);
: WriteWithLengthInternal(value, buf, lengthCache, parameter, async);
protected override Task WriteWithLength<T2>(T2 value, NpgsqlWriteBuffer buf, NpgsqlLengthCache lengthCache, NpgsqlParameter parameter, bool async)
{

0 comments on commit c362e1c

Please sign in to comment.