From d589cb9732b9b629bb36767b7553312d95bb444b Mon Sep 17 00:00:00 2001 From: Matthias Sebastian Sort Date: Tue, 28 Jan 2025 15:19:00 +0100 Subject: [PATCH] added sqlCommand.Connection.State check in CreateTempTable --- src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj | 2 +- src/UserDestinationWriter.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj b/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj index 270599e..19cc439 100644 --- a/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj +++ b/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj @@ -1,6 +1,6 @@  - 10.9.0 + 10.9.1 1.0.0.0 User Provider User Provider diff --git a/src/UserDestinationWriter.cs b/src/UserDestinationWriter.cs index ff0f2b9..85fa025 100644 --- a/src/UserDestinationWriter.cs +++ b/src/UserDestinationWriter.cs @@ -264,6 +264,9 @@ private bool UseAutoSearching public void CreateTempTable(string tempTableSchema, string tempTableName, string tempTablePrefix, List destinationColumns) { + if (_sqlCommand.Connection.State != ConnectionState.Open) + _sqlCommand.Connection.Open(); + SQLTable.CreateTempTable(_sqlCommand, tempTableSchema, tempTableName, tempTablePrefix, destinationColumns, _logger); }