Skip to content

Commit

Permalink
fix: properly count indexes in postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
frectonz committed Jun 25, 2024
1 parent 911ca4d commit f13687c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1344,11 +1344,14 @@ mod postgres {
let count: i64 = self
.client
.query_one(
r#"
&format!(
r#"
SELECT count(*)
FROM pg_indexes
WHERE tablename = '{name}'
"#,
WHERE tablename = '{}'
"#,
table.name
),
&[],
)
.await?
Expand Down

0 comments on commit f13687c

Please sign in to comment.