| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Now thd->mem_root is a pointer to thd->main_mem_root and THR_MALLOC is a pointer to thd->mem_root.
This gives us the following benefits:
- Allow us to easily detect if arena has already been swapped before (this fixes a bug in setup_conds() where arena was swaped twice in some cases)
- Faster swaps of arenas (as we don't have to copy the whole MEM_ROOT)
- We don't anymore have to call my_pthread_setspecific_ptr(THR_MALLOC,...) to change where memory is alloced. Now it's enough to set thd->mem_root
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
New mysqltest that can run mysqltest with PS
Added support for ZEROFILL in PS
Fixed crash when one called mysql_stmt_store_result() without a preceding mysql_stmt_bind_result()
Updated test cases to support --ps-protocol
(Some tests are still run using old protocol)
Fixed crash in PS when using SELECT * FROM t1 NATURAL JOIN t2...
Fixed crash in PS when using sub queries
Create table didn't signal when table was created. This could cause a "DROP TABLE created_table" in another thread to wait "forever"
Fixed wrong permissions check in PS and multi-table updates (one could get permission denied for legal quries)
Fix for PS and SELECT ... PROCEDURE
Reset all warnings when executing a new PS query
group_concat(...ORDER BY) didn't work with PS
Fixed problem with test suite when not using innodb
|
|
|
|
|
|
|
| |
prepared statements when LIMIT is used" and post-review comments.
The fix changes the approach we calculate the need for ORDER BY
in UNION: the previous was not PS friendly, as it damaged SELECT_LEX
options in case of single select.
|
| |
|
|
|
|
|
| |
names with ident. tables fr. diff. schemata": revise all uses of
Item_field and make them prepared-statements friendly when necessary.
|
|
|
|
| |
Check DERIVATION_NONE only for UNIONS.
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
Noteworthy:
- New HANDLER code
- New multi-update-grant-check code
- Table lock code in ha_innodb.cc was not applied
|
| | |
|
| |
| |
| |
| | |
explain).
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
a second time". The bug was caused by incompatibility of
negations elimination algorithm and PS: during first statement
execute a subtree with negation was replaced with equivalent
subtree without NOTs.
The problem was that although this transformation was permanent,
items of the new subtree were created in execute-local memory.
The patch adds means to check if it is the first execute of a
prepared statement, and if this is the case, to allocate items
in memory of the prepared statement.
The implementation:
- backports Item_arena from 5.0
- adds Item_arena::is_stmt_prepare(),
Item_arena::is_first_stmt_execute().
- deletes THD::allocate_temporary_pool_for_ps_preparing(),
THD::free_temporary_pool_for_ps_preparing(); they
were redundant.
and adds a few invariants:
- thd->free_list never contains junk (= freed items)
- thd->current_arena is never null. If there is no
prepared statement, it points at the thd.
The rest of the patch contains mainly mechanical changes and
cleanups.
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | | |
into sanja.is.com.ua:/home/bell/mysql/bk/work-explain-4.1
|
| |\ \
| | | |
| | | |
| | | | |
into sinisa.nasamreza.org:/mnt/work/mysql-4.1
|
| | | | |
|
|\ \ \ \
| |/ / /
| | | |
| | | | |
into sanja.is.com.ua:/home/bell/mysql/bk/work-explain-4.1
|
| |/ / |
|
| | | |
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
correct bug messages (Bug #3639)
EXPLAIN of hidden SELECT of UNION
|
| | | |
|
|/ /
| |
| |
| |
| | |
item_list for fake_select will be created only once
(problem reported by valgrind in test_union2 fixed)
|
|\ \ |
|
| |\ \
| | | |
| | | |
| | | | |
into mysql.com:/home/my/mysql-4.1
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | |
| | | | |
into sanja.is.com.ua:/home/bell/mysql/bk/work-ndb-4.1
|
| |/ /
| | |
| | |
| | |
| | | |
SQL_SELECT_LIMIT as default will be applied only for SELECT statement if there was not explicit LIMIT clause
correct table list passed to class constructor of select_update
|
|/ / |
|
|\ \
| | |
| | |
| | | |
into sinisa.nasamreza.org:/mnt/work/mysql-4.1
|
| | | |
|
|/ /
| |
| |
| | |
allocated on stack in next execution of PS (Bug #3577)
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
fixed IN subselect with basic constant left expression
SQLCOM_CREATE_TABLE, SQLCOM_UPDATE_MULTI, SQLCOM_REPLACE_SELECT, SQLCOM_INSERT_SELECT, QLCOM_DELETE_MULTI fixed to be compatible with PS (BUG#3398, BUG#3406)
fixed multiupdate privelege check (BUG#3408)
fixed multiupdate tables check (BUG#3411)
unchecked commands now is rejected by PS protocol to avoid serever crash
fixed cleunup procedure to be compatible sith DO/SET (BUG#3393)
|
| |
| |
| |
| | |
fixed aggregate functions in PS (BUG#3360)
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
A test case for the bug that allowed table names to be used in ORDER BY columns (But #3064)
union.test:
A test case for the bug that allowed table names to be used in ORDER BY columns (But #3064)
sql_union.cc:
A fix for a bug that allowed table names to be used in ORDER BY columns (But #3064)
|
|\ \
| | |
| | |
| | | |
into mysql.com:/home/my/mysql-4.1
|
| | | |
|
|\ \ \
| |/ /
|/| |
| | | |
into sanja.is.com.ua:/home/bell/mysql/bk/work-alias-4.1
|
| | | |
|
|/ /
| |
| |
| | |
Bug#1428
|
| | |
|
| |
| |
| |
| | |
small optimisation in signed_literal
|
| | |
|
|\ \ |
|
| |\ \
| | | |
| | | |
| | | | |
into sanja.is.com.ua:/home/bell/mysql/bk/work-prepared-4.1
|
| | | |
| | | |
| | | |
| | | | |
fixed UNION preparation
|
| | | |
| | | |
| | | |
| | | | |
own TABLE structure
|
|\ \ \ \
| |/ / /
|/| | | |
|