From d7f0864e8938b6ea01f9e007c6430207c89d8c63 Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Sat, 24 Feb 2024 18:52:04 +0100 Subject: [PATCH] fix account_key vs key on insert --- src/postgres.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/postgres.rs b/src/postgres.rs index 7cda564..49a27f0 100644 --- a/src/postgres.rs +++ b/src/postgres.rs @@ -298,8 +298,8 @@ impl PostgresSession { let statement = format!( r#" INSERT INTO banking_stage_results_2.accounts(account_key) - SELECT key FROM {} - ORDER BY key + SELECT account_key FROM {} + ORDER BY account_key ON CONFLICT(account_key) DO NOTHING "#, temp_table