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:
@@ -124,7 +124,11 @@ impl BaseWorker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const QUERY_UPDATE_MONEY: &str = r#"
|
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 {
|
impl BaseWorker {
|
||||||
|
|||||||
Reference in New Issue
Block a user