1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use {crate::*, gluesql_core::ast::DataType};
test_case!(type_match, async move {
run!("CREATE TABLE TypeMatch (uuid_value UUID, float_value FLOAT, int_value INT, bool_value BOOLEAN)");
run!("INSERT INTO TypeMatch values(GENERATE_UUID(), 1.0, 1, true)");
type_match!(
&[
DataType::Uuid,
DataType::Float,
DataType::Int,
DataType::Boolean
],
"SELECT * FROM TypeMatch"
);
});
