1. 13 Sep, 2006 3 commits
    • unknown's avatar
      Merge polly.local:/tmp/20924/bug20294/my50-bug20294 · 7224688a
      unknown authored
      into  polly.local:/tmp/20924/bug20294/my51-bug20294
      
      
      mysql-test/r/case.result:
        Auto merged
      mysql-test/r/func_if.result:
        Auto merged
      mysql-test/r/func_test.result:
        Auto merged
      mysql-test/t/case.test:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_cmpfunc.h:
        Auto merged
      sql/log_event.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      mysql-test/r/user_var.result:
        Manual merge
      mysql-test/t/user_var.test:
        Manual merge
      sql/item_func.cc:
        Manual merge
      sql/item_func.h:
        Manual merge
      7224688a
    • unknown's avatar
      Merge polly.local:/tmp/20924/bug20294/my41-bug20294 · eb142455
      unknown authored
      into  polly.local:/tmp/20924/bug20294/my50-bug20294
      
      
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_cmpfunc.h:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/log_event.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      mysql-test/r/case.result:
        Manual merge
      mysql-test/r/func_if.result:
        Manual merge
      mysql-test/r/func_test.result:
        Manual merge
      mysql-test/r/user_var.result:
        Manual merge
      mysql-test/t/case.test:
        Manual merge
      mysql-test/t/func_if.test:
        Manual merge
      mysql-test/t/func_test.test:
        Manual merge
      mysql-test/t/user_var.test:
        Manual merge
      sql/item_func.cc:
        Manual merge
      eb142455
    • unknown's avatar
      Cset exclude: kaa@polly.local|ChangeSet|20060912122540|09861 · 27fe6590
      unknown authored
      Cset exclude: kaa@polly.local|ChangeSet|20060908100829|09983
      
      
      sql/item_cmpfunc.cc:
        Exclude
      sql/item_cmpfunc.h:
        Exclude
      sql/item_func.cc:
        Exclude
      sql/item_func.h:
        Exclude
      sql/log_event.cc:
        Exclude
      sql/sql_class.h:
        Exclude
      mysql-test/r/case.result:
        Exclude
      mysql-test/r/func_if.result:
        Exclude
      mysql-test/r/func_test.result:
        Exclude
      mysql-test/r/user_var.result:
        Exclude
      mysql-test/t/case.test:
        Exclude
      mysql-test/t/func_if.test:
        Exclude
      mysql-test/t/func_test.test:
        Exclude
      mysql-test/t/user_var.test:
        Exclude
      27fe6590
  2. 12 Sep, 2006 4 commits
    • unknown's avatar
      Merge polly.local:/tmp/20924/bug20294/my50-bug20294 · 06aadcd5
      unknown authored
      into  polly.local:/tmp/20924/bug20294/my51-bug20294
      
      
      mysql-test/r/case.result:
        Auto merged
      mysql-test/r/func_if.result:
        Auto merged
      mysql-test/r/func_test.result:
        Auto merged
      mysql-test/t/case.test:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_cmpfunc.h:
        Auto merged
      sql/log_event.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      mysql-test/r/user_var.result:
        Manual merge
      mysql-test/t/user_var.test:
        Manual merge
      sql/item_func.cc:
        Manual merge
      sql/item_func.h:
        Manual merge
      06aadcd5
    • unknown's avatar
      Fixed compilation · 40d292ad
      unknown authored
      40d292ad
    • unknown's avatar
      Merge polly.local:/tmp/20924/bug20294/my41-bug20294 · 51b27a3a
      unknown authored
      into  polly.local:/tmp/20924/bug20294/my50-bug20294
      
      
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_cmpfunc.h:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/log_event.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      mysql-test/r/case.result:
        Manual merge
      mysql-test/r/func_if.result:
        Manual merge
      mysql-test/r/func_test.result:
        Manual merge
      mysql-test/r/user_var.result:
        Manual merge
      mysql-test/t/case.test:
        Manual merge
      mysql-test/t/func_if.test:
        Manual merge
      mysql-test/t/func_test.test:
        Manual merge
      mysql-test/t/user_var.test:
        Manual merge
      sql/item_func.cc:
        Manual merge
      51b27a3a
    • unknown's avatar
      Post-review fixes for bug #20924 · c839cd8e
      unknown authored
      
      mysql-test/r/case.result:
        Post-review fix for bug #20924
      mysql-test/r/func_if.result:
        Post-review fix for bug #20924
      mysql-test/r/func_test.result:
        Post-review fix for bug #20924
      mysql-test/r/user_var.result:
        Post-review fix for bug #20924
      mysql-test/t/case.test:
        Post-review fix for bug #20924
      mysql-test/t/func_if.test:
        Post-review fix for bug #20924
      mysql-test/t/func_test.test:
        Post-review fix for bug #20924
      mysql-test/t/user_var.test:
        Post-review fix for bug #20924
      sql/item_func.cc:
        Post-review fix for bug #20924
      sql/item_func.h:
        Post-review fix for bug #20924
      sql/log_event.cc:
        Post-review fix for bug #20924
      c839cd8e
  3. 08 Sep, 2006 1 commit
    • unknown's avatar
      Bug #20924: CAST(expr as UNSIGNED) returns SIGNED value when used in various functions · 8e14a50a
      unknown authored
      - Honor unsigned_flag in the corresponding functions
      - Use compare_int_signed_unsigned()/compare_int_unsigned_signed() instead of explicit comparison in GREATEST() and LEAST()
      
      
      mysql-test/r/case.result:
        Added test case for bug #20924
      mysql-test/r/func_if.result:
        Added test case for bug #20924
      mysql-test/r/func_test.result:
        Added test case for bug #20924
      mysql-test/r/user_var.result:
        Added test case for bug #20924
      mysql-test/t/case.test:
        Added test case for bug #20924
      mysql-test/t/func_if.test:
        Added test case for bug #20924
      mysql-test/t/func_test.test:
        Added test case for bug #20924
      mysql-test/t/user_var.test:
        Added test case for bug #20924
      sql/item_cmpfunc.cc:
        Bug #20924: CAST(expr as UNSIGNED) returns SIGNED value when used in various functions
        
        - Moved some code out of Arg_comparator to external functions to be reused in Item_func_min_max
        - Fixed IFNULL(), IF(), CASE() and COALESCE()
      sql/item_cmpfunc.h:
        Bug #20924: CAST(expr as UNSIGNED) returns SIGNED value when used in various functions
        
        - Moved some code out of Arg_comparator to external functions to be reused in Item_func_min_max
      sql/item_func.cc:
        Bug #20924: CAST(expr as UNSIGNED) returns SIGNED value when used in various functions
        
        Fixed LEAST(), GREATEST() and "SET @A=..." parts
      sql/item_func.h:
        Bug #20924: CAST(expr as UNSIGNED) returns SIGNED value when used in various functions
        
        Fixed "SET @A=..." part
      sql/sql_class.h:
        Bug #20924: CAST(expr as UNSIGNED) returns SIGNED value when used in various functions
        
        Fixed "SET @A=..." part
      8e14a50a
  4. 07 Sep, 2006 2 commits
  5. 06 Sep, 2006 14 commits
    • unknown's avatar
      Merge maint1.mysql.com:/data/localhome/tsmith/bk/bfx/my51-bfx · d09a9d02
      unknown authored
      into  maint1.mysql.com:/data/localhome/tsmith/bk/51
      
      d09a9d02
    • unknown's avatar
      Merge maint1.mysql.com:/data/localhome/tsmith/bk/bfx/my50-bfx · 3ae8730d
      unknown authored
      into  maint1.mysql.com:/data/localhome/tsmith/bk/bfx/my51-bfx
      
      
      sql/mysqld.cc:
        SCCS merged
      sql/stacktrace.c:
        Manual merge (use local)
      sql/stacktrace.h:
        !
        Manual merge (use local)
      3ae8730d
    • unknown's avatar
      Merge maint1.mysql.com:/data/localhome/tsmith/bk/bfx/my41-bfx · a10317ae
      unknown authored
      into  maint1.mysql.com:/data/localhome/tsmith/bk/bfx/my50-bfx
      
      
      sql/mysqld.cc:
        Manual merge
      sql/stacktrace.c:
        Manual merge; undo trivial change to avoid automerge.
      sql/stacktrace.h:
        Manual merge; undo trivial change which avoided automerge
      a10317ae
    • unknown's avatar
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-new-maint · 7745fa7c
      unknown authored
      into  rama.(none):/home/jimw/my/mysql-5.1-clean
      
      7745fa7c
    • unknown's avatar
      Bug #21054: myisam_stats_method ignored in my.cnf and cmdline · e56afda4
      unknown authored
      Fix OPT_MYISAM_STATS_METHOD case, where the NULLS_EQUAL and NULLS_NOT_EQUAL methods were mixed up
      
      
      sql/mysqld.cc:
        Fix OPT_MYISAM_STATS_METHOD case, bug #21054
      e56afda4
    • unknown's avatar
      Bug #21250: esolve stack traces on AMD64 (backport to mysql-4.1) · c51040ca
      unknown authored
      
      sql/stacktrace.c:
        stacktrace dumps for amd64 (backport fix for bug 21250 to mysql-4.1)
      sql/stacktrace.h:
        stacktrace dumps for amd64 (backport fix for bug 21250 to mysql-4.1)
      c51040ca
    • unknown's avatar
      Fix build problem for when not compiled with debugging. · fe45b248
      unknown authored
      
      dbug/dbug.c:
        Don't try to force DBUG on.
        
        Conditionally compile this file, as the headers we load may change the 
        value of DBUG_OFF /after/ we set it.
      fe45b248
    • unknown's avatar
      Merge rama.(none):/home/jimw/my/mysql-5.1-19874 · b2e68676
      unknown authored
      into  rama.(none):/home/jimw/my/mysql-5.1-clean
      
      
      sql/sql_parse.cc:
        Auto merged
      b2e68676
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.1-maint · c51b2324
      unknown authored
      into  salvation.intern.azundris.com:/home/tnurnberg/21913/my51-21913
      
      c51b2324
    • unknown's avatar
      Fix merge problems; work around disparate "ls" behaviors. · 62f488c2
      unknown authored
      
      mysql-test/r/ctype_recoding.result:
        Case change in 5.1.
      mysql-test/t/heap_btree.test:
        Fixes bad merge.
      mysql-test/t/partition.test:
        Split terrible "ls" test into two parts so that the different sorting orders
        of sundry OSes don't affect the output.
      62f488c2
    • unknown's avatar
      mi_test_all.sh needs "./" before the executable names otherwise they · 97cc7471
      unknown authored
      are not found
      
      
      storage/myisam/mi_test_all.sh:
        need "./" before the executable names otherwise they are not found
      97cc7471
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-5.1-maint · 5d4c2e58
      unknown authored
      into  gbichot3.local:/home/mysql_src/mysql-5.1-2
      
      5d4c2e58
    • unknown's avatar
      New way to fix BUG#19243 "wrong LAST_INSERT_ID() after ON DUPLICATE KEY UPDATE". · 79e1c0fd
      unknown authored
      This bug report was two problems:
      1) LAST_INSERT_ID() returns a value which does not exist in the table
      2) the reporter would want it to return the autoinc id of the updated
      row.
      1) is a real bug, 2) is a feature request.
      In July I implemented 2) in 5.1 (which automatically fixes 1).
      This has not yet been documented or released, so is changeable.
      Precisely, recently Paul and a user found an easy workaround to give
      2), which works in 4.1-5.0-5.1. So I can revert my code for 2),
      because it's not needed, that's what I do here;
      we forget about 2) (we will document the workaround).
      But when I revert my code for 2), 1) comes back. We solve 1) by saying
      that if INSERT ON DUPLICATE KEY UPDATE updates a row, it's like a
      regular UPDATE: LAST_INSERT_ID() should not be affected (instead of
      returning a non-existent value).
      So note: no behaviour change compared to the last released 5.1; just
      a bugfix for 1).
      
      
      mysql-test/r/innodb_mysql.result:
        result update
      mysql-test/t/innodb_mysql.test:
            test for the new way to fix BUG#19243: that if INSERT ON DUPLICATE
            KEY UPDATE updates a row, SELECT LAST_INSERT_ID() is not affected.
            Test of the workaround for people who want SELECT LAST_INSERT_ID()
            to return the autoinc id of the updated row.
      sql/sql_insert.cc:
        No need to change LAST_INSERT_ID() if INSERT ON DUPLICATE KEY UPDATE
        updates a row, there is a workaround to achieve this without changing
        code: just add "autoinc_col=LAST_INSERT_ID(autoinc_col)" to your
        ON DUPLICATE KEY UPDATE clause.
        Prevent LAST_INSERT_ID() to contain an inexistent value in this case:
        if the row is updated it should be like a regular UPDATE: don't
        affect LAST_INSERT_ID() (achieved by marking that we didn't generate
        an id for this row: insert_id_for_cur_row=0).
      79e1c0fd
  6. 05 Sep, 2006 16 commits