From f0b34fe7a9735d5aae6d8900b237e217d36680cb Mon Sep 17 00:00:00 2001 From: "Jack He (Github)" Date: Fri, 12 Jan 2024 15:03:05 -0800 Subject: [PATCH] fix sql statements (#4054) Co-authored-by: Jack He --- scripts/secnetperf-helpers.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/secnetperf-helpers.psm1 b/scripts/secnetperf-helpers.psm1 index 129776b727..0b202918d8 100644 --- a/scripts/secnetperf-helpers.psm1 +++ b/scripts/secnetperf-helpers.psm1 @@ -82,7 +82,7 @@ function Invoke-SecnetperfTest($MsQuicCommit, $commands, $exe, $start, $LogProfi $testid = $i + 1 + $start $SQL += @" -INSERT OR IGNORE INTO Secnetperf_tests (Secnetperf_test_ID, Kernel_mode, Run_arguments) VALUES ($testid, 0, "$($commands[$i]) -tcp:$tcp") +INSERT OR IGNORE INTO Secnetperf_tests (Secnetperf_test_ID, Kernel_mode, Run_arguments) VALUES ($testid, 0, "$($commands[$i]) -tcp:$tcp"); "@ $command = "$exe -target:netperf-peer $($commands[$i]) -tcp:$tcp -trimout" @@ -152,7 +152,7 @@ INSERT OR IGNORE INTO Secnetperf_tests (Secnetperf_test_ID, Kernel_mode, Run_arg # Generate SQL statement. Assume LAST_INSERT_ROW_ID() $SQL += @" -INSERT INTO Secnetperf_test_runs (Secnetperf_test_ID, Secnetperf_commit, Client_environment_ID, Server_environment_ID, Result, Latency_stats_ID) +INSERT INTO Secnetperf_test_runs (Secnetperf_test_ID, Secnetperf_commit, Client_environment_ID, Server_environment_ID, Result, Secnetperf_latency_stats_ID) VALUES ($testid, '$MsQuicCommit', $env, $env, $num, NULL); "@