1. 19 May, 2007 3 commits
    • unknown's avatar
      Bug#28401 mysql_upgrade Failed with STRICT_ALL_TABLES, ANSI_QUOTES and NO_ZERO_DATE · 0a9d4ca3
      unknown authored
       - Upgrade result file for 5.1
      
      
      mysql-test/r/mysql_upgrade.result:
        Update result for 5.1 - it has more system tables
      0a9d4ca3
    • unknown's avatar
      Merge pilot.blaudden:/home/msvensson/mysql/bug28401/my50-bug28401 · c626ddb1
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/bug28401/my51-bug28401
      
      
      mysql-test/r/mysql_upgrade.result:
        Auto merged
      mysql-test/t/mysql_upgrade.test:
        Auto merged
      scripts/mysql_system_tables_fix.sql:
        Auto merged
      c626ddb1
    • unknown's avatar
      Bug #28401 mysql_upgrade Failed with STRICT_ALL_TABLES, ANSI_QUOTES and NO_ZERO_DATE · f52f931f
      unknown authored
       - The SQL commands used by mysql_upgrade are written to be run
          with sql_mode set to '' - thus the scripts should change sql_mode
          for the session to make sure the SQL is legal.
      
      
      mysql-test/r/mysql_upgrade.result:
        Update test result
      mysql-test/t/mysql_upgrade.test:
        The SQL commands used by mysql_upgrade are written to be run
        with sql_mode set to '' - thus the scripts should change sql_mode
        for the session to make sure the SQL is legal.
      scripts/mysql_system_tables_fix.sql:
        Set sql_mode to '' before running the SQL commands
        to fix system tables - backport from 5.1
      f52f931f
  2. 18 May, 2007 9 commits
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-maint · c9e524d4
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint
      
      
      client/mysqltest.c:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      c9e524d4
    • unknown's avatar
      Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint · c75d7035
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint
      
      
      client/mysqltest.c:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/r/mysqltest.result:
        Auto merged
      mysql-test/t/mysqltest.test:
        Auto merged
      c75d7035
    • unknown's avatar
      Merge pilot.blaudden:/home/msvensson/mysql/mysql-4.1-maint · f35dd614
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
      
      
      client/mysqltest.c:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/r/mysqltest.result:
        Auto merged
      mysql-test/t/mysqltest.test:
        SCCS merged
      f35dd614
    • unknown's avatar
      WL#2247 mysqltest: add option for sorting results · 421d8ca9
      unknown authored
       - Final touchups
      
      
      client/mysqltest.c:
        Final touch ups, rename sorted_results to sorted_result
      mysql-test/r/mysqltest.result:
        Update test result
      mysql-test/t/mysqltest.test:
        Update results with additional subtests for empty result set,
        NULL values and 1024 rows
      421d8ca9
    • unknown's avatar
      Merge quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/50 · 97f5cdb8
      unknown authored
      into  quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/51
      
      
      sql-common/my_time.c:
        Manual merge
      97f5cdb8
    • unknown's avatar
      Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.0-maint · 2018978e
      unknown authored
      into  quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/50
      
      
      2018978e
    • unknown's avatar
      my_time.c: · 9548a075
      unknown authored
        in number_to_datetime(), zero out the MYSQL_TIME structure
        before setting values, to ensure that all fields are initialized; in
        particular, ensure that ->neg is set to zero (fixes valgrind warning
        "Conditional jump ... depends on uninitialised value" in make_date_time)
      
      
      sql-common/my_time.c:
        in number_to_datetime(), zero out the MYSQL_TIME structure
        before setting values, to ensure that all fields are initialized; in
        particular, ensure that ->neg is set to zero (fixes valgrind warning
        "Conditional jump ... depends on uninitialised value" in make_date_time)
      9548a075
    • unknown's avatar
      Merge damien-katzs-computer.local:/Users/dkatz/mysql50 · b1a7ae79
      unknown authored
      into  damien-katzs-computer.local:/Users/dkatz/mysql51
      
      
      sql/filesort.cc:
        Auto merged
      b1a7ae79
    • unknown's avatar
      Bug #27119 server crash with integer division by zero during filesort on huge result · c2d3fb6b
      unknown authored
      Fixed a problem and compiler warning on 64bit platforms so that they only allocated UINT_MAX number of BUFFPEKS.
      
      
      sql/filesort.cc:
         Fixed a problem and compiler warning on 64bit platforms so that they only allocated UINT_MAX number of BUFFPEKS.
      c2d3fb6b
  3. 17 May, 2007 14 commits
    • unknown's avatar
      Merge damien-katzs-computer.local:/Users/dkatz/mysql50 · 4e77a4ce
      unknown authored
      into  damien-katzs-computer.local:/Users/dkatz/mysql51
      
      
      sql/filesort.cc:
        Auto merged
      4e77a4ce
    • unknown's avatar
      Merge damien-katzs-computer.local:/Users/dkatz/mysql50 · 8494cd5b
      unknown authored
      into  damien-katzs-computer.local:/Users/dkatz/50_div_zero
      
      
      8494cd5b
    • unknown's avatar
      Bug #27119 server crash with integer division by zero during filesort on huge result · 9d3e7ea6
      unknown authored
      Fixed a compiler warning on platforms where uint != ulong from the first pushed fix.
      
      
      sql/filesort.cc:
        fixed a compiler warning on platforms where uint != ulong
      9d3e7ea6
    • unknown's avatar
      Merge siva.hindu.god:/home/tsmith/m/bk/maint/50 · 08c7ab8a
      unknown authored
      into  siva.hindu.god:/home/tsmith/m/bk/maint/51
      
      
      mysql-test/r/type_datetime.result:
        Auto merged
      mysql-test/t/outfile.test:
        Auto merged
      mysql-test/t/type_datetime.test:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/my_decimal.h:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sp.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      08c7ab8a
    • unknown's avatar
      Merge siva.hindu.god:/home/tsmith/m/bk/maint/41 · 2738ca56
      unknown authored
      into  siva.hindu.god:/home/tsmith/m/bk/maint/50
      
      
      2738ca56
    • unknown's avatar
      Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.0-maint · 82db6cc6
      unknown authored
      into  siva.hindu.god:/home/tsmith/m/bk/maint/50
      
      
      82db6cc6
    • unknown's avatar
      Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.1-maint · 713c511f
      unknown authored
      into  siva.hindu.god:/home/tsmith/m/bk/maint/51
      
      
      713c511f
    • unknown's avatar
      Merge siva.hindu.god:/home/tsmith/m/bk/51 · 5ad7fdfa
      unknown authored
      into  siva.hindu.god:/home/tsmith/m/bk/maint/51
      
      
      client/mysqltest.c:
        Auto merged
      configure.in:
        Auto merged
      include/my_global.h:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/r/type_datetime.result:
        Auto merged
      mysql-test/t/outfile.test:
        Auto merged
      mysql-test/t/type_datetime.test:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/field.h:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/log.cc:
        Auto merged
      sql/my_decimal.cc:
        Auto merged
      sql/my_decimal.h:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/sp.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/structs.h:
        Auto merged
      storage/myisam/ha_myisam.cc:
        Auto merged
      5ad7fdfa
    • unknown's avatar
      Merge damien-katzs-computer.local:/Users/dkatz/mysql50 · 4684399a
      unknown authored
      into  damien-katzs-computer.local:/Users/dkatz/mysql51
      
      
      sql/filesort.cc:
        Auto merged
      storage/myisam/sort.c:
        Auto merged
      4684399a
    • unknown's avatar
      Merge siva.hindu.god:/home/tsmith/m/bk/50 · ce5f0d1b
      unknown authored
      into  siva.hindu.god:/home/tsmith/m/bk/maint/50
      
      
      mysql-test/r/type_datetime.result:
        Auto merged
      mysql-test/t/outfile.test:
        Auto merged
      mysql-test/t/type_datetime.test:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/my_decimal.h:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sp.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      ce5f0d1b
    • unknown's avatar
      Merge siva.hindu.god:/home/tsmith/m/bk/41 · fde76b7e
      unknown authored
      into  siva.hindu.god:/home/tsmith/m/bk/maint/41
      
      
      fde76b7e
    • unknown's avatar
      Merge damien-katzs-computer.local:/Users/dkatz/mysql50 · 1155afff
      unknown authored
      into  damien-katzs-computer.local:/Users/dkatz/50_div_zero
      
      
      1155afff
    • unknown's avatar
      Merge siva.hindu.god:/home/tsmith/m/bk/maint/50 · 103f45b7
      unknown authored
      into  siva.hindu.god:/home/tsmith/m/bk/maint/51
      
      
      client/mysqltest.c:
        Auto merged
      BitKeeper/deleted/.del-ps_6bdb.result:
        Auto merged
      103f45b7
    • unknown's avatar
      ps_6bdb.result: · db18dc9d
      unknown authored
        Fix bad merge of test results
      
      
      mysql-test/r/ps_6bdb.result:
        Fix bad merge of test results
      db18dc9d
  4. 16 May, 2007 14 commits
    • unknown's avatar
      Bug #27119 server crash with integer division by zero during filesort on huge result · 3770083b
      unknown authored
      Added checks to detect integer overflow and fixed other bugs on the error path.
      
      
      myisam/sort.c:
        Replaced a break statement with a goto statement so that a failure will instead break
      sql/filesort.cc:
        Fixed an allocation routine to detect integer overflow, and as an optimization a check that prevents the number of buffpeks being larger than can possibly fit into memory.
            
        Fixed several unchecked error codes.
            
        Changed an index variable from int to uint to the match the type of the variable it's
        being compared with.
            
            Replaced a break statement with a goto statement so that a failure will instead break
        out of the higher level while-loop, instead of just the nested for-loop.
      3770083b
    • unknown's avatar
      Bug#28473 Does mysql-test-run.pl handle LD_LIBRARY_PATH wrong ? · f106d396
      unknown authored
       - Fix spelling error
      
      
      mysql-test/mysql-test-run.pl:
        Fix spelling error
      f106d396
    • unknown's avatar
      WL#2247 mysqltest: add option for sorting results · 61413522
      unknown authored
       - Change from "query_sorted <query>" to "sorted_results"
      
      
      client/mysqltest.c:
        Replace "query_sorted <query>" with the ability to turn
        on "one shot result sorting" with the command "sorted_results"
      mysql-test/r/mysqltest.result:
        Update test and result
      mysql-test/t/mysqltest.test:
        Update test and result
      61413522
    • unknown's avatar
      Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint · ae872bac
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint
      
      
      client/mysqltest.c:
        Auto merged
      ae872bac
    • unknown's avatar
      Merge pilot.blaudden:/home/msvensson/mysql/mysql-4.1-maint · bcae429e
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
      
      
      client/mysqltest.c:
        Auto merged
      bcae429e
    • unknown's avatar
      Bug#28470 mysqltest scripts need to know protocol · 7e2ba658
      unknown authored
      
      client/mysqltest.c:
        Make it possible for test scripts to know what protocol is being used
      7e2ba658
    • unknown's avatar
      Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint · 37c5e887
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint
      
      
      BitKeeper/deleted/.del-ps_6bdb.result:
        Auto merged
      37c5e887
    • unknown's avatar
      Bug#21103: "DATE column not compared as DATE" · 8ab53d5f
      unknown authored
      BDB results fixed (not p/o 5.1 fix)
      
      
      mysql-test/r/ps_6bdb.result:
        Now we get a note when we insert a datetime value into a date column
      8ab53d5f
    • unknown's avatar
      Update to 5.1 format · 230e97a3
      unknown authored
      230e97a3
    • unknown's avatar
      Make a stab at events_bugs.test failure under valgrind (no · 7c472868
      unknown authored
      open bug report, reproduced in the runtime team tree).
      
      
      sql/event_data_objects.cc:
        Make a stub at fixing a race in event_bugs.test under valgrind:
        read of uninitialized byte in SHOW PROCESSLIST from an event thread.
      7c472868
    • unknown's avatar
      Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint · cd6767e4
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint
      
      
      include/my_time.h:
        Auto merged
      mysql-test/r/date_formats.result:
        Auto merged
      mysql-test/r/func_sapdb.result:
        Auto merged
      mysql-test/r/ps_2myisam.result:
        Auto merged
      mysql-test/r/ps_3innodb.result:
        Auto merged
      mysql-test/r/ps_4heap.result:
        Auto merged
      mysql-test/r/ps_5merge.result:
        Auto merged
      mysql-test/r/ps_7ndb.result:
        Auto merged
      mysql-test/r/strict.result:
        Auto merged
      mysql-test/r/type_datetime.result:
        Auto merged
      mysql-test/t/date_formats.test:
        Auto merged
      mysql-test/t/func_sapdb.test:
        Auto merged
      mysql-test/t/type_date.test:
        Auto merged
      mysql-test/t/type_datetime.test:
        Auto merged
      sql/field.h:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/my_decimal.cc:
        Auto merged
      sql/my_decimal.h:
        Auto merged
      sql/protocol.h:
        Auto merged
      sql/sp.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql-common/my_time.c:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/structs.h:
        Auto merged
      sql/tztime.cc:
        Auto merged
      sql/tztime.h:
        Auto merged
      sql/unireg.cc:
        Auto merged
      mysql-test/r/type_date.result:
        Use local
      sql/field.cc:
        Use local
      sql/item_cmpfunc.cc:
        Use local
        ul
      sql/item_timefunc.cc:
        Use local
      sql/item_timefunc.h:
        Use local
      sql/mysql_priv.h:
        Use local
      sql/protocol.cc:
        Use local
      sql/time.cc:
        Use local
      cd6767e4
    • unknown's avatar
      Merge pilot.blaudden:/home/msvensson/mysql/bk_fix/mysql-5.0-maint-patch4 · 9e30e548
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
      
      
      9e30e548
    • unknown's avatar
      Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint · 8804a287
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint
      
      
      client/mysqldump.c:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/r/mysqldump.result:
        Use local
      8804a287
    • unknown's avatar
      Backport of TIME->MYSQL_TIME / Y2K fixset · b5e4f54a
      unknown authored
         
      Made year 2000 handling more uniform
      Removed year 2000 handling out from calc_days()
      The above removes some bugs in date/datetimes with year between 0 and 200
      Now we get a note when we insert a datetime value into a date column
      For default values to CREATE, don't give errors for warning level NOTE
      Fixed some compiler failures
      Added library ws2_32 for windows compilation (needed if we want to compile with IOCP support)
      Removed duplicate typedef TIME and replaced it with MYSQL_TIME
      
      Better (more complete) fix for: Bug#21103 "DATE column not compared as DATE"
      Fixed properly Bug#18997 "DATE_ADD and DATE_SUB perform year2K autoconversion magic on 4-digit year value"
      Fixed Bug#23093 "Implicit conversion of 9912101 to date does not match cast(9912101 as date)"
       
      
      
      include/my_time.h:
        Removed not used define YY_MAGIC_BELOW
        Added prototype for year_2000_handling()
      mysql-test/r/date_formats.result:
        Updated results (fixed bug in date_format() with year < 99
      mysql-test/r/func_sapdb.result:
        Added more testing of make_date()
      mysql-test/r/ps_2myisam.result:
        Now we get a note when we insert a datetime value into a date column
      mysql-test/r/ps_3innodb.result:
        Now we get a note when we insert a datetime value into a date column
      mysql-test/r/ps_4heap.result:
        Now we get a note when we insert a datetime value into a date column
      mysql-test/r/ps_5merge.result:
        Now we get a note when we insert a datetime value into a date column
      mysql-test/r/ps_7ndb.result:
        Now we get a note when we insert a datetime value into a date column
      mysql-test/r/strict.result:
        zero-year in str_to_date() throws warning in strict
      mysql-test/r/type_date.result:
        Added test for date conversions
      mysql-test/r/type_datetime.result:
        Added testcase for datetime to date conversion.
      mysql-test/t/date_formats.test:
        Added testing of dates < 200
      mysql-test/t/func_sapdb.test:
        More testing of makedate()
      mysql-test/t/type_date.test:
        Added test for date conversions
      mysql-test/t/type_datetime.test:
        Added testcase for datetime to date conversion
      sql/field.cc:
        Give note if we insert a datetime value in a date field
        Don't give notes if we are doing internal test conversions (like from convert_constant_item())
        More documentation (store functions can now return '3' to inform that the function did return a NOTE (not warning or error))
        Revert some changes in Field_newdate::store() to get more optimal code
        Field::set_warning() will now ignore notes if CHECK_FIELD_IGNORE is set.
        New parameters to make_truncated_value_warning()
      sql/field.h:
        Give note if we insert a datetime value in a date field
        Don't give notes if we are doing internal test conversions (like from convert_constant_item())
        More documentation (store functions can now return '3' to inform that the function did return a NOTE (not warning or error))
        Revert some changes in Field_newdate::store() to get more optimal code
        Field::set_warning() will now ignore notes if CHECK_FIELD_IGNORE is set.
        New parameters to make_truncated_value_warning()
      sql/item.cc:
        Give note if we insert a datetime value in a date field
        Don't give notes if we are doing internal test conversions (like from convert_constant_item())
        More documentation (store functions can now return '3' to inform that the function did return a NOTE (not warning or error))
        Revert some changes in Field_newdate::store() to get more optimal code
        Field::set_warning() will now ignore notes if CHECK_FIELD_IGNORE is set.
        New parameters to make_truncated_value_warning()
      sql/item.h:
        TIME -> MYSQL_TIME
      sql/item_cmpfunc.cc:
        Don't print notes in convert_constant_item()
      sql/item_func.h:
        TIME -> MYSQL_TIME
      sql/item_timefunc.cc:
        New parameters to make_truncated_value_warning()
        Moved year 2000 handling out from calc_days()
      sql/item_timefunc.h:
        TIME -> MYSQL_TIME
      sql/my_decimal.cc:
        TIME -> MYSQL_TIME
      sql/my_decimal.h:
        TIME -> MYSQL_TIME
      sql/mysql_priv.h:
        Added error level to make_truncated_value_warning()
      sql/protocol.cc:
        TIME -> MYSQL_TIME
      sql/protocol.h:
        TIME -> MYSQL_TIME
      sql/sp.cc:
        TIME -> MYSQL_TIME
      sql/sql_base.cc:
        Make testing of result value of save_in_field() uniform
      sql/sql_class.h:
        TIME -> MYSQL_TIME
      sql/sql_show.cc:
        TIME -> MYSQL_TIME
      sql/structs.h:
        TIME -> MYSQL_TIME
      sql/time.cc:
        Added error level to make_truncated_value_warning()
      sql/tztime.cc:
        TIME -> MYSQL_TIME
      sql/tztime.h:
        TIME -> MYSQL_TIME
      sql/unireg.cc:
        For default values to CREATE, don't give errors for warning level NOTE
        (Fixed failed CREATE when we give a datetime value to a date field)
      sql-common/my_time.c:
        Added year_2000_handling()
        Removed year 2000 handling from calc_daynr()
      b5e4f54a