• unknown's avatar
    Partial rollback of fix for bug #30059: End-space truncation is inconsistent · 5a1b7ddb
    unknown authored
    or incorrect.
    
    For better conformance with standard, truncation procedure of CHAR columns
    has been changed to ignore truncation of trailing whitespace characters
    (note has been removed).
    
    Finally, for columns with non-binary charsets:
    
    1. CHAR(N) columns silently ignore trailing whitespace truncation;
    2. VARCHAR and TEXT columns issue Note about truncation.
    
    BLOBs and other columns with BINARY charset are unaffected.
    
    
    
    
    
    mysql-test/r/bdb.result:
      Rollback of bug #30059 fix.
    mysql-test/r/heap.result:
      Rollback of bug #30059 fix.
    mysql-test/r/innodb.result:
      Rollback of bug #30059 fix.
    mysql-test/r/myisam.result:
      Rollback of bug #30059 fix.
    mysql-test/r/strict.result:
      Rollback of bug #30059 fix.
    mysql-test/r/type_binary.result:
      Rollback of bug #30059 fix.
    mysql-test/r/warnings.result:
      Updated test case for bug #30059.
    sql/field.cc:
      Post-commit fix for bug #30059.
      
      The Field_longstr::report_if_important_data method
      has been changed to notify about trailing spaces only if
      the new count_spaces parameter is TRUE.
      
      The Field_string::store method has been changed to
      ignore trailing whitespace truncation (CHAR column
      type).
    sql/field.h:
      Post-commit fix for bug #30059.
      
      The Field_longstr::report_if_important_data method declaration
      has been changed to accept extra parameter: bool count_spaces.
    5a1b7ddb
field.h 64.3 KB