~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109

« back to all changes in this revision

Viewing changes to sql/handler.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-02-14 23:59:22 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120214235922-cux5uek1e5l0hje9
Tags: 5.5.20-0ubuntu1
* New upstream release.
* d/mysql-server-5.5.mysql.upstart: Fix stop on to make sure mysql is
  fully stopped before shutdown commences. (LP: #688541) Also simplify
  start on as it is redundant.
* d/control: Depend on upstart version which has apparmor profile load
  script to prevent failure on upgrade from lucid to precise.
  (LP: #907465)
* d/apparmor-profile: need to allow /run since that is the true path
  of /var/run files. (LP: #917542)
* d/control: mysql-server-5.5 has files in it that used to be owned
  by libmysqlclient-dev, so it must break/replace it. (LP: #912487)
* d/rules, d/control: 5.5.20 Fixes segfault on tests with gcc 4.6,
  change compiler back to system default.
* d/rules: Turn off embedded libedit/readline.(Closes: #659566)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2738
2738
      char key[MAX_KEY_LENGTH];
2739
2739
      String str(key,sizeof(key),system_charset_info);
2740
2740
      /* Table is opened and defined at this point */
2741
 
      key_unpack(&str,table,(uint) key_nr);
 
2741
      key_unpack(&str,table,0 /* Use 0 instead of key_nr because key_nr
 
2742
                 is a key number in the child FK table, not in our 'table'. See
 
2743
                 Bug#12661768 UPDATE IGNORE CRASHES SERVER IF TABLE IS INNODB
 
2744
                 AND IT IS PARENT FOR OTHER ONE
 
2745
                 This bug gets a better fix in MySQL 5.6, but it is too risky
 
2746
                 to get that in 5.1 and 5.5 (extending the handler interface
 
2747
                 and adding new error message codes */);
2742
2748
      max_length= (MYSQL_ERRMSG_SIZE-
2743
2749
                   (uint) strlen(ER(ER_FOREIGN_DUPLICATE_KEY)));
2744
2750
      if (str.length() >= max_length)