From 594d581f71f2003e41e014f24e6baa0a4cd61afe Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Tue, 21 Feb 2012 10:47:07 +0000 Subject: [PATCH] Schemacomp - More logging to help diagnose broken test. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@34104 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../java/org/alfresco/util/schemacomp/ExportDb.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source/java/org/alfresco/util/schemacomp/ExportDb.java b/source/java/org/alfresco/util/schemacomp/ExportDb.java index 0b4c84392b..5775dccb5a 100644 --- a/source/java/org/alfresco/util/schemacomp/ExportDb.java +++ b/source/java/org/alfresco/util/schemacomp/ExportDb.java @@ -205,8 +205,14 @@ public class ExportDb String schemaName = getSchemaName(dbmd); schema = new Schema(schemaName, namePrefix, schemaVersion); + String prefixFilter = namePrefixFilter(dbmd); - final ResultSet tables = dbmd.getTables(null, schemaName, namePrefixFilter(dbmd), new String[] + if (log.isDebugEnabled()) + { + log.debug("Retrieving tables: schemaName=[" + schemaName + "], prefixFilter=[" + prefixFilter + "]"); + } + + final ResultSet tables = dbmd.getTables(null, schemaName, prefixFilter, new String[] { "TABLE", "VIEW", "SEQUENCE" }); @@ -216,6 +222,11 @@ public class ExportDb { final String tableName = tables.getString("TABLE_NAME"); + if (log.isDebugEnabled()) + { + log.debug("Examining table tableName=[" + tableName + "]"); + } + // Oracle hack: ignore tables in the recycle bin if (tableName.startsWith("BIN$")) {