Pre: add ConjoiningClauses::known_type_set.

This commit is contained in:
Richard Newman 2017-06-05 20:00:06 -07:00 committed by Richard Newman
parent 899e5d0971
commit 9ac2b8c680

View file

@ -356,6 +356,10 @@ impl ConjoiningClauses {
} }
} }
pub fn known_type_set(&self, var: &Variable) -> ValueTypeSet {
self.known_types.get(var).cloned().unwrap_or(ValueTypeSet::any())
}
pub fn bind_column_to_var<C: Into<Column>>(&mut self, schema: &Schema, table: TableAlias, column: C, var: Variable) { pub fn bind_column_to_var<C: Into<Column>>(&mut self, schema: &Schema, table: TableAlias, column: C, var: Variable) {
let column = column.into(); let column = column.into();
// Do we have an external binding for this? // Do we have an external binding for this?