use sqlite3_ext::*; fn column_borrow(conn: &Connection) -> Result<()> { let results: Vec = conn .prepare("SELECT 1, 2, 3")? .query(())? .map(|r| { let col1 = &mut r[0]; let col2 = &mut r[1]; assert_ne!(col1.get_str()?, col2.get_str()?); Ok(true) }) .collect()?; assert_eq!(results, vec![true]); Ok(()) } fn main() {}