You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @KaiWW, I think the problem is that the initial call to compareTables is being done without the flags available to specify the primary key. Try calling it as compareTables(table1, table2, flags). For example in harness/BasicTest.hx there is a test for primary keys that goes like this:
The "age" has been assigned as the primary key, but it's using "key" as the primary key.
before_data = [["key", "id", "name", "age"],
["1001", "1", "Cleo", "4"],
["1010", "2", "Pancakes", "2"]]
after_data = [["key", "id", "name", "age"],
["1001", "1", "Cleo", "5"],
["1009", "3", "Bailey", "1"],
["1012", "234", "John", "10"],
["1010", "32", "Dave", "21"]]
This gives me:
[['@@', 'key', 'id', 'name', 'age'],
['->', '1001', '1', 'Cleo', '4->5'],
['+++', '1009', '3', 'Bailey', '1'],
['+++', '1012', '234', 'John', '10'],
['->', '1010', '2->32', 'Pancakes->Dave', '2->21']]
The text was updated successfully, but these errors were encountered: