• unknown's avatar
    a proper fix for the bug #2298 Trailing whitespace inconsistently handled in WHERE clause. · ef325a47
    unknown authored
    <monty> ramil, in MySQL/MyISAM we should only strip end space, not 'space-like' characters.
    <monty> This is according to SQL;  When doing a comparision end space and only end space are ignored.
    
    
    
    myisam/mi_key.c:
      a proper fix for the bug #2298 Trailing whitespace inconsistently handled in WHERE clause.
    myisam/mi_search.c:
      a proper fix for the bug #2298 Trailing whitespace inconsistently handled in WHERE clause.
    mysql-test/r/select.result:
      test case for the bug #2298 Trailing whitespace inconsistently handled in WHERE clause.
    mysql-test/t/select.test:
      test case for the bug #2298 Trailing whitespace inconsistently handled in WHERE clause.
    sql/sql_string.cc:
      a proper fix for the bug #2298 Trailing whitespace inconsistently handled in WHERE clause.
    ef325a47
mi_search.c 64.5 KB