From 081928c9b34f3b34110dfaf08627fea36291dc94 Mon Sep 17 00:00:00 2001 From: Armenak Grigoryan Date: Sun, 23 Aug 2015 15:14:10 -0700 Subject: [PATCH] Remove "." from the beginning of table name in requirement document. This happened only with MySQL database when schema name is NULL or empty string. --- .../java/com/strider/dataanonymizer/utils/RequirementUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataAnonymizer/src/main/java/com/strider/dataanonymizer/utils/RequirementUtils.java b/DataAnonymizer/src/main/java/com/strider/dataanonymizer/utils/RequirementUtils.java index c28b6e85..e2c62fb4 100644 --- a/DataAnonymizer/src/main/java/com/strider/dataanonymizer/utils/RequirementUtils.java +++ b/DataAnonymizer/src/main/java/com/strider/dataanonymizer/utils/RequirementUtils.java @@ -115,7 +115,7 @@ public static Requirement create(List matches) { Map> 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);