fix account_key vs key on insert (#61)

This commit is contained in:
Groovie | Mango 2024-02-24 19:08:41 +01:00 committed by GitHub
parent bab25959f6
commit 1515ee2119
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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