Skip to content

Commit

Permalink
[CBRD-25300] When unloaddb, the comment of reverse unique index is mi…
Browse files Browse the repository at this point in the history
…ssing. (#5127)

http://jira.cubrid.org/browse/CBRD-25300

this is backport of [CBRD-25300] When unloaddb, the comment of reverse unique index is mi… #5121 to release/10.2
Added comment to reverse unique
  • Loading branch information
airnet73 authored Apr 12, 2024
1 parent efda8f2 commit 3894e4e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/executables/unload_schema.c
Original file line number Diff line number Diff line change
Expand Up @@ -2602,7 +2602,15 @@ emit_reverse_unique_def (print_output & output_ctx, DB_OBJECT * class_)

// reverse unique does not care for direction of the column.
}
output_ctx (");\n");
output_ctx (")");

if (constraint->comment != NULL && constraint->comment[0] != '\0')
{
output_ctx (" ");
help_print_describe_comment (output_ctx, constraint->comment);
}

output_ctx (";\n");
}
}
}
Expand Down

0 comments on commit 3894e4e

Please sign in to comment.