• Mayank Prasad's avatar
    Bug #11751148 : show events shows events in other schema · c8b724b2
    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.
    c8b724b2
events_bugs.result 34.8 KB