Skip to main content

max / goingson

Restore the workspace test build under sqlx 0.9 sqlx 0.9 requires dynamic SQL strings to be wrapped in AssertSqlSafe. The 0.9 bump applied this to the production query sites but missed one in the restore tests, so the whole workspace test suite failed to compile and the regression net was off. The table names come from a hardcoded literal array, so the wrap matches the audited-and-safe usage already established across the repository. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-07-21 17:44 UTC
Commit: 22c29fb37a7341f633dc7803e93e6a3a3e5199c9
Parent: 482b72c
1 file changed, +1 insertion, -1 deletion
@@ -405,7 +405,7 @@ async fn restore_round_trips_supplemental_collections() {
405 405 // Deleting tasks cascades time_sessions + attachments; deleting projects
406 406 // cascades milestones; daily_notes and sync_accounts are independent.
407 407 for table in ["tasks", "daily_notes", "sync_accounts", "projects"] {
408 - sqlx::query(&format!("DELETE FROM {table}"))
408 + sqlx::query(sqlx::AssertSqlSafe(format!("DELETE FROM {table}")))
409 409 .execute(&pool)
410 410 .await
411 411 .unwrap();