1. 15 Feb, 2008 1 commit
    • gkodinov/kgeorge@magare.gmz's avatar
      Bug #31887: DML Select statement not returning same results · 490ec62b
      gkodinov/kgeorge@magare.gmz authored
      when executed in version 5
      
      Zero fill is a field attribute only. So we can't always 
      propagate  constants for zerofill fields : the values and 
      expression results don't have that flag.
      
      Fixed by converting the const value to a string and 
      using that in const propagation when the context allows it. 
      Disable const propagation for fields with ZEROFILL flag in
      all the other cases.
      490ec62b
  2. 27 Nov, 2007 2 commits
  3. 26 Nov, 2007 6 commits
  4. 24 Nov, 2007 5 commits
  5. 23 Nov, 2007 1 commit
  6. 22 Nov, 2007 5 commits
  7. 21 Nov, 2007 3 commits
  8. 20 Nov, 2007 10 commits
  9. 19 Nov, 2007 7 commits
    • evgen@moonbone.local's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · ddc04e76
      evgen@moonbone.local authored
      into  moonbone.local:/work/31048-bug-5.0-opt-mysql
      ddc04e76
    • evgen@moonbone.local's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 6f6fe52a
      evgen@moonbone.local authored
      into  moonbone.local:/work/31048-bug-5.0-opt-mysql
      6f6fe52a
    • evgen@moonbone.local's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 0288cc9d
      evgen@moonbone.local authored
      into  moonbone.local:/work/30384-bug-5.0-opt-mysql
      0288cc9d
    • evgen@moonbone.local's avatar
      Bug#30384: Having SQL_BUFFER_RESULT option in the CREATE .. KEY(..) .. SELECT · da7470af
      evgen@moonbone.local authored
      led to creating corrupted index.
      
      Corrected fix. The new method called prepare2 is added to the select_create
      class. As all preparations are done by the select_create::prepare function
      it doesn't do anything. Slightly changed algorithm of calling the 
      start_bulk_insert function. Now it's called from the select_insert::prepare2
      function when the SQL_BUFFER_RESULT flags is set.
      The is_bulk_insert_mode flag is removed as it is not needed anymore.
      da7470af
    • evgen@moonbone.local's avatar
      Bug#31048: Many nested subqueries may cause server crash. · 67cae0d4
      evgen@moonbone.local authored
      This bug is actually two. The first one manifests itself on an EXPLAIN
      SELECT query with nested subqueries that employs the filesort algorithm.
      The whole SELECT under explain is marked as UNCACHEABLE_EXPLAIN to preserve
      some temporary structures for explain. As a side-effect of this values of
      nested subqueries weren't cached and subqueries were re-evaluated many
      times. Each time buffer for filesort was allocated but wasn't freed because
      freeing occurs at the end of topmost SELECT. Thus all available memory was
      eaten up step by step and OOM event occur.
      The second bug manifests itself on SELECT queries with conditions where
      a subquery result is compared with a key field and the subquery itself also
      has such condition. When a long chain of such nested subqueries is present
      the stack overrun occur. This happens because at some point the range optimizer
      temporary puts the PARAM structure on the stack. Its size if about 8K and
      the stack is exhausted very fast.
      
      Now the subselect_single_select_engine::exec function allows subquery result
      caching when the UNCACHEABLE_EXPLAIN flag is set.
      Now the SQL_SELECT::test_quick_select function calls the check_stack_overrun
      function for stack checking purposes to prevent server crash.
      67cae0d4
    • gshchepa/uchum@gleb.loc's avatar
      Fixed bug #32282: TEXT silently truncates when value is exactly 65536 · fedeec6c
      gshchepa/uchum@gleb.loc authored
      bytes length.
      
      The server has been modified to report warnings on truncation to
      65536 bytes as usual.
      fedeec6c
    • kaa@polly.(none)'s avatar
      Fix for bug #32221: bug25714, mytest, mysql_client_test complaints and · 82c4059f
      kaa@polly.(none) authored
      crashes.
      
      MySQL distributions contain a number of programs that are used only by
      the MySQL test suite internally, i.e. they are not indended to be
      invoked directly by a user. As a result, such programs are not
      documented, do not have any built-in help or proper error reporting,
      which may confuse users.
      
      This patch fixes the problem with the following changes:
      - mytest, libmysqltest and all references to them were removed from the
      distribution since they are not used anymore
      - bug25714 now displays an error message when run with incorrect
      arguments or with the --help option
      - mysql_client_test now does not call abort() in case of errors,
      instead it does a clean exit() with a proper error status.
      82c4059f