• Georgi Kodinov's avatar
    Bug #11758687: 50924: object names not resolved correctly · 19332ed7
    Georgi Kodinov authored
       on lctn2 systems
    
    There was a local variable in get_all_tables() to store the 
    "original" value of the database name as it can get lowercased
    depending on the lower_case_table_name value.
    get_all_tables() iterates over database names and for each 
    database iterates over the tables in it.
    The "original" db name was assigned in the table names loop.
    Thus the first table is ok, but the second and subsequent tables
    get the lowercased name from processing the first table.
    Fixed by moving the assignment of the original database name
    from the inner (table name) to the outer (database name) loop.
    Test suite added.
    19332ed7
sql_show.cc 242 KB