• Mayank Prasad's avatar
    Bug #11751148 : show events shows events in other schema · 0075c19c
    Mayank Prasad authored
    Issue:
    ------
    Due to prefix match, database like 'k' was matching with 'ka' and events of 'ka' we getting displayed for 'show event' of 'k'.
    
    Resolution:
    -----------
    Scan for listing of events in a schema is made to be done on exact match of database (schema) name instead of just prefix.
    
    mysql-test/r/events_bugs.result:
      modified expected file with the expected results.
    mysql-test/t/events_bugs.test:
      added a test case to reproduce the scenario.
    sql/event_db_repository.cc:
      Scan for schema name is made to be done on exact db name match.
    0075c19c
event_db_repository.cc 33.3 KB