diff --git a/src/dbup-redshift/RedshiftScriptExecutor.cs b/src/dbup-redshift/RedshiftScriptExecutor.cs index 98b02b0..187100f 100644 --- a/src/dbup-redshift/RedshiftScriptExecutor.cs +++ b/src/dbup-redshift/RedshiftScriptExecutor.cs @@ -40,11 +40,7 @@ protected override void ExecuteCommandsWithinExceptionHandler(int index, SqlScri { excuteCommand(); } -#if NPGSQLv2 - catch (NpgsqlException exception) -#else catch (PostgresException exception) -#endif { Log().LogInformation("Npgsql exception has occured in script: '{0}'", script.Name); Log().LogError("Script block number: {0}; Block line {1}; Position: {2}; Message: {3}", index, exception.Line, exception.Position, exception.Message);