When an attribute is known-fulltext, don't hit AllDatoms. (#576) r=nalexander

This commit is contained in:
Richard Newman 2018-03-05 10:09:53 -08:00 committed by GitHub
parent 36d455150d
commit d46535a7c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -742,10 +742,10 @@ impl ConjoiningClauses {
// TODO: an existing non-string binding can cause this pattern to fail.
&EvolvedValuePlace::Variable(_) =>
Ok(DatomsTable::AllDatoms),
Ok(DatomsTable::FulltextDatoms),
&EvolvedValuePlace::Value(TypedValue::String(_)) =>
Ok(DatomsTable::AllDatoms),
Ok(DatomsTable::FulltextDatoms),
_ => {
// We can't succeed if there's a non-string constant value for a fulltext