fix account_key vs key on insert

This commit is contained in:
GroovieGermanikus 2024-02-24 18:52:04 +01:00
parent bab25959f6
commit d7f0864e89
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 2 additions and 2 deletions

View File

@ -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