diff --git a/src/Npgsql.Bulk/NpgsqlBulkUploader.cs b/src/Npgsql.Bulk/NpgsqlBulkUploader.cs index 9d4a735..f40de46 100644 --- a/src/Npgsql.Bulk/NpgsqlBulkUploader.cs +++ b/src/Npgsql.Bulk/NpgsqlBulkUploader.cs @@ -1016,7 +1016,7 @@ private List GetMappingInfo(Type type, string tableName) x.ModifierAttributes = modifiers?.ToList() ?? new List(); x.OverrideSourceMethod = GetOverrideSouceFunc(type, sourceAttribute?.PropertyName); x.NpgsqlType = GetNpgsqlType(x.ColumnInfo); - x.TempAliasedColumnName = $"{x.TableName}_{x.ColumnInfo.ColumnName}".ToLower(); + x.TempAliasedColumnName = Guid.NewGuid().ToString().Replace("-", "_"); x.QualifiedColumnName = $"{NpgsqlHelper.GetQualifiedName(x.TableName)}.{NpgsqlHelper.GetQualifiedName(x.ColumnInfo.ColumnName)}"; }); return mappings;