fix incorrect matching in column name

This commit is contained in:
pedrocarlo
2025-05-10 18:15:42 -03:00
parent 5dee1adab8
commit e75e20c9e9

View File

@@ -325,11 +325,8 @@ fn create_table(
.map(|column| {
let col_name = match column.expr {
Expr::Id(id) => normalize_ident(&id.0),
Expr::Literal(Literal::String(value)) => {
value.trim_matches('\'').to_owned()
}
_ => {
todo!("Unsupported primary key expression");
todo!("Unsupported unique expression");
}
};
(col_name, column.order.unwrap_or(SortOrder::Asc))