Skip to content

Commit e6e11f5

Browse files
committed
chore: codefmt
1 parent 77d71e0 commit e6e11f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/binder/drop_index.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ impl<T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'_, '_, T, A>
1414
name: &ObjectName,
1515
if_exists: &bool,
1616
) -> Result<LogicalPlan, DatabaseError> {
17-
let table_name = name.0.first().ok_or(DatabaseError::InvalidIndex)?;
17+
let table_name = name
18+
.0
19+
.first()
20+
.ok_or(DatabaseError::InvalidTable(name.to_string()))?;
1821
let index_name = name.0.get(1).ok_or(DatabaseError::InvalidIndex)?;
1922

2023
let table_name = Arc::new(lower_ident(table_name));

0 commit comments

Comments
 (0)