Skip to content

Commit

Permalink
fix: error in fetching column names from duckdb
Browse files Browse the repository at this point in the history
  • Loading branch information
frectonz committed Oct 17, 2024
1 parent 09b29f5 commit bab013d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2621,7 +2621,8 @@ mod duckdb {
let mut tables = Vec::with_capacity(table_names.len());
for table_name in table_names {
let sql = format!(r#"SELECT * FROM "{table_name}" WHERE false"#);
let stmt = c.prepare(&sql)?;
let mut stmt = c.prepare(&sql)?;
let _ = stmt.query_map([], |_| Ok(()))?;
let columns = stmt.column_names();

tables.push(responses::TableWithColumns {
Expand Down

0 comments on commit bab013d

Please sign in to comment.