Skip to content

Commit

Permalink
fix: avoid possible duplicate name
Browse files Browse the repository at this point in the history
  • Loading branch information
CookiePieWw committed Apr 23, 2024
1 parent abfa6e5 commit 598f109
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests-fuzz/src/generator/create_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ impl<R: Rng + 'static> Generator<CreateTableExpr, R> for CreateLogicalTableExprG
.unwrap();

let mut table = table_generator.generate(rng)?;
let physical_table_name = physical_table_name.into();
while table.table_name == physical_table_name {
table.table_name = table_generator.name_generator.gen(rng);
}
let logical_ts = table.columns.iter().position(|column| {
column
.options
Expand Down

0 comments on commit 598f109

Please sign in to comment.