Skip to content

Commit

Permalink
Remove "." from the beginning of table name in requirement document. …
Browse files Browse the repository at this point in the history
…This happened only with MySQL database when schema name is NULL or empty string.
  • Loading branch information
armenak committed Aug 23, 2015
1 parent 6b87559 commit 081928c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static Requirement create(List<MatchMetaData> matches) {
Map<String, List<Column>> columns = new HashMap<>();
for (MatchMetaData match : matches) {
String tableName = match.getTableName();
if (match.getSchemaName() != null) {
if (match.getSchemaName() != null && !match.getSchemaName().equals("")) {
tableName = match.getSchemaName() + "." + tableName;
}
Table table = tables.get(tableName);
Expand Down

0 comments on commit 081928c

Please sign in to comment.