| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |\ |
|
| | |\ |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
field.cc
- Fixed warning about overlapping memory copy (backport from 10.0)
Item_subselect.cc
- Fixed core dump in main.view
- Problem was that thd->lex->current_select->master_unit()->item was not set, which caused crash in maxr_as_dependent
sql/mysqld.cc
- Got error on shutdown as we where freeing mutex before all THD objects was freed
(~THD uses some mutex). Fixed by during shutdown freeing THD inside mutex.
sql/log.cc
- log_space_lock and LOCK_log where locked in inconsistenly. Fixed by not having a log_space_lock around purge_logs.
sql/slave.cc
- Remove unnecessary log_space_lock
- Move cond_broadcast inside lock to ensure we don't miss the signal
|
| | | |
| | | |
| | | |
| | | | |
Copy_field::get_copy_func().
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Column_definition to Create_field, as it's not needed neither
for make_field(), nor for SP variables, SP parameters, SP return values.
|
| | | |
| | | |
| | | |
| | | | |
steps
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Part2: moving a few other fields from Column_definition to Create_field.
sizeof(sp_variable) is now 200 bytes (vs 248 bytes in 10.1)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- MDEV-8093 sql_yacc.yy: add %type create_field for field_spec and column_def
and partially:
- MDEV-8095 Split Create_field
|
|/ / /
| | |
| | |
| | |
| | | |
and don't set Create_field->sql_type to MYSQL_TYPE_VIRTUAL
temporarily only to change it again few lines later.
|
| | |
| | |
| | |
| | | |
(Makes TABLE a bit smaller)
|
| | |
| | |
| | |
| | | |
we don't test for not-existing gis extra in FRM.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
from Item_bool_func::get_mm_leaf() into Field_xxx::can_optimize_range().
This reduces the total amount of virtual calls. Also, it's a prerequisite
change for the pluggable data types.
|
| | |
| | |
| | |
| | |
| | |
| | | |
different results
MDEV-8660 TIME(int_zerofill_column) returns a wrong result
|
| | |
| | |
| | |
| | | |
compatibility with MySQL
|
| | |
| | |
| | |
| | | |
MDEV-8468 CAST and INSERT work differently for DECIMAL/INT vs DOUBLE for a string with trailing spaces
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Disable IDENTITY_SUBST propagation for ZEROFILL columns,
as discussed with Sergei.
|
| | |
| | |
| | |
| | | |
00:00:00' AND time_column='00:00:00'
|
| | |
| | |
| | |
| | | |
WH ERE zerofill_column=2010 AND zerofill_column>=2010
|
| | |
| | |
| | |
| | | |
time_column=TIMESTAMP'2001-01-01 10:20:31'
|
| | |
| | |
| | |
| | | |
HEX(date_column)!='323030312D30312D3031' AND date_column='2001-01-01x'
|
| | |
| | |
| | |
| | | |
double_column=100e0
|
| | |
| | |
| | |
| | | |
decimal_10_1_column=1.10
|
| | |
| | |
| | |
| | | |
Moving to field.cc.
|
| | |
| | |
| | |
| | | |
enum_column='a '
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
removing IMPOSSIBLE_RESULT from Item_result, as it's not
needed any more. The fact that an Item is not in a comparison
context is now always designated by IDENTITY_SUBST in Subst_constraint.
Previously IMPOSSIBLE_RESULT and IDENTITY_SUBST co-existed but
actually meant the same thing.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
referenced_by_foreign_key2(), needed for InnoDB to compile,
was taken from 10.0-galera
|
| | |
| | |
| | |
| | | |
DECIMAL
|
| | |
| | |
| | |
| | |
| | | |
Part 5: Removing calls to current_thd in net_read calls, creating fields,
query_cache, acl and some other places where thd was available
|
| | |
| | |
| | |
| | | |
SELECT..WHERE varchar_column=DATE'2001-01-01' AND varchar_column='2001-01-01'
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Added mem_root to all calls to new Item
- Added private method operator new(size_t size) to Item to ensure that
we always use a mem_root when creating an item.
This saves use once call to current_thd per Item creation
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Added mandatory thd parameter to Item (and all derivative classes) constructor.
Added thd parameter to all routines that may create items.
Also removed "current_thd" from Item::Item. This reduced number of
pthread_getspecific() calls from 290 to 177 per OLTP RO transaction.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
specified and if not timestamp or auto_increment
In original code, sometimes one got an automatic DEFAULT value in some cases, in other cases not.
For example:
create table t1 (a int primary key) - No default
create table t2 (a int, primary key(a)) - DEFAULT 0
create table t1 SELECT .... - Default for all fields, even if they where defined as NOT NULL
ALTER TABLE ... MODIFY could sometimes add an unexpected DEFAULT value.
The patch is quite big because we had some many test cases that used
CREATE ... SELECT or CREATE ... (...PRIMARY KEY(xxx)) which doesn't have an automatic DEFAULT anymore.
Other things:
- Removed warnings from InnoDB when waiting from semaphore (got this when testing things with --big)
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Conflicts:
sql/item_subselect.cc
Fixed also typo in comment
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
can compile with -Wshadow and get much fewer warnings)
- Changed ER(ER_...) to ER_THD(thd, ER_...) when thd was known or if there was many calls to current_thd in the same function.
- Changed ER(ER_..) to ER_THD_OR_DEFAULT(current_thd, ER...) in some places where current_thd is not necessary defined.
- Removing calls to current_thd when we have access to thd
Part of this is optimization (not calling current_thd when not needed),
but part is bug fixing for error condition when current_thd is not defined
(For example on startup and end of mysqld)
Notable renames done as otherwise a lot of functions would have to be changed:
- In JOIN structure renamed:
examined_rows -> join_examined_rows
record_count -> join_record_count
- In Field, renamed new_field() to make_new_field()
Other things:
- Added DBUG_ASSERT(thd == tmp_thd) in Item_singlerow_subselect() just to be safe.
- Removed old 'tab' prefix in JOIN_TAB::save_explain_data() and use members directly
- Added 'thd' as argument to a few functions to avoid calling current_thd.
|
|\ \ \
| |/ / |
|
| |\ \ |
|
| | |\ \
| | | |/ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fhe GEOMETRY field should be handled just as the BLOB field. So that was fiexed in field_conv.
One additional bug was found and fixed meanwhile - thet the geometry field subtypes
should also be merged for UNION command.
|
| | | |
| | | |
| | | |
| | | | |
MDEV-8267 Add /*old*/ comment into I_S.COLUMN_TYPE for old DECIMAL
|
| |/ /
| | |
| | |
| | | |
some duplicate code.
|
| | |
| | |
| | |
| | | |
through a default value
|