Skip to content

Commit

Permalink
Inverted logic for proc createAnalysisView
Browse files Browse the repository at this point in the history
  • Loading branch information
spaghettidba committed Jun 20, 2022
1 parent ef348a3 commit 79b0d7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WorkloadTools/Consumer/Analysis/WorkloadAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ protected void CreateTargetTables()
cmd.ExecuteNonQuery();
}

sql = "IF OBJECT_ID('dbo.createAnalysisView') IS NOT NULL EXEC('DROP PROCEDURE dbo.createAnalysisView')";
sql = "IF OBJECT_ID('dbo.createAnalysisView') IS NULL EXEC('CREATE PROCEDURE dbo.createAnalysisView AS RETURN 0')";
using (SqlCommand cmd = conn.CreateCommand())
{
cmd.CommandText = sql;
Expand Down
2 changes: 1 addition & 1 deletion WorkloadTools/Consumer/Analysis/createAnalysisView.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE PROCEDURE [dbo].[createAnalysisView]
ALTER PROCEDURE [dbo].[createAnalysisView]
@baselineSchema AS nvarchar(max),
@replaySchema AS nvarchar(max)
AS
Expand Down

0 comments on commit 79b0d7e

Please sign in to comment.