Skip to content

Commit

Permalink
Corrected a bug that can prevent some of the SQL commands from executing
Browse files Browse the repository at this point in the history
when modifying a table type definition.
  • Loading branch information
Kevin McCluney committed Jan 9, 2024
1 parent f30eda7 commit 4b47b9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Binary file modified CCDD.jar
Binary file not shown.
20 changes: 10 additions & 10 deletions src/CCDD/CcddDbTableCommandHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -8709,7 +8709,7 @@ protected void modifyTableType(String typeName,
if (command.length() >= ModifiableSizeInfo.MAX_SQL_COMMAND_LENGTH.getSize())
{
commands.add(command);
command.setLength(0);
command = new StringBuilder();
}
}

Expand Down Expand Up @@ -8767,7 +8767,7 @@ protected void modifyTableType(String typeName,
if (command.length() >= ModifiableSizeInfo.MAX_SQL_COMMAND_LENGTH.getSize())
{
commands.add(command);
command.setLength(0);
command = new StringBuilder();
}
}

Expand All @@ -8788,7 +8788,7 @@ protected void modifyTableType(String typeName,
if (command.length() >= ModifiableSizeInfo.MAX_SQL_COMMAND_LENGTH.getSize())
{
commands.add(command);
command.setLength(0);
command = new StringBuilder();
}
}

Expand All @@ -8813,7 +8813,7 @@ protected void modifyTableType(String typeName,
if (command.length() >= ModifiableSizeInfo.MAX_SQL_COMMAND_LENGTH.getSize())
{
commands.add(command);
command.setLength(0);
command = new StringBuilder();
}
}
}
Expand Down Expand Up @@ -8933,7 +8933,7 @@ protected void modifyTableType(String typeName,
if (command.length() >= ModifiableSizeInfo.MAX_SQL_COMMAND_LENGTH.getSize())
{
commands.add(command);
command.setLength(0);
command = new StringBuilder();
}
}

Expand Down Expand Up @@ -8977,7 +8977,7 @@ protected void modifyTableType(String typeName,
if (command.length() >= ModifiableSizeInfo.MAX_SQL_COMMAND_LENGTH.getSize())
{
commands.add(command);
command.setLength(0);
command = new StringBuilder();
}
}

Expand Down Expand Up @@ -9047,7 +9047,7 @@ else if (rateHandler.getRateInformationByRateName(mod[1]) == null)
if (command.length() >= ModifiableSizeInfo.MAX_SQL_COMMAND_LENGTH.getSize())
{
commands.add(command);
command.setLength(0);
command = new StringBuilder();
}
}
// The new rate name is already in use
Expand Down Expand Up @@ -9079,7 +9079,7 @@ else if (rateHandler.getRateInformationByRateName(mod[1]) == null)
if (command.length() >= ModifiableSizeInfo.MAX_SQL_COMMAND_LENGTH.getSize())
{
commands.add(command);
command.setLength(0);
command = new StringBuilder();
}

// Check if the table type represents a structure and a rate column is
Expand All @@ -9105,7 +9105,7 @@ else if (rateHandler.getRateInformationByRateName(mod[1]) == null)
if (command.length() >= ModifiableSizeInfo.MAX_SQL_COMMAND_LENGTH.getSize())
{
commands.add(command);
command.setLength(0);
command = new StringBuilder();
}
}
}
Expand Down Expand Up @@ -9333,7 +9333,7 @@ else if (newFields[newIndex][FieldEditorColumnInfo.APPLICABILITY.ordinal()].toSt
if (command.length() >= ModifiableSizeInfo.MAX_SQL_COMMAND_LENGTH.getSize())
{
commands.add(command);
command.setLength(0);
command = new StringBuilder();
}
}
}
Expand Down

0 comments on commit 4b47b9e

Please sign in to comment.