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

Adding connectino check before creating temp table #57

Merged
merged 3 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>10.8.1</Version>
<Version>10.8.2</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<Title>Ecom Provider</Title>
<Description>Ecom Provider</Description>
Expand Down
3 changes: 2 additions & 1 deletion src/EcomDestinationWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,9 @@ internal void CreateTempTables()
// refresh tables from the db
var currentTables = ((EcomProvider)job.Destination).GetDynamicwebSourceSchema().GetTables();
// ensure connection is open (as it is closed after GetTables() call
var tables = job.Destination.GetSchema().GetTables();
EnsureConnectionIsOpen();
foreach (Table table in job.Destination.GetSchema().GetTables())
foreach (Table table in tables)
{
var currentTable = GetTable(table.Name, currentTables);
if (DestinationColumnMappings.TryGetValue(table.Name, out Dictionary<string, Column>? columnMappingDictionary))
Expand Down
Loading