Ensure DEFAULT clause is displayed on DEFINE FIELD statements (#2662)

This commit is contained in:
Tobie Morgan Hitchcock 2023-09-10 10:48:31 +01:00 committed by GitHub
parent ebabe9554b
commit b83b9d3e3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,6 +84,9 @@ impl Display for DefineFieldStatement {
if let Some(ref v) = self.kind { if let Some(ref v) = self.kind {
write!(f, " TYPE {v}")? write!(f, " TYPE {v}")?
} }
if let Some(ref v) = self.default {
write!(f, " DEFAULT {v}")?
}
if let Some(ref v) = self.value { if let Some(ref v) = self.value {
write!(f, " VALUE {v}")? write!(f, " VALUE {v}")?
} }