We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6177c86 + 2ec8293 commit 68b4226Copy full SHA for 68b4226
src/puppetlabs/puppetdb/scf/storage.clj
@@ -1494,7 +1494,7 @@
1494
;; from the case where the incoming report needs partition(s) made for it.
1495
(try
1496
(jdbc/update! "resource_events" {:latest false} ["latest = true and report_id = ?" latest-report-id])
1497
- (jdbc/update! "reports" {:latest false} ["latest = true and certname = ?" certname])
+ (jdbc/update! "reports" {:latest false} ["latest = true and id = ?" latest-report-id])
1498
(catch java.sql.BatchUpdateException e
1499
;; undefined table -- inheritance partitions, or declarative partitions w/ no children
1500
;; check constraint violation -- declarative partitions when row does not match child partitions
0 commit comments