Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenn committed Oct 27, 2024
1 parent 07bbeb6 commit 06e2071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ impl ColumnDefinition {
} = &constraint.constraint
{
// The child table may reference the primary key of the parent without specifying the primary key column
if columns.as_ref().map_or(0, std::vec::Vec::len) > 1 {
if columns.as_ref().map_or(0, Vec::len) > 1 {
return Err(custom_err!(
"foreign key on {} should reference only one column of table {}",
col_name,
Expand Down

0 comments on commit 06e2071

Please sign in to comment.