Function sql_value_to_value

Source
pub fn sql_value_to_value(
    column_name: &str,
    data_type: &ConcreteDataType,
    sql_val: &Value,
    timezone: Option<&Timezone>,
    unary_op: Option<UnaryOperator>,
    auto_string_to_numeric: bool,
) -> Result<Value>
Expand description

Converts SQL value to value according to the data type. If auto_string_to_numeric is true, tries to cast the string value to numeric values, and returns error if the cast fails.