Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/EFCore.PG/Storage/Internal/Mapping/NpgsqlListTypeMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ protected override string GenerateNonNullSqlLiteral(object value)
sb.Append(ElementMapping.GenerateSqlLiteral(list[i]));
}

sb.Append(']');
sb.Append("]::");
sb.Append(ElementMapping.StoreType);
sb.Append("[]");
return sb.ToString();
}

Expand Down Expand Up @@ -143,7 +145,7 @@ static bool Compare(List<TElem> a, List<TElem> b, ValueComparer<TElem> elementCo

static List<TElem> Snapshot(List<TElem> source, ValueComparer<TElem> elementComparer)
{
if (source is null)
if (source == null)
return null;

var snapshot = new List<TElem>(source.Count);
Expand Down Expand Up @@ -194,7 +196,7 @@ static bool Compare(List<TElem> a, List<TElem> b)

static List<TElem> DoSnapshot(List<TElem> source)
{
if (source is null)
if (source == null)
return null;

var snapshot = new List<TElem>(source.Count);
Expand Down Expand Up @@ -243,7 +245,7 @@ static bool Compare(List<TElem> a, List<TElem> b)

static List<TElem> DoSnapshot(List<TElem> source)
{
if (source is null)
if (source == null)
return null;

var snapshot = new List<TElem>(source.Count);
Expand Down