Fix packet errors due to empty queries in cli

next
Sayan Nandan 4 years ago
parent 3ce9ea6eeb
commit a39a7b82a3
No known key found for this signature in database
GPG Key ID: C31EFD7DDA12AEE0

@ -69,6 +69,10 @@ pub async fn execute_query() {
println!("Goodbye!");
process::exit(0x100);
}
if rl.len() == 0 {
// The query was empty, so let it be
continue;
}
con.run_query(rl).await;
}
}

Loading…
Cancel
Save