Skip to content

Commit a217494

Browse files
committed
Skip results if there's no query
1 parent fd3e518 commit a217494

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ fn main() {
3232
pg::connect(&opt)
3333
} {
3434
Ok(results) => {
35-
println!("Success {:?}", results);
35+
if opt.sql_query.is_none() {
36+
println!("Success");
37+
} else {
38+
println!("Success {:?}", results);
39+
}
3640
std::process::exit(exitcode::OK);
3741
}
3842
Err(dberror) => match dberror.kind {

0 commit comments

Comments
 (0)