~ubuntu-branches/ubuntu/hardy/mysql-dfsg-5.0/hardy-updates

« back to all changes in this revision

Viewing changes to libmysqld/ha_federated.cc

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-04-02 16:10:53 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070402161053-zkil9hjq9k5p1uzv
Tags: 5.0.37-0ubuntu1
* New upstream bugfix release.
  - Fixes replication failure with auto-increment and on duplicate key
    update, a regression introduced into 5.0.24. (LP: #95821)
* debian/control: Set Ubuntu maintainer.
* debian/rules: Change comments from 'Debian etch' to 'Ubuntu 7.04'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
  This program is free software; you can redistribute it and/or modify
4
4
  it under the terms of the GNU General Public License as published by
5
 
  the Free Software Foundation; either version 2 of the License, or
6
 
  (at your option) any later version.
 
5
  the Free Software Foundation; version 2 of the License.
7
6
 
8
7
  This program is distributed in the hope that it will be useful,
9
8
  but WITHOUT ANY WARRANTY; without even the implied warranty of
1434
1433
 
1435
1434
  /* Connect to foreign database mysql_real_connect() */
1436
1435
  mysql= mysql_init(0);
 
1436
 
 
1437
  /*
 
1438
    BUG# 17044 Federated Storage Engine is not UTF8 clean
 
1439
    Add set names to whatever charset the table is at open
 
1440
    of table
 
1441
  */
 
1442
  /* this sets the csname like 'set names utf8' */
 
1443
  mysql_options(mysql,MYSQL_SET_CHARSET_NAME,
 
1444
                this->table->s->table_charset->csname);
 
1445
 
1437
1446
  if (!mysql || !mysql_real_connect(mysql,
1438
1447
                                   share->hostname,
1439
1448
                                   share->username,
1450
1459
    API silently reconnect. For future versions, we will need more logic to
1451
1460
    deal with transactions
1452
1461
  */
 
1462
 
1453
1463
  mysql->reconnect= 1;
1454
1464
 
1455
1465
  ref_length= (table->s->primary_key != MAX_KEY ?