Merge pull request #918 from drwonky/PT-2422

PT-2422 Fix unconstrained UPDATE to pt_osc_history table
This commit is contained in:
Sveta Smirnova
2025-03-18 15:04:43 +03:00
committed by GitHub
2 changed files with 122 additions and 2 deletions

View File

@@ -9797,9 +9797,9 @@ sub main {
if ( $o->get('history') ) {
my $sth = $cxn->dbh()->prepare(
"UPDATE ${hist_table} SET new_table_name = ?"
"UPDATE ${hist_table} SET new_table_name = ? WHERE job_id = ?"
);
$sth->execute($new_tbl->{tbl});
$sth->execute($new_tbl->{tbl}, $job_id);
}
# If the new table still exists, drop it unless the tool was interrupted.