mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
different format
This commit is contained in:
@@ -372,7 +372,7 @@ impl Sql {
|
||||
) -> Result<Vec<T>> {
|
||||
let conn = self.get_conn().await?;
|
||||
let rows: Result<Vec<T>> = tokio::task::block_in_place(move || {
|
||||
let mut stmt = conn.prepare(&format!("SELECT DISTINCT {column} FROM {table}"))?;
|
||||
let mut stmt = conn.prepare(&format!("SELECT DISTINCT {} FROM {}", column, table))?;
|
||||
let rows = stmt
|
||||
.query([])?
|
||||
.mapped(|r| r.get(0))
|
||||
|
||||
Reference in New Issue
Block a user