1. 01 Apr, 2005 1 commit
    • unknown's avatar
      Invalid DEFAULT values for CREATE TABLE now generates errors. (Bug #5902) · ec6be08b
      unknown authored
      CAST() now produces warnings when casting a wrong INTEGER or CHAR values. This also applies to implicite string to number casts. (Bug #5912)
      ALTER TABLE now fails in STRICT mode if it generates warnings.
      Inserting a zero date in a DATE, DATETIME or TIMESTAMP column during TRADITIONAL mode now produces an error. (Bug #5933)
      
      
      mysql-test/r/bigint.result:
        New warning added
      mysql-test/r/cast.result:
        Added testing of wrong CAST's of strings to numbers and numbers to strings
      mysql-test/r/create.result:
        Added test for wrong default values (#5902)
      mysql-test/r/func_if.result:
        Changed tests to produce less warnings
      mysql-test/r/func_misc.result:
        New warning
      mysql-test/r/func_str.result:
        Added missing drop table
        Changed test to produce less warnings
        New warnings
      mysql-test/r/ndb_index_unique.result:
        Removed wrong default usage
      mysql-test/r/ps_1general.result:
        Changed tests to produce less warnings
      mysql-test/r/row.result:
        New warnings
      mysql-test/r/rpl_session_var.result:
        Changed tests to produce less warnings
      mysql-test/r/strict.result:
        New tests for CAST() and zero date handling
      mysql-test/r/subselect.result:
        Changed tests to produce less warnings
      mysql-test/r/type_ranges.result:
        Changed tests to produce less warnings
      mysql-test/t/cast.test:
        Added testing of wrong CAST's of strings to numbers and numbers to strings
      mysql-test/t/create.test:
        Added test for wrong default values (#5902)
      mysql-test/t/func_if.test:
        Changed tests to produce less warnings
      mysql-test/t/func_str.test:
        Added missing drop table
        Changed test to produce less warnings
        New warnings
      mysql-test/t/ndb_index_unique.test:
        Removed wrong default usage
      mysql-test/t/ps_1general.test:
        Changed tests to produce less warnings
      mysql-test/t/rpl_session_var.test:
        Changed tests to produce less warnings
      mysql-test/t/strict.test:
        New tests for CAST() and zero date handling
      mysql-test/t/subselect.test:
        Changed tests to produce less warnings
      mysql-test/t/type_ranges.test:
        Changed tests to produce less warnings
      sql/Makefile.am:
        Added new include file
      sql/field.cc:
        Added warnings for zero dates for DATE, DATETIME and TIMESTAMP
        Moved Field_blob::max_length() to a more appropriate position
        Changed type for 'level' in set_warning() to avoid casts
      sql/field.h:
        Changed type for 'level' in set_warning() to avoid casts
      sql/field_conv.cc:
        Copy date and datetime fields through string in 'traditional' mode to detect zero dates
      sql/item.cc:
        Removed compiler warnings
        Give warnings for wrong CAST of strings -> number
      sql/item.h:
        Moved Item_string::val_real() and ::val_int() to item.cc
      sql/item_row.cc:
        Better detection of null values (which doesn't produce warnings)
      sql/item_sum.cc:
        Better detection of null values (which doesn't produce warnings)
      sql/item_timefunc.cc:
        Give warnings for wrong CAST of number -> string
      sql/my_decimal.cc:
        Fixed typo in comment
      sql/mysql_priv.h:
        Removed prototype for static function
        Moved defines for error handling to sql_error.h (to be able to use these in field.h)
      sql/mysqld.cc:
        Simplify code
      sql/sql_class.h:
        Moved to sql_error.h
      sql/sql_load.cc:
        Removed wrong cast
      sql/sql_parse.cc:
        Fixed wrong printf()
      sql/sql_table.cc:
        Made mysql_prepare_table() static
        Changed references to pointers to make code more readable
        ALTER TABLE now aborts if one gets warnings in STRICT mode
      sql/time.cc:
        Fixed possible wrong call
      sql/unireg.cc:
        Removed one call to current_thd
        Give errors if one uses a wrong DEFAULT value
      ec6be08b
  2. 30 Mar, 2005 22 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · a10aef62
      unknown authored
      into mysql.com:/home/my/mysql-5.0
      
      a10aef62
    • unknown's avatar
      Enabled more tests of STR_TO_DATE() · 4e5cd102
      unknown authored
      Fixed that datetime gives warning for zero dates in traditional mode
      
      
      mysql-test/r/strict.result:
        Enabled more tests of STR_TO_DATE()
      mysql-test/t/strict.test:
        Enabled more tests of STR_TO_DATE()
      sql/field.cc:
        Fixed that datetime gives warning for zero dates in traditional mode
      sql/log_event.h:
        Fix wrong ifdef from last push
      4e5cd102
    • unknown's avatar
      after merge fix/ · b8aa173e
      unknown authored
      b8aa173e
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · cea5bb77
      unknown authored
      into mysql.com:/home/my/mysql-5.0
      
      
      sql/log_event.cc:
        Auto merged
      sql/share/errmsg.txt:
        Auto merged
      cea5bb77
    • unknown's avatar
      Give warnings if wrong date/time/datetime argument for STR_TO_DATE · 927a3114
      unknown authored
      Small fixes while doing review of new pushed code
      More test cases for decimal
      
      
      mysql-test/r/date_formats.result:
        Warnings added for STR_TO_DATE()
      mysql-test/r/ps_1general.result:
        Better description for BLACKHOLE
      mysql-test/r/strict.result:
        Added tests for STR_TO_DATE
      mysql-test/r/type_decimal.result:
        Test to test ranges of DECIMAL
      mysql-test/t/date_formats.test:
        More tests
      mysql-test/t/strict.test:
        Added tests for STR_TO_DATE
      mysql-test/t/type_decimal.test:
        Test to test ranges of DECIMAL
      sql/field.cc:
        Simple optimization
      sql/handler.cc:
        Better description for BLACKHOLE
      sql/item_timefunc.cc:
        Give warnings if wrong date/time/datetime argument for STR_TO_DATE
      sql/log_event.cc:
        Indentation fixes
      sql/log_event.h:
        #ifdef-ed not used code
      sql/share/errmsg.txt:
        New error message
      sql/sql_show.cc:
        Ensure that we do a proper restore in case of error
      927a3114
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 92df4ec0
      unknown authored
      into mysql.com:/usr/home/ram/work/mysql-5.0
      
      
      include/violite.h:
        Auto merged
      mysql-test/r/ps_7ndb.result:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      92df4ec0
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.0 · 606d246c
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-5.0
      
      
      BitKeeper/etc/logging_ok:
        auto-union
      Build-tools/Do-compile:
        Auto merged
      606d246c
    • unknown's avatar
      Merge · b820dab1
      unknown authored
      
      include/violite.h:
        Auto merged
      mysql-test/r/ps_7ndb.result:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_select.cc:
        Manual merge
      b820dab1
    • unknown's avatar
      merged · 14c090aa
      unknown authored
      
      BitKeeper/etc/logging_ok:
        auto-union
      include/violite.h:
        Auto merged
      mysql-test/r/ps_7ndb.result:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      14c090aa
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1 · 12eb36ac
      unknown authored
      into mysql.com:/usr/home/ram/work/mysql-4.1
      
      12eb36ac
    • unknown's avatar
      A fix (bug #9401: type_timestamp segfaults mysqld) · d5d96696
      unknown authored
      
      sql/sql_select.cc:
        A fix (bug #9401: type_timestamp segfaults mysqld).
        1. create_tmp_field_from_field() is modified to take 'Item_ref *item' and 'char *name'
        instead of 'bool modify_item' and 'Item *item'.
        2. For Item_sum_min/max we should never modify item, so NULL is 
        passed as item to the create_tmp_field_from_field().
      d5d96696
    • unknown's avatar
      Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 987779fe
      unknown authored
      into mysql.com:/usr/home/bar/mysql-4.1
      
      987779fe
    • unknown's avatar
      Remove .opt file for faster test running. · 5d7b7cf3
      unknown authored
      
      BitKeeper/deleted/.del-ctype_cp1251-master.opt~68be9a59ec8ee106:
        Delete: mysql-test/t/ctype_cp1251-master.opt
      5d7b7cf3
    • unknown's avatar
      Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/ · 076f771c
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.1
      
      076f771c
    • unknown's avatar
      merged · db777f9c
      unknown authored
      db777f9c
    • unknown's avatar
      don't strcmp db if it's a pattern · 5bbfa890
      unknown authored
      5bbfa890
    • unknown's avatar
      Merge · ced06b83
      unknown authored
      
      BitKeeper/etc/logging_ok:
        auto-union
      Build-tools/Do-compile:
        Merge from 4.0 and 4.1
      ced06b83
    • unknown's avatar
      Merge · c2ad7a35
      unknown authored
      
      BitKeeper/etc/logging_ok:
        auto-union
      Build-tools/Do-compile:
        Merge from 4.0
      c2ad7a35
    • unknown's avatar
      Do-compile: · 2fb316dc
      unknown authored
        Added option --with-big-tables
      
      
      Build-tools/Do-compile:
        Added option --with-big-tables
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      2fb316dc
    • unknown's avatar
      Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1-perl · ff278888
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-5.0-compile
      
      
      Build-tools/Do-compile:
        Auto merged
      ff278888
    • unknown's avatar
      Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-4.1 · 5125d7d6
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-4.1-perl
      
      5125d7d6
    • unknown's avatar
      Do-compile: · 5c5b5001
      unknown authored
        Added option --with-blackhole
      
      
      Build-tools/Do-compile:
        Added option --with-blackhole
      5c5b5001
  3. 29 Mar, 2005 17 commits