suppress output of index_options when empty

This commit is contained in:
Yuki Morishita 2012-12-07 11:23:44 -06:00
parent 8d55474feb
commit 1ac90589ea
1 changed files with 1 additions and 1 deletions

View File

@ -1822,7 +1822,7 @@ public class CliClient
.append(TAB + TAB + "index_name : '" + CliUtils.escapeSQLString(colDef.index_name) + "'," + NEWLINE)
.append(TAB + TAB + "index_type : " + CliUtils.escapeSQLString(Integer.toString(colDef.index_type.getValue())));
if (colDef.index_options != null)
if (colDef.index_options != null && !colDef.index_options.isEmpty())
{
output.append(",").append(NEWLINE);
output.append(TAB + TAB + "index_options : {" + NEWLINE);