bell@laptop.sanja.is.com.ua
85f397781b
Code cleanup
2003-08-16 13:26:48 +03:00
bell@laptop.sanja.is.com.ua
55094f903f
As far as now transformer called after setup_wild() it is impossible to have '*'
2003-08-16 02:04:29 +03:00
bell@sanja.is.com.ua
de705e53f2
fixed bug in used_tables() report of left expression of IN subquery
...
fixed number of rows of external field reported to optimizer
added check of choosen key (checked left expression tag)
(SCRUM fix for simple IN optimisation)
2003-08-07 11:16:02 +03:00
bell@sanja.is.com.ua
1119ec0e6f
Merge sanja.is.com.ua:/home/bell/mysql/bk/work-top3-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-simple_in-4.1
2003-08-05 09:58:00 +03:00
bell@sanja.is.com.ua
659650b4ea
merge
2003-08-05 09:56:21 +03:00
bell@sanja.is.com.ua
f59cfa6452
merge
2003-08-01 16:51:54 +03:00
bar@bar.mysql.r18.ru
f8791c3962
Derivation attribute was not processed correctly
...
by MAX/MIN in some cases:
SELECT coercibility(max(s1)) from t1;
Subselect collation and derivation was not processed
correctly:
create table a select (select s1 from t1);
select * from t1 where s1 = (select s2 from t1);
2003-07-30 14:15:25 +05:00
bell@sanja.is.com.ua
bc1546ce31
count HAVING clause elements with select list elements, because agregate function can be present in it (BUG#922)
...
removerd unused loop_id
2003-07-29 13:00:32 +03:00
bell@sanja.is.com.ua
7e34954b5e
new optimisation for ref_null (SCRUM) (WL#818)
2003-07-17 19:39:31 +03:00
bell@sanja.is.com.ua
8279740af4
new IN subquery engine added for simple IN with non-primary index but without NULL returning
...
(SCRUM) (part of WL#818)
2003-07-08 00:08:00 +03:00
bell@sanja.is.com.ua
6348e63f62
Optimisation if simple IN subselect with primary index
...
(SCRUM) (part of WL#818)
2003-07-07 18:40:19 +03:00
bell@sanja.is.com.ua
28207ede02
(SCRUM)
...
It looks like samll revolution in SELECT_LEX tree, but it was only natural way to solve problem with name resolution of external fields inside subselect which belongs to global order of union
also it have following advantages:
- removed mess with current_select type conversion
- type checking/converting
- a lot of virtual methods
- fake select for union execution allocated only once (it was allocated for every subselect with union executing)
changes:
fixed bug with outer fields name resolution of subqueries which belong to global ORDER BY clause
remuved select_lex() function, now thd->lex.current_select always have type SELECT_LEX
new SELECT_LEX (fake_select_lex) will be allocated in case of UNION for using in UNION processing
fake_select_lex allocated for union hold global ORDER BY & LIMIT clauses and have linkage equal to GLOBAL_OPTIONS_TYPE
new description of SELECT_LEX tree
(SCRUM)
2003-07-03 02:30:52 +03:00
bell@sanja.is.com.ua
2ae8a00b2a
Item tree iterator
...
fixed dependence of items from reduced subquery
(SCRUM)
2003-07-02 13:12:18 +03:00
bell@sanja.is.com.ua
5eaaf8e732
after review changes (SCRUM)
...
removed outer resolving flag (because of movingtransformation after fix_fields)
2003-07-02 01:45:22 +03:00
bell@sanja.is.com.ua
e8b1e21615
Merge sanja.is.com.ua:/home/bell/mysql/bk/work-cond_count-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-top2-4.1
2003-06-26 11:31:13 +03:00
bell@sanja.is.com.ua
2d120d32fa
cond_count moved to SELECT_LEX_NODE
...
fixed BUG #726
2003-06-26 11:09:11 +03:00
bell@sanja.is.com.ua
7b77c5a2d3
merged
2003-06-25 23:52:15 +03:00
bell@sanja.is.com.ua
096ae170ae
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-item-4.1
2003-06-19 15:25:41 +03:00
bell@sanja.is.com.ua
fe6175c40d
added mem_root switching for subselect if it is necessary
...
(bug #518 fixed)
2003-05-28 16:52:56 +03:00
bell@sanja.is.com.ua
3a30eda921
fixed memory overrun (bug 380)
2003-05-17 10:05:07 +03:00
bell@sanja.is.com.ua
e12cc8ef41
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-top-4.1
2003-05-14 22:01:56 +03:00
bell@sanja.is.com.ua
1915632163
subselect transformation moved in after-fix_field place
...
removed "of is null" if it is possible
(this cset should be SCRUM related, but not approved as scrum task yet)
2003-05-14 21:51:33 +03:00
monty@narttu.mysql.fi
51f9879008
Removed compiler warnings
...
Fixed memory leak in new filesort code
Optimzed sub selects to use keys with outer references.
Increased max tables in join to 62
2003-05-06 01:38:38 +03:00
bell@sanja.is.com.ua
3beca2dbb1
fixed bug 185 (constant IN (SELECT field ...) do not return NULL correctly)
2003-04-23 00:01:19 +03:00
bell@sanja.is.com.ua
1a8227d1c1
Merge
2003-03-15 14:16:57 +02:00
bell@sanja.is.com.ua
587196984d
Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/work-leak-4.1
2003-03-15 11:24:44 +02:00
bell@sanja.is.com.ua
8482e27c81
Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/work-in-4.1
2003-03-10 16:38:26 +02:00
bell@sanja.is.com.ua
af06b32a1d
fixed crash on non-well-constructed reference
2003-03-10 16:38:06 +02:00
Sinisa@sinisa.nasamreza.org
57ed8b11fd
merge fixes
2003-03-06 17:31:22 +02:00
Sinisa@sinisa.nasamreza.org
ffa8a47b6d
three bug fixes and major code cleanup
2003-03-06 17:02:10 +02:00
bar@bar.mysql.r18.ru
48cdd97866
Strings which appear without charset context,
...
like number-to-string-convertion-result, now
takes current database character set, instead of
thread character set. This makes it easy to be
SQL99 conformant and 4.0 compatible.
Item->thd_charset() is renamed to Item->default_charset()
as old name doesn't describe its nature anymore.
2003-03-03 10:53:08 +04:00
bell@sanja.is.com.ua
e98e85315f
fix of illegal usage aggregate functions
2003-02-15 00:11:00 +02:00
monty@mashka.mysql.fi
48558055ed
Move tmp_table_used to THD
...
Optimize depending sub querys
Remove valgrind warnings
2003-02-10 17:59:16 +02:00
bell@sanja.is.com.ua
62902a3b4b
after-review changes (577 SCRUM)
2003-02-02 23:30:01 +02:00
bell@sanja.is.com.ua
e294751c41
fixed bug in determinating uncacheable queries
...
new fatal_error interface to assign is_fatal_error and ne.report_error
commant about Item_row
2003-01-30 22:15:44 +02:00
bell@sanja.is.com.ua
5ed5dac01b
cyclic reference test removed, becouse testing of Item::fixed field apply more strict limitation
2003-01-30 14:35:07 +02:00
bell@sanja.is.com.ua
214036a7f6
improving of fields list creation in derived tables and unions
...
fixed length of fields created in fubselect
fixed resolving fields of reduced in derived table subselect
2003-01-29 19:42:39 +02:00
bell@sanja.is.com.ua
0c5b323d0f
fixed bugs in temporary tables in subselect implementation (SCRUM)
...
merging with switching on static tables optimization (SCRUM)
fixed subselects with uncacheable results
added test for fixed bugs from bugreports
2003-01-28 14:48:12 +02:00
bell@sanja.is.com.ua
760e22f0bb
after merge fix of 577 task (SCRUM, pre commit to be able to merge with static tables optimization fix)
...
fixed derived tables with subselect inside
2003-01-26 21:30:35 +02:00
bell@sanja.is.com.ua
44d8a8cdab
merging
2003-01-25 13:19:46 +02:00
bell@sanja.is.com.ua
d56e23f64e
fixed subselects with temporary tables (SCRUM)
...
fixed memory leacks
2003-01-25 02:25:52 +02:00
monty@mashka.mysql.fi
25c393a12e
Portability fixes (for windows)
...
Some changes to the prepared statement protocol to make it easier to use and faster.
2003-01-21 21:07:59 +02:00
bell@sanja.is.com.ua
945758f0ec
post-post-review fix (SCRUM)
2003-01-02 12:24:33 +02:00
bell@sanja.is.com.ua
c7a02249f5
postreviews fix (SCRUM related)
...
reordered Item_row class variables to be sorted by memory size
2002-12-31 18:39:16 +02:00
bell@sanja.is.com.ua
fe9e139056
postreview fix (SCRUM)
...
fixed layout
2002-12-28 01:01:05 +02:00
bell@sanja.is.com.ua
e3ba256491
Merge sanja.is.com.ua:/home/bell/mysql/work-row-4.1
...
into sanja.is.com.ua:/home/bell/mysql/work-from-4.1
2002-12-27 21:36:56 +02:00
bell@sanja.is.com.ua
c5b475e6d7
postreview fix
2002-12-27 21:19:25 +02:00
bell@sanja.is.com.ua
1dd7cb52ae
support of subselect without FROM reducing (SCRUM)
...
fixed bug of calling setup_fields without correct lex->current_select pointer in mysql_derived
more correct creation of reference in Item_field::fix_field
2002-12-26 01:28:59 +02:00
bell@sanja.is.com.ua
033b1c3073
more correct argument for translation function (SCRUM related)
...
fiexd bug in LIMIT check
2002-12-25 12:51:08 +02:00
bell@sanja.is.com.ua
e67a0d2b86
check of LIMIT in row IN subquery (SCRUM related)
2002-12-25 12:03:08 +02:00