1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-19 19:03:26 +03:00
Commit Graph

22780 Commits

Author SHA1 Message Date
Sergei Golubchik
f171d3ff79 commit_1innodb.test: update results from 5.6 2013-07-09 18:43:12 +02:00
unknown
8f56dc7203 Cought errors are not shown 2013-07-09 21:15:01 +03:00
Sergey Petrunya
56a6e71f9c Fix merge.test failure
- Problem: mysql_admin_table() calls open_temporary_tables(). This 
  causes assertion failure, because mysql_execute_command() has 
  already called open_temporary_tables()
- Solution: call close_thread_tables() at the start of 
  mysql_admin_table(), like mysql-5.6 does
2013-07-09 15:42:36 +04:00
Igor Babaev
0977734cee Fixed all remaining failures in partition tests.
Commented out the test case for bug 50036 as it was done in mysql-5.6.10.
2013-07-08 18:35:44 -07:00
Igor Babaev
f1848be746 Fixed a failure in partition_truncate.test. 2013-07-08 12:55:11 -07:00
Sergey Petrunya
66f1a848f4 Automatic merge 2013-07-08 18:15:50 +04:00
unknown
d82b512535 fixed result. 2013-07-08 19:11:57 +03:00
Sergey Petrunya
964d42631c Fix test failure in myisam.test:
- Put back the code tht produces the warning about 
  "Table storage engine %s does not support the create option 'TRANSACTIONAL=1'"
2013-07-08 18:14:24 +04:00
Sergey Petrunya
50dda403b7 Fix test errors like:
-Note 1031 Table storage engine for 't1' doesn't have this option
+Note 1031 Table storage engine for 'InnoDB' doesn't have this option

They were caused by a change in MariaDB which changed ER_ILLEGAL_HA message 
text to be like:
"Storage engine InnoDB of the table `test`.`t1` doesn't have this option"

Some the error calls were changed to pass new parameters, but some were left
to be old. Also the error text in errmsg-ut8.txt was not changed.
2013-07-08 12:57:58 +04:00
unknown
00ee44ab82 known results differences 2013-07-05 17:21:14 +03:00
unknown
aa6d8e4950 fixed result (error message and error message intercepting). 2013-07-05 17:06:02 +03:00
Sergey Petrunya
2ac068d7f4 Update test result: same as in 10.0 and maria (and mysql) 5.5 2013-07-05 14:00:17 +04:00
Sergey Petrunya
952fd3e873 Fix mysqldump.test: update test result 2013-07-05 11:23:18 +04:00
Sergey Petrunya
d0f8f02971 Update test result: PASSWORD(NULL) returns '' now. 2013-07-05 10:52:31 +04:00
Sergey Petrunya
590984f131 More test result updates, follow the previous cset 2013-07-05 10:44:06 +04:00
Sergey Petrunya
0e8b04d980 More test result updates:
- strict.test updated (changed back) after the cset with "Fix 
  type_newdecimal.test ..." two csets ago
- row-checksum.test changed the code from HA_WRONG_CREATE_OPTION 
  to ER_ILLEGAL_HA_CREATE_OPTION, like mysql-5.6 did
2013-07-05 10:40:45 +04:00
Sergey Petrunya
4a8c61f372 Fix a number of tests:
- MariaDB does not have mysql.slave_master_info, mysql.slave_relay_log_info ,mysql.slave_worker_info
  or mysql.ndb_binlog_index tables.
- Some tests expected to have these tables (this was an incorrect merge from 5.6, which merged 
  necessary tables like mysql.innodb*stats, but also got these tables)
2013-07-05 10:21:15 +04:00
Sergey Petrunya
de8be58b68 Automatic merge 2013-07-04 17:58:39 +04:00
Sergey Petrunya
1a15aaa9e7 Update log_tables.test: some definitions of columns have changed, and slow_log got 'thread_id' column. 2013-07-04 17:57:42 +04:00
Sergey Petrunya
a7a1b82268 Update test result for mysql-test/t/ctype_errors.test (checked) 2013-07-04 17:08:15 +04:00
Sergey Petrunya
1ff340ad17 Automatic merge 2013-07-04 15:46:53 +04:00
Sergey Petrunya
77584dd6d7 MDEV-4756: 10.0-monty tree: log_state.test fails
- make the test output stable
- make Log_to_csv_event_handler::log_slow() to write the value 
  of thd->thread_id (it didn't, and so 0 was always logged).
2013-07-04 15:45:58 +04:00
Sergey Petrunya
28082b0137 Update test results: handlersocket.test (approved by Serg) 2013-07-04 15:05:43 +04:00
Sergey Petrunya
5b19ff65b3 Update more test results (all checked). 2013-07-04 09:38:33 +04:00
Sergey Petrunya
c7020dfd70 Fix a number of trivial test failures by updating error message:
"Unknown table tbl" is now "Unknown table database.tbl"
(part#3)
2013-07-03 20:48:41 +04:00
Sergey Petrunya
b83c2bc688 Cont'd: Fix a number of trivial test failures by updating error message:
"Unknown table tbl" is now "Unknown table database.tbl"
2013-07-03 20:10:51 +04:00
Sergey Petrunya
2ca32f9747 Automatic merge 2013-07-03 20:05:05 +04:00
Michael Widenius
a9d1d76e5e Fixed issues with partitions and create temporary table SELECT ...
Merged all ddl_logging code.
Merged sql_partition.cc
innodb_mysql_lock2.test and partition_cache.test now works.
Changed interface to strconvert() to make it easier to use with not \0 terminated strings.

sql/sql_partition.cc:
  Full merge with 5.6
sql/sql_table.cc:
  Merged all ddl_logging code
sql/strfunc.cc:
  Added from_length argument to strconvert() to make it possible to use without end terminated strings.
sql/strfunc.h:
  Added from_length argument to strconvert() to make it possible to use without end terminated strings.
2013-07-03 22:50:34 +03:00
Sergey Petrunya
f335c36e27 Fix a number of trivial test failures by updating error message:
"Unknown table tbl" is now "Unknown table database.tbl"
2013-07-03 20:02:48 +04:00
Sergey Petrunya
e98bb64cbe MDEV-4750: (patch#2): undo previous attempts to stabilize
persistent table statistics with ANALYZE TABLE commands
2013-07-03 19:42:05 +04:00
Sergey Petrunya
9e5828f13f Fix test failure in mysql-test/t/type_bit_innodb.test
- Run ANALYZE TABLE after insert, like mysql-5.6 does.
2013-07-03 14:42:48 +04:00
Sergey Petrunya
bff40f3e0d Fix test failure for join_outer_innodb.test:
reuse the approach from vasil.dimov@oracle.com-20120521133620-glj6l0ntcsrz0wbl
run ANALYZE TABLE.
2013-07-03 14:24:56 +04:00
unknown
68262ba648 ps_ddl1.test fix 2013-07-03 10:22:19 +03:00
unknown
eed698e975 ps.test fixed 2013-07-03 10:19:47 +03:00
unknown
68daeda521 ps_1general fixed. 2013-07-03 10:18:22 +03:00
Michael Widenius
82a0b8ae30 strict.test now works. 2013-07-02 22:11:12 +03:00
Michael Widenius
99aae21ed2 mdl_sync now works.
mysql-test/r/mdl_sync.result:
  Full merge with 5.6
mysql-test/t/mdl_sync.test:
  Full merge with 5.6
sql/debug_sync.cc:
  Full merge with 5.6
sql/debug_sync.h:
  Full merge with 5.6
sql/mdl.cc:
  Full merge with 5.6
sql/sql_base.cc:
  Removed code not in 5.6 anymore
2013-07-02 20:43:35 +03:00
unknown
2fac162f39 correct result of the ps.tset 2013-07-01 11:31:18 +03:00
Michael Widenius
ecf9b1b754 Fixed some wrong format strings.
Fixed OPTIMIZE with innodb


include/my_sys.h:
  Removed ATTRIBUTE_FORMAT() as it gave warnings for %'s
sql/log_event.cc:
  Optimization: 
  use my_b_write() and my_b_write_byte() instead of my_b_printf()
  use strmake() instead of my_snprintf()
sql/sql_admin.cc:
  Fixed bug in admin_recreate_table()
  Fixed OPTIMIZE with innodb
sql/sql_table.cc:
  Indentation fixes
strings/my_vsnprintf.c:
  Changed fprintf() to fputs()
2013-06-28 01:53:41 +03:00
Michael Widenius
5f4e0e8767 Don't update table and index statics for temporary tables
Fixed type and testing of last_update type for innodb_table_stats

mysql-test/r/connect.result:
  Removed tables which are not created anymore
sql/item_sum.h:
  Fixed typo
sql/sql_base.cc:
  Don't update table and index statics for temporary tables
sql/sys_vars.cc:
  Merge
storage/innobase/dict/dict0stats.cc:
  Fixed type last_update to TIMESTAMP.
2013-06-22 18:47:12 +03:00
Michael Widenius
35bc8f9f43 Automatic merge 2013-02-15 14:18:09 +02:00
unknown
e648ff111a MDEV-537 Make multi-column non-top level subqueries to be executed via index (index/unique subquery)
instead of single_select_engine

This task changes the IN-EXISTS rewrite for multi-column subqueries
"(a, b) IN (select b, c ...)" to work in the same way as for
single-column subqueries "a IN (select b ...) with respect to the
injection of NULL-rejecting predicates.
 
More specifically, the method
Item_in_subselect::create_row_in_to_exists_cond()
adds Item_is_not_null_test and Item_func_trig_cond only if the left
IN operand can be NULL. Not having these predicates when not necessary,
makes it possible to rewrite the subquery into a "unique_subquery" or
"index_subquery" when there is a suitable index on the only
subquery table.
2013-02-07 15:33:24 +02:00
Sergei Golubchik
792d6b348c skip cassandra.test unless cassandra is running 2013-01-31 13:19:53 +01:00
Sergei Golubchik
ab83952f29 10.0-base merge 2013-01-31 09:48:19 +01:00
Sergei Golubchik
0af4b6c6ee 5.5 merge 2013-01-29 15:10:47 +01:00
unknown
f65e5841d7 Fix for MDEV-3948, and backport of the following collection of fixes and backports
from MariaDB 10.0.
  
The bug in mdev-3948 was an instance of the problem fixed by Sergey's patch
in 10.0 - namely that the range optimizer could change table->[read | write]_set,
and not restore it.
  
revno: 3471
committer: Sergey Petrunya <psergey@askmonty.org>
branch nick: 10.0-serg-fix-imerge
timestamp: Sat 2012-11-03 12:24:36 +0400
message:
  # MDEV-3817: Wrong result with index_merge+index_merge_intersection, InnoDB table, join, AND and OR conditions
  Reconcile the fixes from:
  #
  # guilhem.bichot@oracle.com-20110805143029-ywrzuz15uzgontr0
  # Fix for BUG#12698916 - "JOIN QUERY GIVES WRONG RESULT AT 2ND EXEC. OR
  # AFTER FLUSH TABLES [-INT VS NULL]"
  #
  # guilhem.bichot@oracle.com-20111209150650-tzx3ldzxe1yfwji6
  # Fix for BUG#12912171 - ASSERTION FAILED: QUICK->HEAD->READ_SET == SAVE_READ_SET
  # and
  #
  and related fixes from: BUG#1006164, MDEV-376:
  
  Now, ROR-merged QUICK_RANGE_SELECT objects make no assumptions about the values
  of table->read_set and table->write_set.
  Each QUICK_ROR_SELECT has (and had before) its own column bitmap, but now, all 
  QUICK_ROR_SELECT's functions that care: reset(), init_ror_merged_scan(), and 
  get_next()  will set table->read_set when invoked and restore it back to what 
  it was before the call before they return.

  This allows to avoid the mess when somebody else modifies table->read_set for 
  some reason.
2013-01-28 15:13:39 +02:00
Sergei Golubchik
87de27e46b 5.3 merge 2013-01-28 13:36:05 +01:00
Sergei Golubchik
34e84c227f 5.2 merge 2013-01-28 09:12:23 +01:00
Sergei Golubchik
0791692bdc MDEV-3875 Wrong result (missing row) on a DISTINCT query with the same subquery in the SELECT list and GROUP BY
fix remove_dup_with_hash_index() and remove_dup_with_compare() to take NULLs into account
2013-01-26 22:33:18 +01:00
Sergei Golubchik
e400450f2d 5.1 merge 2013-01-25 17:22:21 +01:00