1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-21 06:21:35 +03:00
Files
mariadb/mysql-test/r
unknown b16b2683e5 Complementary fix for bug #29353: inserting a negative value to a csv table
leads to the table corruption

New Field::store() method implemented to explicitly set thd->count_cuted_fields
before value storing, instead of (incorrectly) setting it in the CSV storage engine.
Thread row counter now properly incremented during check and repair in the CSV engine.


include/mysql/plugin.h:
  Complementary fix for bug #29353: inserting a negative value to a csv table 
  leads to the table corruption
    - thd_inc_row_count() function prototype added, which allows a storage 
      engine to increment thread row counter.
mysql-test/r/csv.result:
  Complementary fix for bug #29353: inserting a negative value to a csv table 
  leads to the table corruption
    - result adjusted.
sql/field.cc:
  Complementary fix for bug #29353: inserting a negative value to a csv table 
  leads to the table corruption
    - Field::store(const char *to, uint length, CHARSET_INFO *cs,
                   enum_check_fields check_level)
      method introduced in order to explicitly set count_cuted_fields before 
      a ::store call, then reset it back after.
sql/field.h:
  Complementary fix for bug #29353: inserting a negative value to a csv table 
  leads to the table corruption
    - Field::store(const char *to, uint length, CHARSET_INFO *cs,
                   enum_check_fields check_level)
      method introduced in order to explicitly set count_cuted_fields before 
      a ::store call, then reset it back after.
sql/mysql_priv.h:
  Complementary fix for bug #29353: inserting a negative value to a csv table 
  leads to the table corruption
    - enum enum_check_fields moved from sql/sql_class.h to sql/mysql_priv.h
      as it's used now in the field.h
sql/sql_class.cc:
  Complementary fix for bug #29353: inserting a negative value to a csv table 
  leads to the table corruption
    - implementation of the new thd_inc_row_count() function which increments
      thread row counter.
sql/sql_class.h:
  Complementary fix for bug #29353: inserting a negative value to a csv table 
  leads to the table corruption
    - enum enum_check_fields moved from sql/sql_class.h to sql/mysql_priv.h
      as it's used now in the field.h
storage/csv/ha_tina.cc:
  Complementary fix for bug #29353: inserting a negative value to a csv table 
  leads to the table corruption
    - removed #define MYSQL_SERVER 1 - "a storage engine should not need 
      internals of the server"
    - removed thd->count_cuted_fields= CHECK_FIELD_WARN as we are not allowed to 
      access internals of THD.
    - used new Field::store() method to explicitly set thd->count_cuted_fields to
      CHECK_FIELD_WARN
    - thd_inc_row_count() calls added to ha_tina::repair() and ha_tina::check()
      to get proper row count values.
2007-07-03 17:17:58 +05:00
..
2007-05-30 20:25:16 +04:00
2007-03-31 20:27:43 +05:00
2007-05-23 15:26:16 +04:00
2007-05-29 15:58:18 +03:00
2007-05-26 16:36:38 +02:00
2007-04-07 23:16:03 +05:00
2007-04-04 21:35:58 +00:00
2007-06-13 14:59:31 +05:00
2007-06-11 22:55:21 +04:00
2007-05-11 23:22:56 -07:00
2007-06-12 15:10:33 +03:00
2007-06-07 20:25:22 +02:00
2007-05-29 15:58:18 +03:00
2007-05-29 15:58:18 +03:00
2007-06-04 03:03:15 -07:00
2007-06-04 03:03:15 -07:00
2007-06-04 03:03:15 -07:00
2007-06-04 03:03:15 -07:00
2007-05-29 15:58:18 +03:00
2007-05-29 15:58:18 +03:00
2007-05-29 15:58:18 +03:00
2007-06-19 15:02:08 +04:00
2007-05-29 15:58:18 +03:00
2007-06-06 18:55:21 +05:00
2007-04-17 12:32:01 +02:00
2007-05-31 17:01:10 +05:00
2007-04-06 16:06:10 +05:00
2007-03-29 09:08:30 +05:00
2007-05-29 15:58:18 +03:00
2007-04-29 18:52:14 +05:00