Refine SQL query type casting in BaseWorker: Updated the update_money query to explicitly cast parameters to their respective types (int4, float8, text) for improved type safety and database interaction.

This commit is contained in:
Torsten Schulz (local)
2025-11-24 09:41:59 +01:00
parent 70ff0bc06c
commit 5f44f50304

View File

@@ -124,7 +124,11 @@ impl BaseWorker {
}
const QUERY_UPDATE_MONEY: &str = r#"
SELECT falukant_data.update_money($1, $2, $3);
SELECT falukant_data.update_money(
$1::int4,
$2::float8,
$3::text
);
"#;
impl BaseWorker {