rat-sql icon indicating copy to clipboard operation
rat-sql copied to clipboard

Question about match foreign key

Open Yuan0320 opened this issue 4 years ago • 2 comments

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!

Yuan0320 avatar Sep 17 '20 11:09 Yuan0320

are they supposed to be the same thing? i.e., " desc['column_to_table'][str(col)]" is actually the "table"

berlino avatar Sep 21 '20 20:09 berlino

ok! Thanks!

Yuan0320 avatar Nov 01 '20 03:11 Yuan0320