Skip to content

Commit

Permalink
render empty strings
Browse files Browse the repository at this point in the history
Signed-off-by: Noel Kwan <[email protected]>
  • Loading branch information
kwannoel committed Jun 9, 2022
1 parent f41a7bf commit d089efc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,11 @@ impl sqllogictest::AsyncDB for Postgres {
write!(output, " ").unwrap();
}
match row.get(i) {
Some(v) => write!(output, "{}", v).unwrap(),
Some(v) => if v.is_empty() {
write!(output, "(empty)").unwrap()
} else {
write!(output, "{}", v).unwrap()
}
None => write!(output, "NULL").unwrap(),
}
}
Expand Down

0 comments on commit d089efc

Please sign in to comment.