We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1dc353 commit 362518cCopy full SHA for 362518c
cli/src/session.rs
@@ -66,10 +66,12 @@ impl Session {
66
println!("Connected to {}", version);
67
println!();
68
69
- let mut rows = conn.query_iter(PROMPT_SQL).await.unwrap();
70
- while let Some(row) = rows.next().await {
71
- let name: (String,) = row.unwrap().try_into().unwrap();
72
- keywords.push(name.0);
+ let rows = conn.query_iter(PROMPT_SQL).await;
+ if let Ok(mut rows) = rows {
+ while let Some(row) = rows.next().await {
+ let name: (String,) = row.unwrap().try_into().unwrap();
73
+ keywords.push(name.0);
74
+ }
75
}
76
77
0 commit comments