An error occurred fetching the project authors.
  1. 30 Jun, 2016 5 commits
    • Alexander Barkov's avatar
      More tests for MDEV-10134 Add full support for DEFAULT · f9fb646b
      Alexander Barkov authored
      Boolean predicates
      f9fb646b
    • Alexander Barkov's avatar
      More tests for MDEV-7563 Support CHECK constraint · 11ff9014
      Alexander Barkov authored
      Adding tests for cast, bit functions, string functions.
      11ff9014
    • Alexander Barkov's avatar
      Adding more tests for "MDEV-7563 Support CHECK constraint": · 11debf69
      Alexander Barkov authored
      - real functions
      - temporal functions
      - hybrid functions
      11debf69
    • Michael Widenius's avatar
      MDEV-7563 Support CHECK constraint as in (or close to) SQL Standard · db7edfed
      Michael Widenius authored
      MDEV-10134 Add full support for DEFAULT
      
      - Added support for using tables with MySQL 5.7 virtual fields,
        including MySQL 5.7 syntax
      - Better error messages also for old cases
      - CREATE ... SELECT now also updates timestamp columns
      - Blob can now have default values
      - Added new system variable "check_constraint_checks", to turn of
        CHECK constraint checking if needed.
      - Removed some engine independent tests in suite vcol to only test myisam
      - Moved some tests from 'include' to 't'. Should some day be done for all tests.
      - FRM version increased to 11 if one uses virtual fields or constraints
      - Changed to use a bitmap to check if a field has got a value, instead of
        setting HAS_EXPLICIT_VALUE bit in field flags
      - Expressions can now be up to 65K in total
      - Ensure we are not refering to uninitialized fields when handling virtual fields or defaults
      - Changed check_vcol_func_processor() to return a bitmap of used types
      - Had to change some functions that calculated cached value in fix_fields to do
        this in val() or getdate() instead.
      - store_now_in_TIME() now takes a THD argument
      - fill_record() now updates default values
      - Add a lookahead for NOT NULL, to be able to handle DEFAULT 1+1 NOT NULL
      - Automatically generate a name for constraints that doesn't have a name
      - Added support for ALTER TABLE DROP CONSTRAINT
      - Ensure that partition functions register virtual fields used. This fixes
        some bugs when using virtual fields in a partitioning function
      db7edfed
    • Michael Widenius's avatar
      Part of MDEV-10134 Add full support for DEFAULT · 6c173324
      Michael Widenius authored
      Print default values for BLOB's.
      This is a part commit for automatic changes to make the real commit smaller.
      All changes here are related to that we now print DEFAULT NULL for blob and
      text fields, like we do for all other fields.
      6c173324
  2. 04 Sep, 2015 1 commit
  3. 04 May, 2015 1 commit
  4. 17 Feb, 2010 2 commits
    • Sergey Glukhov's avatar
      Bug#33717 INSERT...(default) fails for enum. Crashes CSV tables, loads spaces for MyISAM · 4b260b66
      Sergey Glukhov authored
      Table corruption happens during table reading in ha_tina::find_current_row() func.
      Field::store() method returns error(true) if stored value is 0.
      The fix:
      added special case for enum type which correctly processes 0 value.
      Additional fix:
      INSERT...(default) and INSERT...() have the same behaviour now for enum type.
      
      
      mysql-test/r/csv.result:
        test result
      mysql-test/r/default.result:
        result fix
      mysql-test/t/csv.test:
        test case
      sql/item.cc:
        Changes:
        do not print warning for 'enum' type if there is no default value.
        set default value.
      storage/csv/ha_tina.cc:
        Table corruption happens during table reading in ha_tina::find_current_row() func.
        Field::store() method returns error(true) if stored value is 0.
        The fix:
        added special case for enum type which correctly processes 0 value.
      4b260b66
    • Sergey Glukhov's avatar
      Bug#33717 INSERT...(default) fails for enum. Crashes CSV tables, loads spaces for MyISAM · c8f27848
      Sergey Glukhov authored
      Table corruption happens during table reading in ha_tina::find_current_row() func.
      Field::store() method returns error(true) if stored value is 0.
      The fix:
      added special case for enum type which correctly processes 0 value.
      Additional fix:
      INSERT...(default) and INSERT...() have the same behaviour now for enum type.
      c8f27848
  5. 03 Sep, 2008 2 commits
    • Gleb Shchepa's avatar
      Bug #39002: The server crashes on the query: · 59b9d50c
      Gleb Shchepa authored
        INSERT .. SELECT .. ON DUPLICATE KEY UPDATE col=DEFAULT
      
      In order to get correct values from update fields that
      belongs to the SELECT part in the INSERT .. SELECT .. ON
      DUPLICATE KEY UPDATE statement, the server adds referenced
      fields to the select list. Part of the code that does this
      transformation is shared between implementations of
      the DEFAULT(col) function and the DEFAULT keyword (in
      the col=DEFAULT expression), and an implementation of
      the DEFAULT keyword is incomplete.
      
      
      mysql-test/r/default.result:
        Added test case for bug #39002.
      mysql-test/t/default.test:
        Added test case for bug #39002.
      sql/item.cc:
        The Item_default_value::transform() function has been
        modified to take into account the fact that the DEFAULT
        keyword has no arguments unlike the DEFAULT(col) function
        that always has an argument.
      59b9d50c
    • Gleb Shchepa's avatar
      Bug #39002: The server crashes on the query: · 6f94324f
      Gleb Shchepa authored
        INSERT .. SELECT .. ON DUPLICATE KEY UPDATE col=DEFAULT
      
      In order to get correct values from update fields that
      belongs to the SELECT part in the INSERT .. SELECT .. ON
      DUPLICATE KEY UPDATE statement, the server adds referenced
      fields to the select list. Part of the code that does this
      transformation is shared between implementations of
      the DEFAULT(col) function and the DEFAULT keyword (in
      the col=DEFAULT expression), and an implementation of
      the DEFAULT keyword is incomplete.
      6f94324f
  6. 20 Sep, 2007 2 commits
    • unknown's avatar
      Bug#27747 database metadata doesn't return sufficient column default info · fac190a2
      unknown authored
      added get_field_default_value() function which obtains default value from the field
      (used in store_create_info() & get_schema_column_record() functions)
      
      
      mysql-test/r/alter_table.result:
        result fix
      mysql-test/r/create.result:
        result fix
      mysql-test/r/ctype_collate.result:
        result fix
      mysql-test/r/ctype_recoding.result:
        result fix
      mysql-test/r/default.result:
        result fix
      mysql-test/r/gis.result:
        result fix
      mysql-test/r/grant.result:
        result fix
      mysql-test/r/information_schema.result:
        result fix
      mysql-test/r/key.result:
        result fix
      mysql-test/r/mysql.result:
        result fix
      mysql-test/r/ps_1general.result:
        result fix
      mysql-test/r/show_check.result:
        result fix
      mysql-test/r/sp.result:
        result fix
      mysql-test/r/type_enum.result:
        result fix
      mysql-test/r/type_ranges.result:
        result fix
      mysql-test/t/information_schema.test:
        test case
      fac190a2
    • gluh@mysql.com/eagle.(none)'s avatar
      Bug#27747 database metadata doesn't return sufficient column default info · 6b81174c
      gluh@mysql.com/eagle.(none) authored
      added get_field_default_value() function which obtains default value from the field
      (used in store_create_info() & get_schema_column_record() functions)
      6b81174c
  7. 12 Feb, 2007 2 commits
  8. 09 Nov, 2006 2 commits
    • unknown's avatar
      Bug#20691: DATETIME col (NOT NULL, NO DEFAULT) may insert garbage when \ · 19d61b1b
      unknown authored
      	specifying DEFAULT
      
      This was not specific to datetime.  When there is no default value 
      for a column, and the user inserted DEFAULT, we would write 
      uninitialized memory to the table.  
      
      Now, insist on writing a default value, a zero-ish value, the same 
      one that comes from inserting NULL into a not-NULL field.
      
      (This is, at best, really strange behavior that comes from allowing 
      sloppy usage, and serves as a good reason always to run one's server 
      in a strict SQL mode.)
      
      
      mysql-test/r/default.result:
        Verify that all kinds of types work, even others other than datetime.
      mysql-test/t/default.test:
        Verify that all kinds of types work, even others other than datetime.
      sql/item.cc:
        Even if we warn that there is no default value in the table definition,
        we have to insert /something/.
      19d61b1b
    • cmiller@zippy.cornsilk.net's avatar
      Bug#20691: DATETIME col (NOT NULL, NO DEFAULT) may insert garbage when \ · 92e0b319
      cmiller@zippy.cornsilk.net authored
      	specifying DEFAULT
      
      This was not specific to datetime.  When there is no default value 
      for a column, and the user inserted DEFAULT, we would write 
      uninitialized memory to the table.  
      
      Now, insist on writing a default value, a zero-ish value, the same 
      one that comes from inserting NULL into a not-NULL field.
      
      (This is, at best, really strange behavior that comes from allowing 
      sloppy usage, and serves as a good reason always to run one's server 
      in a strict SQL mode.)
      92e0b319
  9. 22 Feb, 2006 2 commits
    • unknown's avatar
      Bug#10460 SHOW CREATE TABLE uses inconsistent upper/lower case · 31a7a0d6
      unknown authored
      mysql-test/r/alter_table.result:
        Update test result
      mysql-test/r/analyse.result:
        Update test result
      mysql-test/r/archive.result:
        Update test result
      mysql-test/r/archive_bitfield.result:
        Update test result
      mysql-test/r/archive_gis.result:
        Update test result
      mysql-test/r/bdb.result:
        Update test result
      mysql-test/r/bdb_gis.result:
        Update test result
      mysql-test/r/bigint.result:
        Update test result
      mysql-test/r/binary.result:
        Update test result
      mysql-test/r/case.result:
        Update test result
      mysql-test/r/cast.result:
        Update test result
      mysql-test/r/constraints.result:
        Update test result
      mysql-test/r/create.result:
        Update test result
      mysql-test/r/ctype_collate.result:
        Update test result
      mysql-test/r/ctype_create.result:
        Update test result
      mysql-test/r/ctype_latin1_de.result:
        Update test result
      mysql-test/r/ctype_many.result:
        Update test result
      mysql-test/r/ctype_mb.result:
        Update test result
      mysql-test/r/ctype_recoding.result:
        Update test result
      mysql-test/r/ctype_sjis.result:
        Update test result
      mysql-test/r/ctype_tis620.result:
        Update test result
      mysql-test/r/ctype_ucs.result:
        Update test result
      mysql-test/r/ctype_ujis.result:
        Update test result
      mysql-test/r/ctype_utf8.result:
        Update test result
      mysql-test/r/default.result:
        Update test result
      mysql-test/r/events.result:
        Update test result
      mysql-test/r/federated.result:
        Update test result
      mysql-test/r/fulltext.result:
        Update test result
      mysql-test/r/func_gconcat.result:
        Update test result
      mysql-test/r/func_group.result:
        Update test result
      mysql-test/r/func_math.result:
        Update test result
      mysql-test/r/func_misc.result:
        Update test result
      mysql-test/r/func_str.result:
        Update test result
      mysql-test/r/func_system.result:
        Update test result
      mysql-test/r/gis-rtree.result:
        Update test result
      mysql-test/r/heap.result:
        Update test result
      mysql-test/r/index_merge_innodb.result:
        Update test result
      mysql-test/r/information_schema.result:
        Update test result
      mysql-test/r/innodb.result:
        Update test result
      mysql-test/r/innodb_gis.result:
        Update test result
      mysql-test/r/key.result:
        Update test result
      mysql-test/r/merge.result:
        Update test result
      mysql-test/r/myisam.result:
        Update test result
      mysql-test/r/mysqldump-max.result:
        Update test result
      mysql-test/r/mysqldump.result:
        Update test result
      mysql-test/r/ndb_bitfield.result:
        Update test result
      mysql-test/r/ndb_gis.result:
        Update test result
      mysql-test/r/ndb_partition_key.result:
        Update test result
      mysql-test/r/null.result:
        Update test result
      mysql-test/r/partition.result:
        Update test result
      mysql-test/r/partition_02myisam.result:
        Update test result
      mysql-test/r/partition_mgm_err.result:
        Update test result
      mysql-test/r/partition_range.result:
        Update test result
      mysql-test/r/ps_2myisam.result:
        Update test result
      mysql-test/r/ps_3innodb.result:
        Update test result
      mysql-test/r/ps_4heap.result:
        Update test result
      mysql-test/r/ps_5merge.result:
        Update test result
      mysql-test/r/ps_6bdb.result:
        Update test result
      mysql-test/r/rpl_mixed_ddl_dml.result:
        Update test result
      mysql-test/r/rpl_multi_engine.result:
        Update test result
      mysql-test/r/rpl_ndb_UUID.result:
        Update test result
      mysql-test/r/show_check.result:
        Update test result
      mysql-test/r/sp-vars.result:
        Update test result
      mysql-test/r/sp.result:
        Update test result
      mysql-test/r/sql_mode.result:
        Update test result
      mysql-test/r/strict.result:
        Update test result
      mysql-test/r/subselect.result:
        Update test result
      mysql-test/r/symlink.result:
        Update test result
      mysql-test/r/synchronization.result:
        Update test result
      mysql-test/r/system_mysql_db.result:
        Update test result
      mysql-test/r/temp_table.result:
        Update test result
      mysql-test/r/trigger.result:
        Update test result
      mysql-test/r/type_binary.result:
        Update test result
      mysql-test/r/type_bit.result:
        Update test result
      mysql-test/r/type_bit_innodb.result:
        Update test result
      mysql-test/r/type_blob.result:
        Update test result
      mysql-test/r/type_decimal.result:
        Update test result
      mysql-test/r/type_enum.result:
        Update test result
      mysql-test/r/type_float.result:
        Update test result
      mysql-test/r/type_nchar.result:
        Update test result
      mysql-test/r/type_newdecimal.result:
        Update test result
      mysql-test/r/type_set.result:
        Update test result
      mysql-test/r/type_timestamp.result:
        Update test result
      mysql-test/r/type_varchar.result:
        Update test result
      mysql-test/r/union.result:
        Update test result
      mysql-test/r/user_var.result:
        Update test result
      mysql-test/r/variables.result:
        Update test result
      sql/sql_show.cc:
        Make ouput from SHOW CREATE TABLE use uppercase for "CHARACTER SET", "COLLATE", "DEFAULT", "ON UPDATE" and "AUTO_INCREMENT"
      31a7a0d6
    • msvensson@neptunus.(none)'s avatar
  10. 25 Sep, 2005 2 commits
  11. 01 Jun, 2005 2 commits
    • unknown's avatar
      Renamed bugs.test to default.test · 2af74b7e
      unknown authored
      Moved enabling of warnings to ensure that no warnings are generated
      when this test case is executed on a clone where InnoDB is not
      activated. This would fail the test case in those clones otherwise.
      
      
      mysql-test/r/default.result:
        Rename: mysql-test/r/bugs.result -> mysql-test/r/default.result
      mysql-test/t/default.test:
        Moved enabling of warnings to ensure that no warnings are generated
        when this test case is executed on a clone where InnoDB is not
        activated. This would fail the test case in those clones otherwise.
      2af74b7e
    • mronstrom@mysql.com's avatar
      Renamed bugs.test to default.test · 5b54fcab
      mronstrom@mysql.com authored
      Moved enabling of warnings to ensure that no warnings are generated
      when this test case is executed on a clone where InnoDB is not
      activated. This would fail the test case in those clones otherwise.
      5b54fcab
  12. 25 May, 2005 2 commits