I'm trying out the extract_table_names.py script from the example directory (
https://github.com/andialbrecht/sqlparse/blob/master/examples/extract_table_names.py)
When I set the sql statment to
SELECT * FROM table_name;
I don't get anything back for the tables.
But if I change it to 'SELECT * FROM table_name1', then I correctly get 'table_name1' as the output. In my limited testing I've found that it fails to detect 'table', 'table_name', 'column', 'column_name' as identifiers.
I haven't been able to find the reason for it in the code. Do you have any suggestions or pointers on how to debug this?
Thanks!
Amjith