Fix bug with DEFINE and PERMISSIONS statement formatting

This commit is contained in:
Tobie Morgan Hitchcock 2022-04-01 11:39:10 +01:00
parent c45d383b77
commit 2bf5075dc4

View file

@ -622,7 +622,7 @@ impl fmt::Display for DefineTableStatement {
if let Some(ref v) = self.view { if let Some(ref v) = self.view {
write!(f, " {}", v)? write!(f, " {}", v)?
} }
write!(f, "{}", self.permissions)?; write!(f, " {}", self.permissions)?;
Ok(()) Ok(())
} }
} }
@ -840,7 +840,7 @@ impl fmt::Display for DefineFieldStatement {
if let Some(ref v) = self.assert { if let Some(ref v) = self.assert {
write!(f, " ASSERT {}", v)? write!(f, " ASSERT {}", v)?
} }
write!(f, "{}", self.permissions)?; write!(f, " {}", self.permissions)?;
Ok(()) Ok(())
} }
} }