Commit graph

59287 commits

Author SHA1 Message Date
unknown
698cebb677 Merge Sanja's fix of BUG#39249 into MariaDB 5.1.38 release clone. 2009-10-09 12:18:49 +02:00
unknown
e702b70d67 Implement mysqltest --enable_prepare_warnings to properly fix some test failures.
The --enable_prepare_warnings allows to not discard warnings from autorepair
of crashed table in --ps-protocol mode.

Use this to properly fix the parts.partition_recover_myisam and
maria.maria-recover tests.

Add a test case for the new feature. This also adds missing test coverage
for the case where the same warning is thrown in both prepare and execute
phase.


client/mysqltest.cc:
  Implement new commands --enable-prepare_warnings and --disable_prepare_warnings.
mysql-test/r/mysqltest_ps.result:
  Add test case for new --enable_prepare_warning mysqltest command.
mysql-test/suite/maria/t/maria-recover.test:
  Better fix of test case using new --enable_prepare_warnings command.
mysql-test/suite/parts/t/partition_recover_myisam.test:
  Fix test failure in --ps-protocol mode.
mysql-test/t/mysqltest_ps.test:
  Add test case for new --enable_prepare_warning mysqltest command.
2009-10-09 10:09:24 +02:00
Sergey Petrunya
fcb97aa7af Fix make_win_bin_dist:
- Include maria_chk and other maria binaries
- Include sql/$TARGET/mysqld.lib, like mainline does (but what is that useful for?)
- Don't include my_safe_{process,kill} garbage.
- call '/bin/find', not just 'find' is that is some incompatible windows command.
2009-10-09 01:01:03 +04:00
Sergey Petrunya
87de323cb4 Include configure-mariadb.sh in source tarball 2009-10-08 23:11:48 +04:00
Sergey Petrunya
2433da4718 Added win/configure-mariadb.sh - the standard way to configure on Windows. 2009-10-08 23:04:12 +04:00
unknown
0d827917be Revert change of package name in configure.in, as it breaks too much stuff. 2009-10-08 11:43:31 +02:00
unknown
ece15c313a Merge. 2009-10-08 00:59:07 +02:00
unknown
68602b939b Fixes for package name change mysql -> mariadb.
- Don't need any m1 prefix for the first release based on given MySQL
   version number.

 - Fix mysql-test-run to understand that some stuff is installed under
   share/mariadb rather than share/mysql.
2009-10-08 00:57:43 +02:00
Sergey Petrunya
538d689f11 MBUG#442254: mysql-test-run --embedded fails on Windows with: ERROR: .opt file references 'EXAMPLE_PLUGIN_OPT'
- Fix suggested by Kristian on review: ignore the test using mtr's facilities
2009-10-08 01:29:04 +04:00
Sergey Petrunya
d1d978ddc4 Fix win/configure.js: now configure.in has AM_INIT_AUTOMAKE(mariadb, ...)
- Part 2. make it really work.
2009-10-08 01:00:29 +04:00
Sergey Petrunya
56841aced4 Fix win/configure.js: now configure.in has AM_INIT_AUTOMAKE(mariadb, ...) 2009-10-07 21:26:36 +04:00
Sergey Petrunya
9d58141cdc Fix pbxt test suite failures:
- Update EXPLAIN results after table elimination
- mysqlslap now specifies 'Engine=' in CREATE TABLE instead of using 
  SET storage_engine=...
- For some reason, mysqltest logs "connect" command differently when PBXT
  is the default storage engine. This is probably a bug in mysqltest which
  we can't be bothered to investigate at the moment, so add --replace

mysql-test/suite/pbxt/r/connect.result:
  Fix pbxt test suite failures:
  - For some reason, mysqltest logs "connect" command differently when PBXT
    is the default storage engine. This is probably a bug in mysqltest which
    we can't be bothered to investigate at the moment, so add --replace
mysql-test/suite/pbxt/r/mysqlslap.result:
  Fix pbxt test suite failures:
  - mysqlslap now specifies 'Engine=' in CREATE TABLE instead of using 
    SET storage_engine=...
mysql-test/suite/pbxt/r/ps_11bugs.result:
  Fix pbxt test suite failures:
  - Update EXPLAIN results after table elimination
mysql-test/suite/pbxt/r/select.result:
  Fix pbxt test suite failures:
  - Update EXPLAIN results after table elimination
mysql-test/suite/pbxt/r/union.result:
  Fix pbxt test suite failures:
  - Update EXPLAIN results after table elimination
mysql-test/suite/pbxt/t/connect.test:
  Fix pbxt test suite failures:
  - For some reason, mysqltest logs "connect" command differently when PBXT
    is the default storage engine. This is probably a bug in mysqltest which
    we can't be bothered to investigate at the moment, so add --replace
2009-10-07 20:56:11 +04:00
unknown
fd3333c18b Merge Arjen's fix for new slow log functionality. 2009-10-07 15:15:59 +02:00
Arjen Lentz
49e212374e Fix log_slow_filter/log_slow_verbosity code typos (Monty?) 2009-10-07 23:07:10 +10:00
unknown
e244cdaf0c Change naming of our package to mariadb rather than mysql. 2009-10-07 13:48:58 +02:00
unknown
99ff6ada7b comment added 2009-10-07 13:02:43 +03:00
unknown
ed40801d9d Fix test case partition_recover_myisam for --embedded-server. 2009-10-07 09:57:48 +02:00
unknown
eebb0da333 Add missing PBXT windows file to make dist. 2009-10-07 09:40:56 +02:00
unknown
3bc025506b Fix make dist after CMakeLists.txt rename in previous push. 2009-10-06 20:26:11 +02:00
unknown
228ee84ed3 Fix events_time_zone.test to be skipped for embedded (no event scheduler in embedded server) 2009-10-06 20:15:09 +02:00
unknown
445ad6bd37 Merge fixes for --big tests and compiler warnings. 2009-10-06 20:05:49 +02:00
Sergey Petrunya
1d6e50c6d6 Fix PBXT build on windows by backporting some of their changes (under advise of Vlad Kolesnikov):
- Adjust CMakeLists.txt to follow latest mysql's expectations about plugins
- Add typecasts
- wrap pbms_enabled.cc in #ifdef
2009-10-06 19:16:01 +04:00
unknown
d8049a62ff merge 2009-10-06 17:53:46 +03:00
unknown
5c7232af15 Make sure that partition tests are included in mysql-test-run by default. 2009-10-06 16:02:53 +02:00
unknown
09ab8f348f Fix test failures in innodb-index and partition_special_*:
- innodb-index needs regexp replace for embedded like other similar tests.

 - partitions_special_* need to be modified for the extension from 16 to 32
   max key parts allowed that was made in MariaDB.
2009-10-06 13:39:57 +02:00
unknown
0c0e1f2e35 BUG#39249 Maria:query cache returns out of date results
BUG#41098 Query Cache returns wrong result with concurent insert

BUILD/SETUP.sh:
  test build without query cache setup
BUILD/compile-pentium-debug-max-no-qc:
  test build without query cache
sql/mysql_priv.h:
  removed double declaration
storage/maria/ha_maria.cc:
  query cache invalidation fixed
storage/maria/ma_state.c:
  query cache invalidation fixed
storage/maria/maria_def.h:
  last transaction ID added
  invalidation fixed
storage/myisam/ha_myisam.cc:
  invalidation fixed
storage/myisam/mi_locking.c:
  invalidation fixed
storage/myisam/myisamdef.h:
  invalidation fixed
2009-10-06 09:57:22 +03:00
unknown
8a970cb076 Fix broken --vs-config option of mysql-test-run.pl. 2009-10-06 08:46:45 +02:00
unknown
d64dc0c827 MBug#443092: test cases mysql and mysql_upgrade fails with wildcard DNS
When DNS is not working and returns some address even for non-existing
host names, some test cases fail with wrong error.

Fix by disabling these tests on such systems.
2009-10-05 15:22:23 +02:00
Sergey Petrunya
a9e0f792f5 Fix a problem in windows build introduced a few csets ago (in
"Merge Monty's fixes from main into release branch" .. cset):
- mysql_get_server_name() is a new client API function and so should
  be exported from libmysql[d].

libmysql/libmysql.def:
  mysql_get_server_name() is a new client API function and so should
  be exported from libmysql[d].
libmysqld/libmysqld.def:
  mysql_get_server_name() is a new client API function and so should
  be exported from libmysql[d].
2009-10-05 02:22:57 +04:00
unknown
02c33646b3 Test suite fixes:
- Don't omit the @@debug variable from testcase check, since it can cause real problems.
 - Fix some bad merges by reverting to be identical to MySQL 5.1.

mysql-test/include/mtr_check.sql:
  Don't omit the @@debug variable from testcase check, since it can cause real problems.
mysql-test/r/mysqlbinlog_row_big.result:
  Fix incorrect merge.
mysql-test/r/variables-big.result:
  Fix incorrect merge, by reverting to MySQL 5.1 version.
mysql-test/t/mysqlbinlog_row_big.test:
  Fix incorrect merge.
mysql-test/t/variables-big.test:
  Fix incorrect merge, by reverting to MySQL 5.1 version.
2009-10-04 01:20:51 +02:00
unknown
59f80387ba Fix some compiler warnings cause by GCC bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29478
storage/maria/ma_blockrec.c:
  GCC warns about const vs. non-const despite cast
  (but it is in any case cleaner to avoid the cast completely)
support-files/compiler_warnings.supp:
  Silence a wrong compiler warning caused by GCC bug.
2009-10-03 22:13:58 +02:00
Sergey Petrunya
d1ad1bdc0f Fix embedded build on Windows: contents of storage/xtradb think they are
'innobase'.
2009-10-03 23:24:13 +04:00
unknown
22a9f9b243 Fix merge-big.test to properly restore debug settings.
Otherwise following tests go crazy in the log, writing gigabytes of data
and causing havoc.
2009-10-03 21:12:24 +02:00
Sergey Petrunya
37c6613e15 Merge 2009-10-03 23:02:31 +04:00
Sergey Petrunya
e60a48b011 Fix mysql-test-run --embedded:
- Don't run testcase for BUG#45632 with embedded server.
2009-10-03 22:56:54 +04:00
unknown
3e052e0f4a Merge Monty's fixes from main into release branch.
- MariaDB naming.
 - Error reporting with mysqld --help --verbose.
2009-10-02 14:55:16 +02:00
unknown
ef639e9d2c Add missing windows files to make dist. 2009-10-02 14:53:05 +02:00
Michael Widenius
820c4902a9 Fixed typo 2009-10-02 14:56:11 +03:00
Michael Widenius
cbf16194ca When using --help --verbose give error and abort if there are any unknown options
mysql-test/r/mysqld_option_err.result:
  Test that mysqld --not-known-option --help --verbose gives error
mysql-test/t/mysqld_option_err.test:
  Test that mysqld --not-known-option --help --verbose gives error
2009-10-02 14:09:01 +03:00
Michael Widenius
f77e2692dc Added client functions:
- mysql_get_server_name()
  This returns MySQL or MariaDB depending on the server type
- mariadb_connection()
  This returns 1 if you are connected to a MariaDB server

Modifed the MySQL command line client to print out if you are connected to MariaDB or MySQL
Better default prompt (shows server you are connected to and base directory)

client/mysql.cc:
  Print out if you are connected to MariaDB or MySQL
  Better default prompt (shows server you are connected to and base directory)
  Added option \N to prompt to print server name.
configure.in:
  Changed maria to MariaDB in version string
include/mysql.h:
  Added mysql_get_server_name() and mariadb_connection()
include/mysql.h.pp:
  Update for new API functions
libmysql/libmysql.c:
  Added client functions:
  - mysql_get_server_name()
    This returns MySQL or MariaDB depending on the server type
  - mariadb_connection()
    This returns 1 if you are connected to a MariaDB server
2009-10-02 13:36:28 +03:00
unknown
0e90c84826 Add a simple way to robustly get the name of the generated source tarball, so as to not
to have to rely on fragile regexp-parsing of configure.in.
2009-10-02 11:40:03 +02:00
Sergey Petrunya
b883abd675 Temporary solution: skip PBXT (like we do e.g. for --skip-innodb) in embedded
server, as it doesn't work there.

sql/sql_plugin.cc:
  Temporary solution: skip PBXT (like we do e.g. for --skip-innodb) in embedded server, as it doesn't work there.
2009-10-02 01:27:39 +04:00
Sergey Petrunya
016ea0c5e3 Fix embedded server windows build: add opt_table_elimination.cc to list of files 2009-10-01 14:46:59 +04:00
unknown
7bf7a43712 Add environment variable MTR_EXTRA_OPTIONS to influence make test* targets.
This allows to eg use --mem or --parallel for better performance on big boxes.
2009-09-30 14:45:03 +02:00
unknown
af3dbb6898 Merge autotools fixes to be able to build with builddir != srcdir.
Author: Peter Lieverdink
2009-09-30 13:28:01 +02:00
unknown
cadcc55bab Completely disable the innodb plugin.
Don't ever build it, and don't include it in source tarballs.
(we keep the sources in bzr to not get conflicts on every upstream change).
2009-09-30 09:25:12 +02:00
unknown
0f502cc5d9 Apply patch from Bug#46010.
This is needed to fix failures seen in Buildbot (main.ctype_gbk_binlog).
Problem is that some tests did not RESET MASTER, causing them to pick up random
binlog files depending on prior tests.
2009-09-30 08:35:31 +02:00
Peter Lieverdink
157fa0bb8d Used the correct path to the bundled libevent includes. 2009-09-30 09:36:15 +10:00
Peter Lieverdink
9f3e98b7ae Make sure to use the correct location for config.h when generating event-config.h 2009-09-30 09:00:57 +10:00
Peter Lieverdink
e4ee17b4a8 Look for libreadline in the light location on *both* tests. 2009-09-30 08:50:10 +10:00