Part 2: add an EmptyBecause case for fulltext/non-string type mismatch.
This commit is contained in:
parent
997df0b776
commit
01ca0ae5c1
2 changed files with 5 additions and 1 deletions
|
@ -173,6 +173,9 @@ impl Debug for EmptyBecause {
|
||||||
&NonNumericArgument => {
|
&NonNumericArgument => {
|
||||||
write!(f, "Non-numeric argument in numeric place")
|
write!(f, "Non-numeric argument in numeric place")
|
||||||
},
|
},
|
||||||
|
&NonStringFulltextValue => {
|
||||||
|
write!(f, "Non-string argument for fulltext attribute")
|
||||||
|
},
|
||||||
&UnresolvedIdent(ref kw) => {
|
&UnresolvedIdent(ref kw) => {
|
||||||
write!(f, "Couldn't resolve keyword {}", kw)
|
write!(f, "Couldn't resolve keyword {}", kw)
|
||||||
},
|
},
|
||||||
|
|
|
@ -297,11 +297,12 @@ impl Debug for ColumnConstraint {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(PartialEq)]
|
#[derive(PartialEq, Clone)]
|
||||||
pub enum EmptyBecause {
|
pub enum EmptyBecause {
|
||||||
// Var, existing, desired.
|
// Var, existing, desired.
|
||||||
TypeMismatch(Variable, HashSet<ValueType>, ValueType),
|
TypeMismatch(Variable, HashSet<ValueType>, ValueType),
|
||||||
NonNumericArgument,
|
NonNumericArgument,
|
||||||
|
NonStringFulltextValue,
|
||||||
UnresolvedIdent(NamespacedKeyword),
|
UnresolvedIdent(NamespacedKeyword),
|
||||||
InvalidAttributeIdent(NamespacedKeyword),
|
InvalidAttributeIdent(NamespacedKeyword),
|
||||||
InvalidAttributeEntid(Entid),
|
InvalidAttributeEntid(Entid),
|
||||||
|
|
Loading…
Reference in a new issue