mariadb/storage
Jacob Mathew d6594847cf MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone.
The problem occurred because the Spider node was incorrectly handling
timestamp values sent to and received from the data nodes.

The problem has been corrected as follows:
- Added logic to set and maintain the UTC time zone on the data nodes.
  To prevent timestamp ambiguity, it is necessary for the data nodes to use
  a time zone such as UTC which does not have daylight savings time.
- Removed the spider_sync_time_zone configuration variable, which did not
  solve the problem and which interfered with the solution.
- Added logic to convert to the UTC time zone all timestamp values sent to
  and received from the data nodes.  This is done for both unique and
  non-unique timestamp columns.  It is done for WHERE clauses, applying to
  SELECT, UPDATE and DELETE statements, and for UPDATE columns.
- Disabled Spider's use of direct update when any of the columns to update is
  a timestamp column.  This is necessary to prevent false duplicate key value
  errors.
- Added a new test spider.timestamp to thoroughly test Spider's handling of
  timestamp values.

Author:
  Jacob Mathew.

Reviewer:
  Kentoku Shiba.

Merged:
  Commit 97cc9d3 on branch bb-10.3-MDEV-16246
2018-07-24 15:57:13 -07:00
..
archive Merge remote-tracking branch 'origin/10.3' into 10.4 2018-07-03 14:02:05 +04:00
blackhole Added "const" to new data for handler::update_row() 2017-04-18 12:23:53 +03:00
cassandra Added name to MEM_ROOT for esier debugging 2018-02-02 11:08:36 +02:00
connect Merge remote-tracking branch 'origin/10.3' into 10.4 2018-07-03 14:02:05 +04:00
csv Merge remote-tracking branch 'origin/10.3' into 10.4 2018-07-03 14:02:05 +04:00
example Changed static const in Alter_info and Alter_online_info to defines 2018-03-29 13:59:40 +03:00
federated Merge branch '10.2' into 10.3 2018-06-30 16:39:20 +02:00
federatedx Merge branch '10.2' into 10.3 2018-06-30 16:39:20 +02:00
heap Merge branch '10.2' into 10.3 2018-06-30 16:39:20 +02:00
innobase Merge remote-tracking branch 'origin/10.3' into 10.4 2018-07-03 14:02:05 +04:00
maria Merge remote-tracking branch 'origin/10.3' into 10.4 2018-07-03 14:02:05 +04:00
mroonga MDEV-11953: support of brackets in UNION/EXCEPT/INTERSECT operations 2018-07-04 19:13:55 +02:00
myisam Merge remote-tracking branch 'origin/10.3' into 10.4 2018-07-03 14:02:05 +04:00
myisammrg Follow-up for be6ae0bb6b - fix test results 2018-05-19 14:23:06 +03:00
oqgraph Merge 10.2 into 10.3 2018-04-24 20:59:57 +03:00
perfschema Merge branch '10.2' into 10.3 2018-05-11 13:15:10 +02:00
rocksdb MDEV-11953: support of brackets in UNION/EXCEPT/INTERSECT operations 2018-07-04 19:13:55 +02:00
sequence Changing field::field_name and Item::name to LEX_CSTRING 2017-04-23 22:35:46 +03:00
sphinx MDEV-14630 Replace {STRING|INT|REAL|DECIMAL|DATE}_ITEM to CONST_ITEM 2018-06-06 14:09:06 +04:00
spider MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone. 2018-07-24 15:57:13 -07:00
test_sql_discovery Merge bb-10.2-ext into 10.3 2017-09-21 08:12:19 +03:00
tokudb MDEV-11953: support of brackets in UNION/EXCEPT/INTERSECT operations 2018-07-04 19:13:55 +02:00