1. 01 Dec, 2007 10 commits
    • unknown's avatar
      Merge polly.(none):/home/kaa/src/maint/mysql-5.0-maint · f95b6832
      unknown authored
      into  polly.(none):/home/kaa/src/maint/mysql-5.1-maint
      
      
      sql/field.cc:
        Auto merged
      f95b6832
    • unknown's avatar
      Merge polly.(none):/home/kaa/src/maint/bug26788/my51-bug26788 · 97d0cd2c
      unknown authored
      into  polly.(none):/home/kaa/src/maint/mysql-5.1-maint
      
      
      sql/field.cc:
        Auto merged
      97d0cd2c
    • unknown's avatar
      Merge polly.(none):/home/kaa/src/maint/bug26788/my50-bug26788 · dfde8826
      unknown authored
      into  polly.(none):/home/kaa/src/maint/mysql-5.0-maint
      
      
      sql/field.cc:
        Auto merged
      dfde8826
    • unknown's avatar
      Merge polly.(none):/home/kaa/src/maint/bug26788/my50-bug26788 · 9562db68
      unknown authored
      into  polly.(none):/home/kaa/src/maint/bug26788/my51-bug26788
      
      
      sql/field.cc:
        Auto merged
      9562db68
    • unknown's avatar
      Fixed the build failure on Windows. It does not have trunc() defined in... · d8d07eff
      unknown authored
      Fixed the build failure on Windows. It does not have trunc() defined in math.h, so we should not use it code.
      
      
      
      d8d07eff
    • unknown's avatar
      Merge polly.(none):/home/kaa/src/maint/mysql-5.0-maint · e6ec0c3b
      unknown authored
      into  polly.(none):/home/kaa/src/maint/mysql-5.1-maint
      
      
      mysql-test/r/insert.result:
        Auto merged
      mysql-test/t/insert.test:
        Auto merged
      mysql-test/t/type_float.test:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      sql/field.cc:
        Auto merged
      e6ec0c3b
    • unknown's avatar
      Merge polly.(none):/home/kaa/src/maint/bug26788/my51-bug26788 · 078639a2
      unknown authored
      into  polly.(none):/home/kaa/src/maint/mysql-5.1-maint
      
      
      mysql-test/t/type_float.test:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      sql/field.cc:
        Auto merged
      mysql-test/r/insert.result:
        SCCS merged
      mysql-test/t/insert.test:
        SCCS merged
      078639a2
    • unknown's avatar
      Merge polly.(none):/home/kaa/src/maint/bug26788/my50-bug26788 · 4fc6d3b2
      unknown authored
      into  polly.(none):/home/kaa/src/maint/mysql-5.0-maint
      
      
      mysql-test/t/type_float.test:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      sql/field.cc:
        Auto merged
      mysql-test/r/insert.result:
        SCCS merged
      mysql-test/t/insert.test:
        SCCS merged
      4fc6d3b2
    • unknown's avatar
      Merge polly.(none):/home/kaa/src/maint/bug26788/my50-bug26788 · b97ee173
      unknown authored
      into  polly.(none):/home/kaa/src/maint/bug26788/my51-bug26788
      
      
      mysql-test/r/insert.result:
        Auto merged
      mysql-test/t/cast.test:
        Auto merged
      mysql-test/t/insert.test:
        Auto merged
      mysql-test/t/type_float.test:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      sql/field.cc:
        SCCS merged
      b97ee173
    • unknown's avatar
      Fix for bug #26788 "mysqld (debug) aborts when inserting specific · 1615f838
      unknown authored
      numbers into char fields" and bug #12860 "Difference in zero padding of
      exponent between Unix and Windows"
      
      Rewrote the code that determines what 'precision' argument should be
      passed to sprintf() to fit the string representation of the input number
      into the field.
      We get finer control over conversion by pre-calculating the exponent, so
      we are able to determine which conversion format, 'e' or 'f', will be
      used by sprintf().
      We also remove the leading zero from the exponent on Windows to make it
      compatible with the sprintf() output on other platforms.
      
      
      mysql-test/r/insert.result:
        Added test cases for bug #26788 and bug #31152.
      mysql-test/t/cast.test:
        Removed --replace_result, since the result is now correct on Windows.
      mysql-test/t/insert.test:
        Added test cases for bug #26788 and bug #31152.
      mysql-test/t/type_float.test:
        Removed --replace_result, since the result is now correct on Windows.
      mysql-test/t/variables.test:
        Removed --replace_result, since the result is now correct on Windows.
      sql/field.cc:
        Rewrote the code that determines what 'precision' argument should be
        passed to sprintf() to fit the string representation of the input number
        into the field.
        We get finer control over conversion by pre-calculating the exponent, so
        we are able to determine which conversion format, 'e' or 'f', will be
        used by sprintf().
      1615f838
  2. 27 Nov, 2007 1 commit
  3. 20 Nov, 2007 1 commit
  4. 17 Nov, 2007 5 commits
  5. 14 Nov, 2007 1 commit
  6. 10 Nov, 2007 7 commits
  7. 09 Nov, 2007 1 commit
  8. 07 Nov, 2007 2 commits
    • unknown's avatar
      Fix for bug #26447: "ALTER TABLE .. ORDER" does not work with InnoDB · 9d2b259e
      unknown authored
      and auto_increment keys
      
      Problems: 
        1. ALTER TABLE ... ORDER BY... doesn't make sence if there's a 
           user-defined clustered index in the table.
        2. using a secondary index is slower than using a clustered one 
           for a table scan.
      
      Fixes:
        1. raise a warning.
        2. use the clustered index.
      
      
      mysql-test/include/mix1.inc:
        Fix for bug #26447: "ALTER TABLE .. ORDER" does not work with InnoDB 
        and auto_increment keys
          - test case.
      mysql-test/r/innodb.result:
        Fix for bug #26447: "ALTER TABLE .. ORDER" does not work with InnoDB 
        and auto_increment keys
          - results adjusted.
      mysql-test/r/innodb_mysql.result:
        Fix for bug #26447: "ALTER TABLE .. ORDER" does not work with InnoDB 
        and auto_increment keys
          - results adjusted.
      mysql-test/r/join_outer_innodb.result:
        Fix for bug #26447: "ALTER TABLE .. ORDER" does not work with InnoDB 
        and auto_increment keys
          - results adjusted.
      sql/sql_select.cc:
        Fix for bug #26447: "ALTER TABLE .. ORDER" does not work with InnoDB 
        and auto_increment keys
          - use the clustered index for a table scan (if any) as it's faster than
            using a secondary index.
      sql/sql_table.cc:
        Fix for bug #26447: "ALTER TABLE .. ORDER" does not work with InnoDB 
        and auto_increment keys
          - ALTER TABLE ... ORDER BY doesn't make sence if there's a 
            user-defined clustered index in the table. Ignore it in such cases
            and raise a warning.
      9d2b259e
    • unknown's avatar
      Fix for bug #32137: prepared statement crash with str_to_date in update clause · c7191f90
      unknown authored
      Problem: calling non-constant argument's val_xxx() methods 
      in the ::fix_length_and_dec() is inadmissible.
      
      Fix: call the method only for constant arguments.
      
      
      mysql-test/r/ps.result:
        Fix for bug #32137: prepared statement crash with str_to_date in update clause
          - test result.
      mysql-test/t/ps.test:
        Fix for bug #32137: prepared statement crash with str_to_date in update clause
          - test case.
      sql/item_timefunc.cc:
        Fix for bug #32137: prepared statement crash with str_to_date in update clause
          - call argument's val_str() only for constant items in the 
            Item_func_str_to_date::fix_length_and_dec().
      c7191f90
  9. 06 Nov, 2007 3 commits
  10. 01 Nov, 2007 5 commits
  11. 31 Oct, 2007 4 commits
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-new-maint · 3acf3868
      unknown authored
      into  loke.(none):/home/knielsen/devel/mysql-5.1-new-maint
      
      
      3acf3868
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.0-maint · a55b8d0d
      unknown authored
      into  loke.(none):/home/knielsen/devel/mysql-5.0-maint
      
      
      a55b8d0d
    • unknown's avatar
      Merge loke.(none):/home/knielsen/devel/mysql-5.0-maint · 993c2a88
      unknown authored
      into  loke.(none):/home/knielsen/devel/mysql-5.1-new-maint
      
      
      strings/ctype-simple.c:
        Auto merged
      strings/ctype-ucs2.c:
        SCCS merged
      993c2a88
    • unknown's avatar
      BUG#31799: Scrambled number output due to integer overflow · f8b5a340
      unknown authored
      An integer overflow in number->string conversion caused completely
      wrong output of the number LONGLONG_MIN with gcc 4.2.1.
      
      Fixed by eliminating the overflow, using only operations that are
      well-defined in ANSI C.
      
      
      strings/ctype-simple.c:
        An integer overflow in number->string conversion caused completely
        wrong output of the number LONGLONG_MIN with gcc 4.2.1.
        
        Fixed by eliminating the overflow, using only operations that are
        well-defined in ANSI C.
      strings/ctype-ucs2.c:
        An integer overflow in number->string conversion caused completely
        wrong output of the number LONGLONG_MIN with gcc 4.2.1.
        
        Fixed by eliminating the overflow, using only operations that are
        well-defined in ANSI C.
      strings/int2str.c:
        An integer overflow in number->string conversion caused completely
        wrong output of the number LONGLONG_MIN with gcc 4.2.1.
        
        Fixed by eliminating the overflow, using only operations that are
        well-defined in ANSI C.
      strings/longlong2str.c:
        An integer overflow in number->string conversion caused completely
        wrong output of the number LONGLONG_MIN with gcc 4.2.1.
        
        Fixed by eliminating the overflow, using only operations that are
        well-defined in ANSI C.
      f8b5a340