Commit graph

178205 commits

Author SHA1 Message Date
Alexander Barkov
9b74b00c8e Adding the "const" qualified to the LEX_CSTRING parameter of a few check_xxx() functions
Functions:
check_routine_name()
check_string_byte_length()
check_string_char_length()
check_ident_length()
2017-08-04 14:41:05 +04:00
Alexander Barkov
68bc777830 Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext 2017-08-01 15:37:01 +04:00
Alexander Barkov
9372f6e526 MDEV-13419 Cleanup for Sp_handler::show_create_sp 2017-08-01 12:04:14 +04:00
Alexander Barkov
c9218ff439 MDEV-13415 Wrap the code in sp.cc into a class Sp_handler 2017-07-31 23:00:02 +04:00
Alexander Barkov
4937474f86 MDEV-13414 Fix the SP code to avoid excessive use of strlen 2017-07-31 17:34:59 +04:00
Sergei Petrunia
488f46f3de MDEV-13153: Assertion ... failed on partitioned RocksDB table
ha_partition creates temporary ha_XXX objects for its partitions when
performing DDL operations. The objects were created on a MEM_ROOT and
never deleted.
This works as long as ha_XXX objects free all data ha_XXX::close() and
don't rely on a proper destructor invocation. Unfortunately, ha_rocksdb
includes String members which need to be delete'd properly.

Fixed the bug by having ha_partition::~ha_partition delete these temporary
objects.
2017-07-28 13:22:28 +00:00
Alexander Barkov
716898755a Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext 2017-07-28 12:47:20 +04:00
Alexander Barkov
8c0129dc32 MDEV-13396 Unexpected "alter routine comand defined" during CREATE OR REPLACE PROCEDURE 2017-07-28 12:30:30 +04:00
Alexander Barkov
4fc1f2fb75 Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext 2017-07-22 22:48:45 +04:00
Alexander Barkov
23290e42e3 Merge commit 'e2afdb1ee430cb9d030aeeedc85eb903cda5e5d1' into bb-10.2-ext 2017-07-21 23:38:30 +04:00
Sergei Petrunia
2a1035b004 MDEV-13351: Server crashes in st_select_lex::set_explain_type upon UNION with window function
Make st_select_lex::set_explain_type() take into account that JOIN_TABs
it is traversing may be also post-join aggregation JOIN_TABs (which
have pos_in_table_list=NULL, etc).
2017-07-21 20:09:19 +03:00
Sergei Petrunia
e2afdb1ee4 MDEV-13344: Server crashes in in AGGR_OP::put_record on subquery
Add a testcase
2017-07-21 19:06:01 +03:00
Sergei Petrunia
17fc288b30 MDEV-13352: Server crashes in st_join_table::remove_duplicates
Do not run the window function computation step when the select
produces no rows (zero_result_cause!=NULL).
This may cause reads from uninitialized memory.

We still need to run the window function computation step when
the output includes just one row  (for example
SELECT MAX(col), RANK() OVER (...) FROM t1 WHERE 1=0).

This fix also resolves an issue with queries with window functions
producing an output row where should be none, like in
SELECT ROW_NUMBER() FROM t1 WHERE 1=0.

Updated a few test results in the existing tests to reflect this.
2017-07-21 13:53:58 +03:00
Alexander Barkov
34668e10b2 Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext 2017-07-19 14:45:54 +04:00
Elena Stepanova
d1af417eb8 Postfix for MDEV-12619 - test results adjusted 2017-07-18 13:51:12 +03:00
Elena Stepanova
442a6f61f5 Postfix for 74891ed257 - test result adjusted 2017-07-18 13:50:26 +03:00
Alexander Kuleshov
bc75c57cfc update .gitignore
during build on 10.2 following files are generated:

  * scripts/galera_new_cluster
  * scripts/galera_recovery
  * support-files/mariadb.service
  * support-files/mariadb.pp

and they are untracked for git. Let's add them to .gitignore
2017-07-17 22:24:24 +04:00
Vladislav Vaintroub
013595f56f MDEV-13332 mariabackup from 10.2.x crashes with --ftwrl-* options
Fixed null pointer dereference in parsing "show full processlist" output
with atoi().

Some  Innodb background thread has NULL in 'Time' column,
thus  backup would crash with when atoi is applied to null pointer.
2017-07-17 17:05:06 +00:00
Sergei Golubchik
1b3cf18e4e CONNECT: accessed p[i] outside of the loop
this failed json.test on fulltest2 builder
2017-07-15 19:36:43 +02:00
Sergei Golubchik
95dcfeded4 deb packages didn't build
because they compile with -Werror=format-security
2017-07-13 19:19:43 +02:00
Sergei Golubchik
b9aab7d9e3 Merge branch 'connect/10.2' into 10.2 2017-07-13 10:33:24 +02:00
Sergei Golubchik
a76c05bba0 Require either OpenSSL 1.0 or 1.1 on Debian 2017-07-13 09:14:17 +02:00
Sergei Golubchik
7fc75c420a fix compilation with OpenSSL 1.1 2017-07-13 09:14:17 +02:00
Alexander Barkov
daec000450 Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext 2017-07-12 22:54:49 +04:00
Alexander Barkov
0f348bcd96 MDEV-13302 Avoid using LEX::spname during CREATE PROCEDURE and CREATE FUNCTION 2017-07-12 22:51:06 +04:00
Vicențiu Ciorbaru
1d730ac42d Rename mariadb-backup-10.2.files to mariadb-backup-10.2.install
.files extension is not used by debian packaging, .install is.
2017-07-12 21:41:29 +03:00
Varun Gupta
9b4d281ecd MDEV-13826: Floating point exception in Filesort_tracker::print_json_members(Json_writer*)
Whenever Filesort_tracker has r_loops=0, r_ouptut_rows would be 0, so we should add the value zero
to the member "r_output_rows" explicitly
2017-07-12 19:46:44 +05:30
Daniel Bartholomew
52a5bfa078 bump the VERSION 2017-07-12 09:42:21 -04:00
Alexander Barkov
7c3df72d0a MDEV-13298 Change sp_head::m_chistics from a pointer to a structure 2017-07-12 11:57:47 +04:00
Alexander Barkov
31b3511849 Fixing a type-clash bison warning in keyword_directly_not_assignable
The warning was introduced by the patch that added
the keyword_sp_verb_clause rule.
2017-07-11 16:16:11 +04:00
Alexander Barkov
59350ce076 MDEV-13292 Move the code from sp_head::init() to sp_head::sp_head() 2017-07-11 15:10:25 +04:00
Daniel Black
3904014ed3 MDEV-13288: Travis dependency cracklib-runtime 2017-07-11 13:27:34 +04:00
Alexander Barkov
42cb3dcb74 (partial) MDEV-12518 Unify sql_yacc.yy and sql_yacc_ora.yy
Adding keyword_sp_verb_clause into sql_yacc.yy and sql_yacc_ora.yy
2017-07-10 12:24:58 +04:00
Alexander Barkov
77ace5dbd1 (partial) MDEV-12518 Unify sql_yacc.yy and sql_yacc_ora.yy
This is a partial patch for MDEV-12518 unifying:

- Data types: row_type_body vs field_type_row

Fixing sql_yacc_ora.yy: removing field_type_row adding row_type_body instead
2017-07-10 10:51:07 +04:00
Elena Stepanova
5ff2db7f67 Follow-up for MDEV-13089 (identifier quoting in partitioning)
Adjust results for storage_engine tests
2017-07-10 00:05:45 +03:00
Elena Stepanova
4df726e180 storage_engine subsuites should also be disabled for XtraDB 2017-07-10 00:05:06 +03:00
Elena Stepanova
3af125e082 Updated list of unstable tests for 10.2.7 2017-07-09 20:42:29 +03:00
Elena Stepanova
93e32d725c Follow-up for MDEV-13089 (identifier quoting in partitioning)
Adjust results for tests in non-default suites
2017-07-09 20:38:57 +03:00
Elena Stepanova
970719cb15 MDEV-12785 MTR complains "Can't exec mariadb_config"
Adjust search paths for mariadb_config and make further assignment
conditional
2017-07-09 20:36:19 +03:00
Sergei Golubchik
51256b603a fixes for lower_case_table_names=2 2017-07-09 11:43:42 +02:00
Sergei Golubchik
c9801135c1 Merge branch '10.1' into 10.2 2017-07-08 09:56:28 +02:00
Sergei Golubchik
f3ad96a3a6 fix the bad merge
this fixes vcol.upgrade failure
2017-07-08 01:38:56 +02:00
Sergei Golubchik
c65cce3698 MDEV-12137 DELETE statement with the same source and target
* various cleanups (mostly cosmetic)
* remove useless tests (that were tesing the error condition)
* optimize delete_use_source test (from 6 mins to 50 seconds,
  mainly by removing two huge rollbacks at the end).
2017-07-07 22:38:15 +02:00
halfspawn
abf95afa2a MDEV-12137 DELETE statement with the same source and target
single-table deletes only
2017-07-07 22:38:15 +02:00
Sergei Golubchik
5789934fda compilation warning 2017-07-07 20:13:44 +02:00
Alexander Barkov
30fee6150a Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext 2017-07-07 19:48:35 +04:00
Marko Mäkelä
42f657cd2f MDEV-13267 At startup with crash recovery: mtr_t::commit_checkpoint(lsn_t, bool): Assertion `!recv_no_log_write' failed
This is a bogus debug assertion failure that should be possible
starting with MariaDB 10.2.2 (which merged WL#7142 via MySQL 5.7.9).

While generating page-change redo log records is strictly out of the
question during tat certain parts of crash recovery, the
fil_names_clear() is only emitting informational MLOG_FILE_NAME
and MLOG_CHECKPOINT records to guarantee that if the server is killed
during or soon after the crash recovery, subsequent crash recovery
will be possible.

The metadata buffer that fil_names_clear() is flushing to the redo log
is being filled by recv_init_crash_recovery_spaces(), right before
starting to apply redo log, by invoking fil_names_dirty() on every
discovered tablespace for which there are changes to apply.

When it comes to Mariabackup (xtrabackup --prepare), it is strictly out
of the question to generate any redo log whatsoever, because that could
break the restore of incremental backups by causing LSN deviation.
So, the fil_names_dirty() call must be skipped when restoring backups.

recv_recovery_from_checkpoint_start(): Do not invoke fil_names_clear()
when restoring a backup.

mtr_t::commit_checkpoint(): Remove the failing assertion. The only
caller is fil_names_clear(), and it must be called by
recv_recovery_from_checkpoint_start() for normal server startup to be
crash-safe. The debug assertion in mtr_t::commit() will still
catch rogue redo log writes.
2017-07-07 18:40:57 +03:00
Alexander Barkov
c1885d22df MDEV-13273 Confusion between table alias and ROW type variable 2017-07-07 17:00:07 +04:00
Sergei Golubchik
9e11e055ce Merge branch '10.0' into 10.1 2017-07-07 11:30:03 +02:00
Marko Mäkelä
9e53a6bdfd Merge 10.2 into bb-10.2-ext 2017-07-07 12:00:27 +03:00