Skip to content

Commit ff0753e

Browse files
committed
show nb of tables to be analyzed
1 parent 65e6aa1 commit ff0753e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Comparing Database Schema Metadata MASTER with Slave #1
5959
WARNING object:tab5.sometext2, differenceType:COLUMN_DIFFERENT_ORDINAL_POSITION, note:master:3 v.s. slave:1
6060
WARNING object:tab5.uid, differenceType:COLUMN_DIFFERENT_ORDINAL_POSITION, note:master:1 v.s. slave:3
6161
Comparing Database Schema Data MASTER with Slave #1
62-
In scope tables: tab1 tab2 tab3 tab5
62+
In-scope tables for comparison: 4. Table names: tab1 tab2 tab3 tab5
6363
ERROR object:tab1, differenceType:DATA_ROW_DIFFERENT_MD5, note:(uid)=(3)
6464
ERROR object:tab1, differenceType:DATA_ROW_MISSING_IN_SLAVE_TABLE, note:(uid)=(5)
6565
ERROR object:tab1, differenceType:DATA_ROW_DIFFERENT_MD5, note:(uid)=(7)

src/main/java/com/geckotechnology/mySqlDataCompare/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static void main(String[] args)
5656
System.out.println("Comparing Database Schema Data MASTER with Slave #" + i);
5757
ArrayList<Table> tablesReadyToBeDataAnalyzed = mySQLSchemaComparer.getMasterTablesReadyToBeDataAnalyzed();
5858
//printing table names to be analyzed
59-
System.out.print("In scope tables: ");
59+
System.out.print("In-scope tables for comparison: " + tablesReadyToBeDataAnalyzed.size() + ". Table names: ");
6060
for(Table table:tablesReadyToBeDataAnalyzed) {
6161
System.out.print(table.getTableName());
6262
System.out.print(" ");

src/test/java/com/geckotechnology/mySqlDataCompare/AppTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public void testCompareSchemaAndData() throws Exception
8484
assertEquals(schemaDifferences.size(), 27);
8585

8686
ArrayList<Table> tablesReadyToBeDataAnalyzed = mySQLSchemaComparer.getMasterTablesReadyToBeDataAnalyzed();
87+
assertEquals(tablesReadyToBeDataAnalyzed.size(), 4);
8788
MySQLTableDataComparer tableDataComparer = new MySQLTableDataComparer(masterSchemaReader, slaveSchemaReader);
8889
for(Table table:tablesReadyToBeDataAnalyzed)
8990
tableDataComparer.compareTable(table);

0 commit comments

Comments
 (0)