Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikeW committed Aug 27, 2024
1 parent ae91540 commit 93472b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontend/src/handler/create_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,8 @@ async fn derive_schema_for_cdc_table(
))
} else {
let columns = bind_sql_columns(column_defs)?;
// retrieve primary key names from original table catalog if we can
// 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 = if let Some(original_catalog) = original_catalog {
original_catalog
.pk
Expand Down

0 comments on commit 93472b3

Please sign in to comment.