Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merged US 15364 & BUG 15267 & BUG 15251 into this #10

Merged
merged 3 commits into from
Sep 19, 2023

Conversation

MatthiasSort
Copy link
Contributor

@MatthiasSort MatthiasSort commented Sep 8, 2023

@@ -155,15 +156,27 @@ public override Schema GetOriginalSourceSchema()
tablesToRemove.Add(table);
else if (table.Name == "EcomOrders")
{
table.AddColumn(new SqlColumn(("OrderCustomerAccessUserExternalId"), typeof(string), SqlDbType.NVarChar, table, -1,
false, false, true));
table.AddColumn(new SqlColumn(SourceColumnNameForDestinationOrderCustomerAccessUserId, typeof(string), SqlDbType.NVarChar, table, -1, false, false, true));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the use of SourceColumnNameForDestinationOrderCustomerAccessUserId really right where it's been used here?
I thought OrderCustomerAccessUserExternalId was made as the constant for "OrderCustomerAccessUserExternalId"

@@ -501,7 +538,7 @@ private void ProcessRow(Mapping mapping, ColumnMappingCollection columnMappings,
if (mapping != null && mapping.DestinationTable != null && mapping.DestinationTable.Name == "EcomOrders" && !string.IsNullOrEmpty(SourceColumnNameForDestinationOrderCustomerAccessUserId))
{
object accessUserId = DBNull.Value;
var OrderCustomerAccessUserExternalIdMapping = columnMappings.Find(cm => string.Compare(cm.DestinationColumn.Name, "OrderCustomerAccessUserExternalId", true) == 0);
var OrderCustomerAccessUserExternalIdMapping = columnMappings.Find(cm => string.Compare(cm.DestinationColumn.Name, SourceColumnNameForDestinationOrderCustomerAccessUserId, true) == 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you missed one here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got damn it

@frederik5480 frederik5480 merged commit 7f26f1b into main Sep 19, 2023
1 check passed
@frederik5480 frederik5480 deleted the mss/mergeDW9TODW10 branch September 19, 2023 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants