rat-sql
rat-sql copied to clipboard
Question about match foreign key
Hi!
Here are some more detailed questions about the code. When constructing the relationship, there is a match_foreign_key(cls, desc, col, table)
method(spider_enc_modules.py). At the end of the method (line 705 of spider_enc_modules.py):return desc['column_to_table'][str(col)] == foreign_table
I think it should be return table == foreign_table
?
Thanks!
are they supposed to be the same thing? i.e., " desc['column_to_table'][str(col)]" is actually the "table"
ok! Thanks!