Skip to content

Commit

Permalink
resolve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
st1page committed Nov 8, 2024
1 parent b9c3302 commit 0ed4550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/src/handler/alter_table_column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub async fn get_new_table_definition_for_cdc_table(
"source schema should be None for CDC table"
);

if bind_table_constraints(constraints).unwrap().is_empty() {
if bind_table_constraints(constraints)?.is_empty() {
// For table created by `create table t (*)` the constraint is empty, we need to
// retrieve primary key names from original table catalog if available
let pk_names: Vec<_> = original_catalog
Expand Down

0 comments on commit 0ed4550

Please sign in to comment.