Commit graph

78780 commits

Author SHA1 Message Date
Andrew McDonnell
6e97d93c13 Test case for lp:1133093 order by seq crash 2013-08-15 23:25:56 +09:30
Andrew McDonnell
3723b5bfb7 Test results for 1134355 2013-08-15 23:25:17 +09:30
Andrew McDonnell
590e09696d Fix memory leak introduced in the fix for lp:1196020. oops. Caused by not freeing found cursor in find_vertices() function. 2013-08-15 23:22:20 +09:30
Andrew McDonnell
fe1afa655f Change table option struct to use const as per ha_example.cc 2013-08-15 23:21:20 +09:30
Andrew McDonnell
85a135e653 Change table option struct to use const as per ha_example.ccx 2013-08-15 23:20:16 +09:30
Andrew McDonnell
a09a199ee2 Disable ALTER for oqgraph. Fixes crash caused by 1134355. 2013-08-15 23:17:06 +09:30
Andrew McDonnell
9d928a5f57 Disable ALTER for oqgraph. Fixes crash caused by 1134355. 2013-08-15 23:15:15 +09:30
Andrew McDonnell
d65e6ba6d7 Disable ALTER for oqgraph. Fixes crash caused by 1134355. 2013-08-15 23:14:25 +09:30
Andrew McDonnell
6bcf87db73 Change table option struct to use const as per ha_example.cc 2013-08-15 23:04:10 +09:30
Andrew McDonnell
aed2ffdbe0 Disable ALTER for oqgraph. Fixes crash. 2013-08-15 22:58:36 +09:30
Andrew McDonnell
f69f62741a Disable ALTER for oqgraph. Fixes crash. 2013-08-15 22:54:14 +09:30
Sergey Vojtovich
df3bedb82d MDEV-4864 - Merge tests for EXCHANGE PARTITION feature
Added partition_exchange test.

Do not set HA_OPTION_PACK_RECORD for InnoDB specific row formats
(e.g. COMPACT, REDUNDANT). Adjusted mysql_compare_tables() accordingly.
2013-08-15 16:45:29 +04:00
Alexander Barkov
c6d9c36f2c An additional test for MDEV-4871 Temporal literals do not accept nanoseconds 2013-08-15 15:32:18 +04:00
Alexander Barkov
e9ca686137 MDEV-4871 Temporal literals do not accept nanoseconds 2013-08-15 15:24:34 +04:00
Sergei Golubchik
3462b6d3d2 fix tests that were relying on @@have_partitioning
sql/sql_partition_admin.cc:
  compilation failures w/o partitioning
2013-08-15 10:47:18 +02:00
Alexander Barkov
18fc51f5a4 Merge with 10.0-connect 2013-08-15 13:31:49 +04:00
Sergei Golubchik
51e2806661 raise a version 2013-08-14 18:56:41 +02:00
Olivier Bertrand
0993d4b4f5 - Change the Blanks parameter from true to false in catalog getting
information function. This solve the problem of uninitialised zone
  that was detected by valgrind.

modified:
  storage/connect/myconn.cpp
  storage/connect/odbconn.cpp
  storage/connect/tabfmt.cpp
  storage/connect/tabutil.cpp
  storage/connect/tabwmi.cpp
2013-08-14 16:07:32 +02:00
Sergey Vojtovich
f3d26cb1a7 Adjusted test results after recent changes. 2013-08-14 12:50:17 +04:00
Sergey Vojtovich
b7f9c89423 MDEV-4702 - Reduce usage of LOCK_open
Following variables do not require LOCK_open protection anymore:
- table_def_cache (renamed to tdc_hash) is protected by rw-lock
  LOCK_tdc_hash;
- table_def_shutdown_in_progress doesn't need LOCK_open protection;
- last_table_id use atomics;
- TABLE_SHARE::ref_count (renamed to TABLE_SHARE::tdc.ref_count)
  is protected by TABLE_SHARE::tdc.LOCK_table_share;
- TABLE_SHARE::next, ::prev (renamed to tdc.next and tdc.prev),
  oldest_unused_share, end_of_unused_share are protected by
  LOCK_unused_shares;
- TABLE_SHARE::m_flush_tickets (renamed to tdc.m_flush_tickets)
  is protected by TABLE_SHARE::tdc.LOCK_table_share;
- refresh_version (renamed to tdc_version) use atomics.
2013-08-14 12:48:50 +04:00
Olivier Bertrand
f772ed74d0 - FIX MDEV-4853 + another bug causing the whole section to be deleted
when deleting one key of a INI table with layout=Row. The same happens
  for layout=column but this is normal as one line is one section.

modified:
  storage/connect/tabsys.cpp

- Should fix a valgrind warning in CHRBLK::GetValPtrEx

modified:
  storage/connect/valblk.cpp
2013-08-13 18:53:14 +02:00
Sergei Golubchik
b882a3e83e MDEV-4492 InnoDB generates non-existing link to manual based on the server version 2013-08-13 16:02:10 +02:00
Sergei Golubchik
fcf87600a2 MDEV-4865 Change related to --log option/variable was merged partially
Complete the merge of magne.mahre@oracle.com-20101102115354-vxcaxminmzglzalk
(WL#5185 Remove deprecated 5.1 features)
2013-08-13 13:35:36 +02:00
Sergei Golubchik
a6617eb341 MDEV-4786 merge 10.0-monty -> 10.0
remove unused HA_READ_OUT_OF_SYNC
2013-08-12 22:08:25 +02:00
Sergei Golubchik
a91a23858d cleanup
* use sql_mode_for_dates() where appropriate.
* always specify an argument for sql_mode_for_dates()
  (future-proof. easier to notice and fix if the caller
   will start using thd from a local variable or an argument)
2013-08-12 22:05:23 +02:00
Olivier Bertrand
bce59293fb -Fix MDEV-4878. Table locking is now supported.
modified:
  storage/connect/ha_connect.cc
  storage/connect/ha_connect.h
  storage/connect/plgdbsem.h

- Fiw a bug making records_in_range sometimes return a negative
  value.

modified:
  storage/connect/xindex.cpp
2013-08-12 21:51:56 +02:00
Sergei Golubchik
847e0f152b MDEV-4786 merge 10.0-monty -> 10.0
remove unused HA_CAN_EXPORT
(with the merge of "FLUSH TABLE <table_list> FOR EXPORT",
this functionality should be added back, but differently -
no table flag, handler::extra() returns an error instead)
2013-08-12 21:27:43 +02:00
Sergei Golubchik
8f0ccf7827 MDEV-4786 merge 10.0-monty -> 10.0
remove unused HA_BLOCK_CONST_TABLE
2013-08-12 21:07:10 +02:00
Sergei Golubchik
62b658a405 MDEV-4786 merge 10.0-monty -> 10.0
remove half-applied "Bug#14521864: MYSQL 5.1 TO 5.5 BUGS PARTITIONING"
2013-08-12 20:56:35 +02:00
Sergei Golubchik
23b4ccde8b MDEV-4786 merge 10.0-monty -> 10.0
fix simple_rename_or_index_change() to reuse alter_table_manage_keys()
2013-08-12 18:32:53 +02:00
Sergei Golubchik
5dd28db253 don't error out in Sys_var::global_value_ptr(),
it's not nice when unconfigured gtid prevents SHOW VARIABLES from working
2013-08-12 16:02:20 +02:00
Sergei Golubchik
9747fbb411 MDEV-4786 merge 10.0-monty -> 10.0
remove TDC_RT_REMOVE_NOT_OWN_AND_MARK_NOT_USABLE
2013-08-12 15:46:35 +02:00
Sergei Golubchik
eafb11c821 MDEV-4786 merge 10.0-monty -> 10.0
use get_table_def_key() instead of create_table_def_key() where appropriate
2013-08-12 14:17:51 +02:00
unknown
055e9cb49c Fix bug MDEV-4885: When performance schema is disabled, autosized parameters show 18446744073709551615 instead of -1
(patch by Serg)
2013-08-12 17:21:52 +03:00
Andrew McDonnell
1c89a75dbc Fix one memory leak (caused by not freeing found cursor in find_vertices) (introduced in fix for #1196020, doh) 2013-08-12 21:44:55 +09:30
Olivier Bertrand
8b3e07e15b - Fix MDEV-4494. Suppress the flag HA_NULL_IN_KEY.
modified:
  storage/connect/ha_connect.h
2013-08-11 17:46:59 +02:00
Olivier Bertrand
af9e618289 - Fix MDEV-4881. SQL_TYPE_DECIMAL was not recognized in ha_connect::GetColumnOption.
Crash on second SELECT was because tshp was not reset to NULL in case of error.

modified:
  storage/connect/ha_connect.cc
  storage/connect/tabutil.cpp
2013-08-11 14:21:38 +02:00
Andrew McDonnell
778bf10fa3 Fix const correctness as per ha_example.cc, but doesnt fix bug. 2013-08-11 00:31:12 +09:30
Andrew McDonnell
8fceadc73b Updated regression test to force repeat of 1134355. A 'fix' in sql_table, causes assertion in ha_oqgraph 2013-08-11 00:30:55 +09:30
Andrew McDonnell
25f1875edf Tests cleanup 2013-08-10 21:04:53 +09:30
Andrew McDonnell
8074860a3b Properly handle is null 2013-08-10 20:50:11 +09:30
Andrew McDonnell
a4ab3fc633 Test cleanup 2013-08-10 20:49:50 +09:30
Andrew McDonnell
56d3c792af Deal with properly 2013-08-10 20:34:20 +09:30
Andrew McDonnell
dedd51e497 Reduce debug verbosity 2013-08-10 20:15:11 +09:30
Andrew McDonnell
69ca634663 Deal with properly 2013-08-10 20:13:20 +09:30
Andrew McDonnell
92d4ccbc81 Testharnesses 2013-08-10 18:56:33 +09:30
Andrew McDonnell
653659fa98 test harness for isnull behaviour 2013-08-10 18:55:04 +09:30
Olivier Bertrand
8bd158c10d - Better message for CONNECT unspported commands
modified:
  storage/connect/ha_connect.cc
2013-08-09 18:53:40 +02:00
Olivier Bertrand
5d75457fc9 - Implement the SERVID special columns. This imply modifying the way
special columns are processed. This will be documented.
  Also some code cleanup and some changes to prepare the indexing of
  nullable columns (not achieve yet)

modified:
  storage/connect/colblk.cpp
  storage/connect/colblk.h
  storage/connect/connect.cc
  storage/connect/connect.h
  storage/connect/ha_connect.cc
  storage/connect/ha_connect.h
  storage/connect/macutil.cpp
  storage/connect/mycat.cc
  storage/connect/plgdbsem.h
  storage/connect/reldef.cpp
  storage/connect/reldef.h
  storage/connect/table.cpp
  storage/connect/tabmysql.cpp
  storage/connect/tabmysql.h
  storage/connect/tabodbc.h
  storage/connect/tabtbl.cpp
  storage/connect/tabutil.h
  storage/connect/value.h
  storage/connect/xindex.cpp
  storage/connect/xindex.h
  storage/connect/xtable.h
2013-08-09 18:02:47 +02:00
Andrew McDonnell
3408a6c5f1 Clean up test case 2013-08-09 22:31:25 +09:30