- 15 Apr, 2014 6 commits
-
-
Alexey Botchkov authored
If a prepared statement calls an stored procedure, the thd->server_status out of the SP goes up to the PS and then to the client. So that the client gets the SERVER_STATUS_CURSOR_EXISTS status if the SP uses a cursor. Which makes the embedded server fail. Fixed by saving/restoring the upper-level server_status in sp_head::execute().
-
Alexey Botchkov authored
Thread can be disconnected internally for example after COMMIT statements. So we should check this for the statement execution.
-
Alexey Botchkov authored
mysqltest in the 'embedded-server' mode runs queries in a separate thread, but it didn't do so for the prepared statements - they were run in the main thread. That leads to inconsistencies. When a test sets SESSION 'dbug' variable like SET SESSION debug_dbug="+d,warn_during_ha_commit_trans"; it is run as a plain query in that separate thread, so the main thread remains unaffected. After that the prepared statement run in the main thread doesn't produce expected 'dbug' errors, so the test fails. To fix that I made prepared statement to be run in that special thread along with the plain queries. That makes the environment consistent.
-
Alexey Botchkov authored
As Davi added code like sav_protocol= thd->protocol thd->protocol= &thd->protocol_binary ... thd->protocol= sav_protocol the fucntions like emb_store_querycache_result() cannot determine the used protocol testing thd->protocol == &thd->protocol_binary. Fixed by additional check thd->command == COM_STMT_EXECUTE.
-
Alexey Botchkov authored
The function Protocol::net_store_data(a, b, CHARSET_A, CHARSET_B) should be adapted to be working in the embedded server as it's done with the Protocol::net_store_data(a, b). That new function renamed as net_store_data_cs, so we can make it virtual.
-
unknown authored
Units of subqueroes from excluded expressions should be excluded from select_lex/select_unit tree.
-
- 14 Apr, 2014 2 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
- 13 Apr, 2014 1 commit
-
-
Sergei Golubchik authored
(and don't append --user=root for --help now, when mysqld has a fix for that)
-
- 11 Apr, 2014 1 commit
-
-
Sergei Golubchik authored
-
- 10 Apr, 2014 3 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
- 09 Apr, 2014 1 commit
-
-
Sergei Golubchik authored
-
- 08 Apr, 2014 3 commits
-
-
Sergei Golubchik authored
when converting /a/full/path/to/a/file.ext to -lfile ignore all files with non-library extenstions.
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
- 07 Apr, 2014 3 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Sergei Golubchik authored
typo in the rpm server prein scriptlet
-
- 11 Apr, 2014 4 commits
-
-
unknown authored
-
unknown authored
-
unknown authored
Add test case.
-
unknown authored
Revert the old patch revid:monty@askmonty.org-20100325133339-7mkel6valai0b4lb This patch caused the InnoDB part of the transaction to not be marked read-write in some cases, which messes up XA commit (and likely other stuff as well).
-
- 10 Apr, 2014 1 commit
-
-
Elena Stepanova authored
mysql_upgrade overrode some of the custom changes made to system tables in order to increase user name length. Make ALTER statements involving the affected columns take into account length changes, as per https://mariadb.com/kb/en/create-user/#user-names
-
- 03 Apr, 2014 1 commit
-
-
Elena Stepanova authored
Avoid CPack complaints when a pdb file is missing for a static library (patch from Vladislav Vaintroub)
-
- 27 Mar, 2014 1 commit
-
-
Sergei Golubchik authored
-
- 26 Mar, 2014 3 commits
-
-
Sergei Golubchik authored
MDEV-5955 Server crashes in handler::ha_external_lock or assertion `m_lock_type == 2' fails in handler::ha_close on disconnect with a locked temporary table first unlock locked tables, then close and remove temporary
-
Michael Widenius authored
The reason was that a couple of variables that hold number of rows that was used to calculate buffers was uint and caused an overflow. Fixed by changing variables that could hold number of rows from uint to ulong and also added a cast for this test. include/heap.h: Reorder to get better alignment. Changed variables that could hold number of rows from uint to ulong mysql-test/suite/heap/heap.result: Added test case mysql-test/suite/heap/heap.test: Added test case mysql-test/suite/plugins/t/server_audit.test: Added sleep as we want to have disconnect logged before we try a new connect storage/heap/ha_heap.cc: Changed variables that could hold number of rows from uint to ulong Limit number of rows to 4G (as most of the variables that holds rows are ulong anyway) reset records_changed when key_stat_version is changed to not cause increments for every row changed storage/heap/ha_heap.h: changed records_changed to ulong as this can get big storage/heap/hp_create.c: Changed variables that could hold number of rows from uint to ulong Added cast (fixed the original bug) storage/heap/hp_delete.c: Changed variables that could hold number of rows from uint to ulong storage/heap/hp_open.c: Removed not needed cast storage/heap/hp_write.c: Changed variables that could hold number of rows from uint to ulong support-files/compiler_warnings.supp: Removed extra : from supression
-
Sergei Golubchik authored
-
- 25 Mar, 2014 3 commits
-
-
Sergei Golubchik authored
previous file->index_next (or other file->... index access method) succeeded
-
Sergei Golubchik authored
in the libmysqlclient_16 version node.
-
Sergei Golubchik authored
-
- 24 Mar, 2014 6 commits
-
-
Sergei Golubchik authored
add pthread_mutex_destroy(&THR_LOCK_dbug); that was apparently forgotten since the very first MySQL version
-
Sergei Golubchik authored
error message (because error messages use replacements)
-
Sergei Golubchik authored
-
Sergei Golubchik authored
for new tables
-
Sergei Golubchik authored
checks that can skip the test
-
Sergei Golubchik authored
Allow "rpm -q --whatprovides mysql-server" to return more than one row. (all rows should be identical though) support-files/rpm/server-prein.sh: don't use "head -1" or "uniq" to avoid introducing new dependencies. "sed" is already used in this script.
-
- 23 Mar, 2014 1 commit
-
-
Alexander Barkov authored
MDEV-5783 Assertion `0' failed in make_sortkey(SORTPARAM*, uchar*, uchar*) on ORDER BY HEX( UNCOMPRESSED_LENGTH( pk ) )
-