• bar@mysql.com's avatar
    Bug#15126 character_set_database is not replicated (LOAD DATA INFILE need it) · dd0c43d5
    bar@mysql.com authored
    This patch fixes problem that LOAD DATA could use different
    character sets when loading files on master and on slave sides:
    - Adding replication of thd->variables.collation_database
    - Adding optional character set clause into LOAD DATA
    
    Note, the second way, with explicit CHARACTER SET clause
    should be the recommended way to load data using an alternative
    character set.
    The old way, using "SET @@character_set_database=xxx" should be
    gradually depricated.
    dd0c43d5
rpl_loaddata2.test 1013 Bytes