Fix retrieve_indexes_from_table when indexes is empty and base table does not exist - #849
Conversation
rajyan
commented
Mar 27, 2023
Is there any chance that this change being merged? |
jjowdy
commented
Mar 27, 2023
I don't think I have write permissions so I can't seem do that myself. @ctran would you have a chance to do this? |
ctran
commented
Mar 29, 2023
Something is strange about this PR. I don't see the usual checks being triggered on this one. |
ctran
commented
Mar 29, 2023
Can you rebate and resolve the conflict? |
…does not exist. Some tables may have a table_name_prefix but no indexes. Previous versions of the code would strip the prefix and look for indexes on the resulting table which likely would not exist. This causes DB errors, at least in MySQL. So now check if the new table exists first before trying to show its indexes.
jjowdy
commented
Mar 29, 2023
Sure. (That was a bit of a context switch: I no longer have access to the system I made the fix on and hadn't pushed to github in a while.) I wrapped the new spec context with |
ctran
commented
Mar 29, 2023
Thanks! |
rajyan
commented
Mar 29, 2023
Thank you both so much for taking care of this issue! |
…does not exist. (ctran#849) Some tables may have a table_name_prefix but no indexes. Previous versions of the code would strip the prefix and look for indexes on the resulting table which likely would not exist. This causes DB errors, at least in MySQL. So now check if the new table exists first before trying to show its indexes.
…does not exist. (ctran#849) Some tables may have a table_name_prefix but no indexes. Previous versions of the code would strip the prefix and look for indexes on the resulting table which likely would not exist. This causes DB errors, at least in MySQL. So now check if the new table exists first before trying to show its indexes.
Some tables may have a table_name_prefix but no indexes. Previous versions of
the code would strip the prefix and look for indexes on the resulting table name,
which likely would not exist. This causes DB errors, at least in MySQL. So now
check if the table with the derived name exists first before trying to show its indexes.
Example error otherwise: