Verbessere Fehlerbehandlung in SQL-Abfragen: Füge detaillierte Fehlermeldungen für Vorbereitungs- und Ausführungsfehler in den Director- und Politics-Workern hinzu.
This commit is contained in:
@@ -265,7 +265,9 @@ FROM falukant_data.political_office po
|
||||
JOIN falukant_type.political_office_type pot ON pot.id = po.office_type_id
|
||||
JOIN falukant_data.region r ON r.id = po.region_id
|
||||
JOIN falukant_type.region rt ON rt.id = r.region_type_id
|
||||
WHERE po.holder_id = $1 AND (po.end_date IS NULL OR po.end_date > NOW());
|
||||
JOIN falukant_data.character ch ON ch.id = po.character_id
|
||||
WHERE ch.user_id = $1
|
||||
AND (po.created_at + (pot.term_length * INTERVAL '1 day')) > NOW();
|
||||
"#;
|
||||
|
||||
pub const QUERY_CUMULATIVE_TAX_NO_EXEMPT: &str = r#"
|
||||
|
||||
Reference in New Issue
Block a user