mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-12874: Schema reference files are out of date.
Made comparisons case-insensitve and extract DB metadata for tables matching lower- and upper-case prefixes (e.g. act_ and ACT_). git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@35399 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -295,7 +295,18 @@ public class DefaultComparisonUtils implements ComparisonUtils
|
||||
else
|
||||
{
|
||||
// neither are null
|
||||
if (left.equals(right))
|
||||
boolean objectsAreEqual;
|
||||
// Strings are compared case-insensitively, e.g. table names.
|
||||
if (left instanceof String && right instanceof String)
|
||||
{
|
||||
objectsAreEqual = ((String) left).equalsIgnoreCase((String) right);
|
||||
}
|
||||
else
|
||||
{
|
||||
objectsAreEqual = left.equals(right);
|
||||
}
|
||||
|
||||
if (objectsAreEqual)
|
||||
{
|
||||
where = Where.IN_BOTH_NO_DIFFERENCE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user