File tree Expand file tree Collapse file tree
libs/db-browser/src/main/java/com/oceanbase/tools/dbbrowser/editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,11 +76,11 @@ public String generateCreateDefinitionDDL(@NotNull DBTablePartition partition) {
7676 if (Objects .nonNull (partition .getSubpartitionTemplated ()) && partition .getSubpartitionTemplated ()) {
7777 generateCreateTemplateSubPartition (partition , sqlBuilder );
7878 }
79- if (Objects . nonNull ( partition .getPartitionOption ().getPartitionsNum ())) {
80- sqlBuilder . append ( " \n PARTITIONS " )
81- . append ( String . valueOf (partition .getPartitionOption ().getPartitionsNum ()));
82- if ( partition . getPartitionOption (). getType () == DBTablePartitionType . HASH
83- || partition .getPartitionOption ().getType () == DBTablePartitionType . KEY ) {
79+ if (partition .getPartitionOption ().getType () == DBTablePartitionType . HASH
80+ || partition . getPartitionOption (). getType () == DBTablePartitionType . KEY ) {
81+ if ( Objects . nonNull (partition .getPartitionOption ().getPartitionsNum ())) {
82+ sqlBuilder . append ( " \n PARTITIONS " )
83+ . append ( String . valueOf ( partition .getPartitionOption ().getPartitionsNum ()));
8484 return sqlBuilder .toString ();
8585 }
8686 }
You can’t perform that action at this time.
0 commit comments