bell@sanja.is.com.ua
bb34b56bfd
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-explain-4.1
2004-05-14 15:29:23 +03:00
bell@sanja.is.com.ua
3f6857112c
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-all_any2-4.1
2004-05-14 14:45:27 +03:00
bell@sanja.is.com.ua
71a374dc13
Merge
2004-05-14 13:33:02 +03:00
bell@sanja.is.com.ua
8885ce0dd7
UNCACHEABLE_EXPLAIN is enough
2004-05-14 13:28:20 +03:00
bar@bar.intranet.mysql.r18.ru
6ecea2fa93
Bug #3403 Wrong encoding in EXPLAIN SELECT output
2004-05-14 13:08:22 +05:00
bell@sanja.is.com.ua
4c774e0c18
fixed flags of printed query
2004-05-13 23:47:20 +03:00
bell@sanja.is.com.ua
7defcb4703
used item method (Bug #3686 )
2004-05-12 12:27:43 +03:00
bell@sanja.is.com.ua
a00117902f
treat parameter as constant in ORDER BY check of fields in SELECT list(Bug #3686 )
2004-05-10 13:29:02 +03:00
bell@sanja.is.com.ua
d2fa79b291
keep old engine & JOIN if we changed subquery Item (Bug #3646 )
2004-05-07 23:06:11 +03:00
ingo@mysql.com
5c4f83bbd9
Merge mysql.com:/home/mydev/mysql-4.1
...
into mysql.com:/home/mydev/mysql-4.1-wl1687
2004-05-07 11:13:58 +02:00
bell@sanja.is.com.ua
3aae50e8c0
EXPLAIN UNION using same routing which used for execution which allow return correct bug messages (Bug #3639 )
...
EXPLAIN of hidden SELECT of UNION
2004-05-06 20:40:21 +03:00
ingo@mysql.com
784c9526ec
WL#1687 - Optimize UNION DISTINCT ... UNION ALL (again).
...
HEAP: Copies the key count to a backup variable and sets the key count to zero.
That way, no HEAP function will ever try to touch any index.
Re-enabling is done by copying back the backup variable.
To avoid memory leak at table close, disable deletes all index trees.
Re-enabling must be done with empty indexes and data anyway. Otherwise,
the indexes would need to be repaired, wich HEAP is not capable of.
MyISAM: Only the key_map is cleared and set.
Re-enabling must be done with empty indexes and data. Otherwise, repair needs
to be done which will enable all keys persistently.
The former implementation disabled only non-unique keys and maked this persistent.
The new implementation additionally can disable all keys, but only without
making this persistent. Re-enabling all keys can be done without repair,
if data file and indexes are empty.
2004-05-06 15:53:01 +02:00
monty@mysql.com
f6dc9169e2
Fixed wrong key usage which caused wrong result for some "WHERE primary_key=constant" queries where MySQL could use 'only index' (Bug #3666 )
...
The bug was introduced in a patch in the 4.1.2 source tree.
2004-05-06 04:40:45 +03:00
monty@mysql.com
a5d8b846fa
after merge fixes
2004-05-05 21:24:21 +03:00
monty@mysql.com
104fdf607d
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/home/my/mysql-4.1
2004-05-05 12:40:59 +03:00
monty@mysql.com
7e3cf5958c
Fixed crashing bug with alter table when table was in use (Bug #3643 )
...
We didn't use 'only index' for tables of type 'const'. (Bug #3497 )
2004-05-05 12:31:17 +03:00
bell@sanja.is.com.ua
c2f194f243
repetable test replaced with inline function
2004-05-04 16:37:04 +03:00
monty@mysql.com
59ddd8c738
Fix to handle unsigned data in prepared statements (Bug #3447 )
...
Fixed security problem that password was temporarly reset when someone changed GRANT for a user. (Bug #3404 )
Fixed problem with PROCEDURE analyse() and impossible WHERE (Bug #2238 )
Don't auto-repair tables in mysqlcheck if table type doesn't support 'check' command.
2004-05-04 15:02:38 +03:00
bell@sanja.is.com.ua
25d815cde6
fixed zero result case for group functions in subquery (Bug #3505 )
...
fixed LIMIT 0 for zero rows optimisation
2004-05-02 13:03:49 +03:00
serg@serg.mylan
e95debcefe
removed duplicated check for thd->killed
2004-04-30 21:11:36 +02:00
bell@sanja.is.com.ua
555eb86616
merge
2004-04-08 23:50:10 +03:00
monty@mysql.com
00738a2be0
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/home/my/mysql-4.1
2004-04-08 15:02:25 +03:00
monty@mysql.com
43546e7a82
Moved reading of ranges from opt_range.cc to handler.cc
...
This gives the handler more optimization possiblities and is needed for NDB cluster
Fixed not-initialized memory error detected by valgrind
2004-04-08 13:58:06 +03:00
heikki@hundin.mysql.fi
7560f3bae7
sql_select.cc:
...
Fix a glitch reported by Philippe Lewicki on the general mailing list: do not print a warning to the .err log if read_key fails with a lock wait timeout error 146
2004-04-08 09:25:48 +03:00
monty@mysql.com
e94d935221
Cleanup/optimizations of structures and key usage to make it easier to move key-range-search to handler
2004-04-08 01:50:59 +03:00
bell@sanja.is.com.ua
56be6f3f93
merge
2004-04-08 00:19:43 +03:00
bell@sanja.is.com.ua
5e37c41fae
new error for unsupported command in PS
...
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)
2004-04-08 00:16:17 +03:00
bell@sanja.is.com.ua
61fd95d168
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-ps3-4.1
2004-04-07 15:23:05 +03:00
monty@mysql.com
70c4eb5838
Portability fixes
...
Fixed problems with group_concat() and HAVING
Updated crash-me values
2004-04-07 04:33:58 +03:00
monty@mysql.com
42cf92ce37
Fixed many compiler warnings
...
Fixed bugs in group_concat with ORDER BY and DISTINCT (Bugs #2695 , #3381 and #3319 )
Fixed crash when doing rollback in slave and the io thread catched up with the sql thread
Set locked_in_memory properly
2004-04-05 13:56:05 +03:00
bell@sanja.is.com.ua
2f4d2a0e38
fixed brocken of client_test
...
fixed aggregate functions in PS (BUG#3360)
2004-04-03 11:13:51 +03:00
monty@mysql.com
4bc6b551f8
false/true -> FALSE/TRUE
...
Fixes after last merge
2004-03-30 02:32:41 +03:00
monty@mysql.com
dc2f606fb8
Merge with 4.0 to get lastest bug fixes
2004-03-29 19:21:53 +03:00
Sinisa@sinisa.nasamreza.org
09d26f0ff6
order_by.result:
...
result of the test case for FORCE INDEX on ORDER BY
order_by.test:
test case for FORCE INDEX on ORDER BY
sql_select.cc:
Changing behaviour that MySQL server takes FORCE INDEX clause into account when optimising ORDER BY clause
2004-03-26 17:01:13 +02:00
monty@mysql.com
1448199bd7
Cleanups & safety fixes
2004-03-25 22:11:22 +02:00
bell@sanja.is.com.ua
bbb6642a66
aliases should be compared with my_strcasecmp (BUG#3251)
...
some db comparison code cleupup
removed compiler warnings
2004-03-22 15:43:13 +02:00
bell@sanja.is.com.ua
d095d4753e
after review changes
2004-03-20 13:36:26 +02:00
bell@sanja.is.com.ua
613104ad25
merge
2004-03-18 15:21:06 +02:00
bell@sanja.is.com.ua
2b45b53066
DBUG_ASSERT(fixed == 1); added to val*
...
small optimisation in signed_literal
2004-03-18 15:14:36 +02:00
monty@mysql.com
53c810cda4
merge fixes (use old code)
2004-03-18 00:16:04 +02:00
heikki@hundin.mysql.fi
e8efe9c32a
Many files:
...
Fix Bug #1942 : do not retrieve all columns in a table if we only need the 'ref' of the row (usually, the PRIMARY KEY) to calculate an ORDER BY
2004-03-17 19:37:48 +02:00
ram@gw.mysql.r18.ru
99d374159a
merge
2004-03-17 18:57:51 +04:00
bell@sanja.is.com.ua
8035ce40ec
DBUG_ASSERT(fixed == 0) added to fix_fields()
2004-03-17 14:26:26 +02:00
ram@gw.mysql.r18.ru
16179dbef0
Fix for the bug #3155 : strange results with index (x, y) ... WHERE x=val_1 AND y>=val_2 ORDER BY pk;
...
(test case is too big to be included, take a look at the bug database)
2004-03-17 15:30:17 +04:00
monty@mysql.com
350b433569
merge with 4.0
2004-03-16 22:41:30 +02:00
bell@sanja.is.com.ua
293bb8fee7
merge
2004-03-16 20:23:07 +02:00
bell@sanja.is.com.ua
579a94a328
after review & some other fixes
2004-03-16 20:19:36 +02:00
bell@sanja.is.com.ua
cd5c30c5dc
fix test during merge
2004-03-16 16:30:09 +02:00
bell@sanja.is.com.ua
e8a9242893
merge
2004-03-16 08:32:21 +02:00
serg@serg.mylan
3351b01d83
cleanup
2004-03-15 22:02:47 +01:00
bell@sanja.is.com.ua
6fc3d9ba81
merge
2004-03-15 17:01:30 +02:00
bell@sanja.is.com.ua
bffd015308
after review fixes
2004-03-15 15:38:53 +02:00
bell@sanja.is.com.ua
d2265b6345
merge
2004-03-15 13:16:40 +02:00
Sinisa@sinisa.nasamreza.org
a86753b00e
multi_update.result:
...
Test case for a #2996 bug fix
multi_update.test:
test case for a #2996 bug fix
sql_select.cc:
Fix for a bug #2996 involving multi-table updates over the const tables
2004-03-11 22:26:03 +02:00
monty@mysql.com
4ee44751d9
Fixed memory leak in DROP DATABASE when using RAID tables (Bug #2882 )
2004-03-10 13:46:11 +02:00
monty@mysql.com
ef971bb604
Ensure that one can't from the command line set a variable too small. (Bug #2710 )
...
Allow one to force lower_case_table_names to 0, even if the file system is case insensitive. This fixes some issues on Mac OS X (Bug #2994 )
Added variables "lower_case_file_system", "version_compile_os" and "license"
2004-03-06 10:43:35 +02:00
konstantin@oak.local
5e360685c1
Comment on handler::unlock_row()
2004-03-03 12:44:00 +03:00
igor@rurik.mysql.com
bae2554367
sql_select.cc, item_cmpfunc.h:
...
After merge fix for collation.
2004-02-19 17:12:31 -08:00
igor@rurik.mysql.com
e720c2ce69
sql_select.cc, opt_range.cc, item.cc:
...
After merge fixes.
2004-02-19 12:04:46 -08:00
igor@rurik.mysql.com
d24a2296bb
Manual merge
2004-02-19 01:12:49 -08:00
igor@rurik.mysql.com
09fa16424a
Many files:
...
After review fixes for Item_equal.
2004-02-18 22:21:37 -08:00
bell@sanja.is.com.ua
a66b398eb8
merge
2004-02-17 11:12:55 +02:00
bell@sanja.is.com.ua
f4d1ee971b
merge
2004-02-17 01:52:33 +02:00
bell@sanja.is.com.ua
3f86f10a57
ulternative bugfix for BUG#2508 and fix for BUG#2809 - every table has its own TABLE structure
2004-02-17 01:14:51 +02:00
monty@mysql.com
050af89dd8
Merge with public tree
2004-02-16 10:31:05 +02:00
monty@mysql.com
f43093ec0e
After merge fixes
...
Added more DBUG statements
Ensure that we are comparing end space with BINARY strings
Use 'any_db' instead of '' to mean any database. (For HANDLER command)
Only strip ' ' when comparing CHAR, not other space-like characters (like \t)
2004-02-16 10:03:25 +02:00
Sinisa@sinisa.nasamreza.org
125fb04b87
merge fixes
2004-02-11 19:15:02 +02:00
monty@mysql.com
ce14578909
Merge with 4.0.18
2004-02-11 00:06:46 +01:00
Sinisa@sinisa.nasamreza.org
451e423be4
Fixes for bugs #2508 and #2552
2004-02-10 21:34:25 +02:00
bell@sanja.is.com.ua
2fa0c78ec4
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-prepared-4.1
2004-02-10 02:41:21 +02:00
bell@sanja.is.com.ua
0aa7a4b4ea
after merge & valgrind test fixes (BUG#2120)
2004-02-10 02:18:22 +02:00
bell@sanja.is.com.ua
cefdd4fec6
merge
2004-02-09 15:49:11 +02:00
bell@sanja.is.com.ua
ff0a6e9686
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-derived2-4.1
2004-02-09 15:01:51 +02:00
bell@sanja.is.com.ua
637236e176
Merge sanja.is.com.ua:/home/bell/mysql/bk/work-derived2-4.1/
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-prepared-4.1
2004-02-09 14:47:41 +02:00
bell@sanja.is.com.ua
e58771bb07
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-prepared-4.1
2004-02-09 14:46:41 +02:00
bell@sanja.is.com.ua
b99d13582b
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-derived2-4.1
2004-02-09 12:10:12 +02:00
bell@sanja.is.com.ua
69e2460bd4
fixed subquery with PS (BUG#2462)
...
fixed UNION preparation
2004-02-08 20:14:13 +02:00
konstantin@mysql.com
2a4cfe8b4f
merge 3.23 -> 4.0, 2003/02/06
2004-02-06 15:23:41 +03:00
monty@mysql.com
480b082cf4
merge
2004-02-05 18:14:48 +01:00
bell@sanja.is.com.ua
930db43eb0
correct processing of rand() in subqueries with static tables (BUG#2645)
2004-02-05 12:32:22 +02:00
monty@mysql.com
6bfede9639
Added SQL_SELECT::cleanup() to make it easier to reuse SQL_SELECT item's for sub selects. Needed for proper fix for bug #2479 .
...
Added 'select_to_file' class to be able to merge identical code for select_export and select_dump
2004-02-05 10:22:08 +01:00
monty@mysql.com
7df839e757
Added testing of pthread_key_delete (to fix compile problem on SCO) (Bug #2461 )
...
DROP DATABASE now assumes RAID directories are in hex. (Bug #2627 )
Don't increment 'select_full_range' and similar statistics for EXPLAIN queries. (Bug #2506 )
Test in configure if pthread_key_delete() exists (to fix compile problem on SCO) (Bug #2461 )
2004-02-05 09:12:23 +01:00
konstantin@mysql.com
7e9944d3d5
cleanup: #ifdef DELETE_ITEMS removed
2004-02-03 23:34:31 +03:00
ram@gw.mysql.r18.ru
c4728c276a
Code cleanup:
...
we don't need opt_range.h and opt_range.cc files at all.
2004-02-03 14:35:24 +04:00
ram@gw.mysql.r18.ru
f231d9826b
just tried to find all 'skipp' and replace it with 'skip'.
2004-02-02 20:25:39 +04:00
ram@gw.mysql.r18.ru
3243678040
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into gw.mysql.r18.ru:/usr/home/ram/work/4.1.b2419
2004-02-02 19:33:45 +04:00
bar@bar.intranet.mysql.r18.ru
e2ffbc1a6a
Indexes can be used for optimization if the operation
...
collation is the same with the index collation.
2004-02-02 17:50:14 +04:00
bell@sanja.is.com.ua
8fdce902f9
avoid null check on fields where NULL is impossible
...
(BUG#2393)
2004-02-02 02:23:53 +02:00
bell@sanja.is.com.ua
f9af8578bc
make JOIN::prepare, JOIN::optimize only once for EXPLAIN of derived table
...
(BUG#2120 sfter merge)
2004-02-01 20:07:44 +02:00
bell@sanja.is.com.ua
bd259f54c9
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-derived2-4.1
2004-02-01 15:31:30 +02:00
bell@sanja.is.com.ua
2a9cd37cd6
now all tables of query are locked in one place (including derived tables)
...
fixed BUG#2120 and other problem with EXPLAINing derived tables
2004-02-01 15:30:32 +02:00
ram@gw.mysql.r18.ru
6fab168a63
fix for the bug #2419 : order by ignores rows.
...
null_ref_key moved to TABLE_REF.
new null range created if necessary.
2004-01-31 10:04:16 +04:00
monty@mysql.com
ed44e769ba
Fixed parsing of column names and foreign key constraints in Innobase to handle quoted identifiers and identifiers with space. (Bug #1725 )
...
Fix optimizer tuning bug when first used key part was a constant. (Bug #1679 )
2004-01-30 10:46:30 +01:00
serg@serg.mylan
bd1f8a927c
incorrect fix undone, as it causes memory leaks (e.g. in key.test)
2004-01-30 08:40:01 +01:00
jani@rhols221.adsl.netsonic.fi
85b00b7fb5
Fixed Bug#2479, "dependant subquery with limit crash".
...
The problem was that memory was free'd, but it was referenced
later. This free was unneccessary anyway, because join_free() /
JOIN::cleanup takes care of this later on.
Added test case into t/subselect.test for it.
Regards,
Jani
2004-01-29 01:16:24 +02:00
monty@mysql.com
b078d2df64
merge
2004-01-20 00:15:01 +01:00
monty@mysql.com
0eb6070068
Code cleanup
...
Fixed bug in optimizer where it didn't choose right table order in some cases
2004-01-19 23:51:17 +01:00
monty@mysql.com
b5d7506386
Fixed bug in IN() optimization
2004-01-19 23:10:01 +01:00
hf@deer.(none)
7dda8c102f
Merge deer.(none):/home/hf/work/mysql-4.1.clean
...
into deer.(none):/home/hf/work/mysql-4.1.1676
2004-01-19 21:06:27 +04:00
hf@deer.(none)
1f8eb40310
Code cleanup (working on PS & cleanup() code)
...
Item & changed with Item* in Item_xxx constructors
tables_list.first -> get_table_list()
2004-01-19 19:53:25 +04:00
bell@sanja.is.com.ua
242e8dbbbb
merge
2004-01-17 13:13:48 +02:00
bell@sanja.is.com.ua
c04fd7b177
switched to new syntax (TYPE->ENGINE)
...
check of memory allocation operation was added
2004-01-17 13:00:46 +02:00
ram@gw.mysql.r18.ru
7b652e9a29
fix for the 2361 bug: ALTER TABLE ... DROP PRIMARY KEY drops a non-primary key
...
"PRIMARY" has been replaced by primary_key_name.
2004-01-14 16:01:55 +04:00
bell@sanja.is.com.ua
e5fa5585f0
removed droping field->query_id for reinitialization tables for subquery.
...
(BUG#2089)
2004-01-03 00:12:07 +02:00
igor@rurik.mysql.com
c236568ac9
Auto Merge
2003-12-23 02:24:12 -08:00
sergefp@mysql.com
23b25675f2
Merge mysql.com:/home/psergey/mysql-5.0-latest-pull
...
into mysql.com:/dbdata/psergey/mysql-5.0-imerge-unique
2003-12-20 00:54:38 +03:00
pem@mysql.com
12187684ca
Merging lex-pointer change from 4.1 to 5.0.
2003-12-19 20:13:48 +01:00
konstantin@oak.local
d37da004f6
THD::lex now points to THD::main_lex like in 5.0
...
All tests pass (client_test included)
2003-12-19 20:52:13 +03:00
pem@mysql.com
99e0ae85c7
Merge 4.1 to 5.0.
2003-12-19 18:03:27 +01:00
monty@mysql.com
031390a9a4
Fixes after merge with 4.0
...
Cleaned up embedded library access and query cache handling
Changed min stack size to 128K (to allow longer MyISAM keys)
Fixed wrong priority for XOR (should be less than NEG to get -1^1 to work)
2003-12-19 16:25:50 +02:00
psergey@psergey-rh8.(none)
b1f07034da
Merge psergey-rh8.(none):/home/psergey/mysql-5.0-latest-pull
...
into psergey-rh8.(none):/home/psergey/mysql-5.0-imerge-unique
2003-12-18 17:01:35 +03:00
monty@mysql.com
b9d8f108c1
Simple cleanups
2003-12-18 14:40:19 +02:00
monty@mysql.com
e0cc6799ec
Merge with 4.0.17
2003-12-17 17:35:34 +02:00
vva@eagle.mysql.r18.ru
59004f01f9
fixed restoring of thd->count_cuted_fields in store_val_in_field
...
(fixed #bug 2012)
2003-12-16 17:55:34 -04:00
monty@mysql.com
bd92d9b9ae
Merge
2003-12-13 04:04:38 +02:00
monty@mysql.com
f995a5f4aa
Fix autoincrement for signed columns (Bug #1366 )
...
Fixed problem with char > 128 in QUOTE() function. (Bug #1868 )
Disable creation of symlinks if my_disable_symlink is set
Fixed searching of TEXT with end space. (Bug #1651 )
Fixed caching bug in multi-table-update where same table was used twice. (Bug #1711 )
Fixed problem with UNIX_TIMESTAMP() for timestamps close to 0. (Bug #1998 )
Fixed timestamp.test
2003-12-12 22:26:58 +02:00
hf@deer.(none)
0abfaa9840
Fix #2093
...
Update after discussion with Monty
2003-12-12 22:13:57 +04:00
hf@deer.(none)
e6e0937dc4
Proposed fix for #2093
...
it happens because of the LEFT JOINT optimization in add_key_part()
This optimization does exactly the same in JOIN and in WHERE conditions
Not right.
I moved that optimization one level upper.
2003-12-12 21:26:20 +04:00
monty@mysql.com
7e92336b1d
Fixed a possible memory leak on MacOSX when using the shared libmysql.so library (Bug #2061 )
...
mysql_server_init() now returns error code if something went wrong (Bug #2062 )
Don't use my_fopen() when reading symlink information as this may cause problems when a lot of files are opened.
Free thread keys with pthread_key_delete() instead of relying on automatic free. (Bug #2062 )
Fixed bug in UNION statement with alias '*'. (Bug #1249 )
Fixed a bug in DELETE ... ORDER BY ... LIMIT where the rows where not deleted in the proper order. (Bug #1024 ).
FOUND_ROWS() could return incorrect number of rows after a query with an impossible WHERE condition.
HOW DATABASES doesn't anymore show .sym files (on windows) that doesn't point to a valid directory. (Bug #1385 )
2003-12-11 06:24:08 +02:00
igor@rurik.mysql.com
2dab0b9cc1
Merge rurik.mysql.com:/home/igor/mysql-5.0
...
into rurik.mysql.com:/home/igor/dev/mysql-5.0-0
2003-12-10 09:16:37 -08:00
konstantin@mysql.com
5fa5a8df4e
Fix for bug #1335 : filesort is missing in EXPLAIN if ORDER BY NULL is used
2003-12-09 23:52:58 +03:00
sergefp@mysql.com
60563049e9
Merge mysql.com:/home/psergey/mysql-5.0-latest-pull
...
into mysql.com:/home/psergey/mysql-5.0-imerge-unique
2003-12-09 23:41:25 +03:00
pem@mysql.com
24a2ae44a3
Merged 4.1 -> 5.0
2003-12-09 19:00:34 +01:00
vva@eagle.mysql.r18.ru
17330df85f
Merge
2003-12-09 13:34:57 -04:00
serg@serg.mylan
6d0703ab5b
QUERY_NO_GOOD_INDEX_USED and QUERY_NO_INDEX_USED moved from thd->lex.select_lex->options to thd->server_status
2003-12-06 23:21:09 +01:00
igor@rurik.mysql.com
31700ed218
Merge rurik.mysql.com:/home/igor/mysql-5.0
...
into rurik.mysql.com:/home/igor/dev/mysql-5.0-0
2003-12-02 16:46:06 -08:00
igor@rurik.mysql.com
0ba4b082fe
sql_select.cc:
...
Fixed a problem a with special cases of IS NULL usage
caused by some erroneous change made when Item_equal
was introduced.
2003-12-02 14:33:42 -08:00
pem@mysql.com
2c16ccdbe6
Merge mysql.com:/home/pem/work/mysql-4.1
...
into mysql.com:/home/pem/work/mysql-5.0
2003-12-02 17:08:24 +01:00
igor@rurik.mysql.com
e235d796c9
Merge
2003-12-01 18:47:19 -08:00
igor@rurik.mysql.com
1a9be364dd
range.test:
...
Added tests for != predicate.
sql_select.cc:
Fixing bugs in Item_equal code:
added a parameter in substitute_for_equal_field;
modified eliminate_item_equal.
sql_list.h:
Cleanup
2003-12-01 18:19:31 -08:00
konstantin@oak.local
f35787b628
cleanup: unused variable removed
...
followup of Bordeaux Optimizer session
2003-12-01 20:53:05 +03:00
pem@mysql.com
6e717133c5
Merge 4.1 to 5.0
2003-12-01 16:14:40 +01:00
monty@mysql.com
6a3e29c865
Fix wrong last edit for last commit
2003-11-28 13:15:42 +02:00
monty@mysql.com
ede8169d24
Added missing SSL library (Should be in source distribution)
...
Fixed compiler warnings (a lot of hidden variables detected by the Forte compiler)
Added a lot of 'version_xxx' strings to 'show variables'
Prevent copying of TMP_TABLE_PARAM (This caused core dump bug on Solaris)
Fixed problem with printing sub selects to debug log
2003-11-28 12:18:13 +02:00
igor@rurik.mysql.com
be27811faa
Post-merge after itroducing Item_equal
2003-11-26 17:54:20 -08:00
igor@rurik.mysql.com
3938ac5436
This ChangeSet Introdices Item_equal.
...
The objects of this class represent multiple conjunctive equalities
in where conditions: =(f1,f2,...fn) <=> f1=f2 and f2= ... and =fn.
The objects are used to generate new possibale paths to access
the tables when executing a query.
They are also used to optimize the execution plan
chosen by the optimizer for the query.
2003-11-26 17:23:52 -08:00
sergefp@mysql.com
5f9718adfb
Merging index_merge/Unique into 5.0
2003-11-23 15:17:46 +03:00
bell@sanja.is.com.ua
7191ea0ae3
Fixed UNION fields type/length detecting
2003-11-23 02:01:15 +02:00
sergefp@mysql.com
30b3c3bf1b
Merged, most likely needs post-merge fix
2003-11-21 00:27:54 +03:00
sergefp@mysql.com
4016048d81
logging_ok:
...
Logging to logging@openlogging.org accepted
sql_union.cc, sql_select.cc, opt_range.h, opt_range.cc, opt_ft.h:
Post-merge fixes
Many files:
new file
2003-11-20 23:27:11 +03:00
monty@mysql.com
7c6113a39f
Merge key cache structures to one
...
Fixed compiler warnings (IRIX C compiler and VC++)
2003-11-20 22:06:25 +02:00
konstantin@mysql.com
dd287a4cdf
added comments to simple_order, simple_group, no_order, skip_sort_order
2003-11-20 21:21:56 +03:00
pem@mysql.comhem.se
5b355ea6f5
Post-merge fixes.
2003-11-19 16:59:35 +01:00
pem@mysql.com
28a2c6a96b
Merging 4.1->5.0.
2003-11-19 15:19:46 +01:00
sergefp@mysql.com
1c61a92ba7
index_merge implementation using Unique class, to be merged into 5.0
2003-11-19 00:37:17 +03:00
bell@sanja.is.com.ua
cb19ad9ac1
fixed using 'uncachable' tag and RAND_TABLE_BIT setting
2003-11-17 20:53:40 +02:00
bell@sanja.is.com.ua
2cb4abb5a7
fixed error handling inside su_select() for multidelete
...
(BUG#1839)
2003-11-15 21:52:21 +02:00
psergey@psergey.(none)
4894565432
merging in index_merge (in progress, not yet working)
2003-11-13 22:14:37 +03:00
psergey@psergey.(none)
ca6c4cc30b
Added index_merge access method
2003-11-13 17:52:02 +03:00
bell@sanja.is.com.ua
754d941eca
fixed:
...
==2761== Thread 10:
==2761== Conditional jump or move depends on uninitialised value(s)
==2761== at 0x81913BB: find_best(JOIN*, unsigned long long, unsigned, double, double) (sql_select.cc:2689)
==2761== by 0x8191030: find_best_combination(JOIN*, unsigned long long) (sql_select.cc:2599)
2003-11-04 20:50:01 +02:00
bell@sanja.is.com.ua
09f780daad
fixed:
...
==2761== Thread 10:
==2761== Conditional jump or move depends on uninitialised value(s)
==2761== at 0x818F580: make_join_statistics(JOIN*, st_table_list*, Item*, st_dynamic_array*) (sql_select.cc:1850)
==2761== by 0x818B705: JOIN::optimize() (sql_select.cc:578)
2003-11-04 20:23:39 +02:00
monty@narttu.mysql.fi
669365b41c
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into narttu.mysql.fi:/my/mysql-4.1
2003-11-04 14:09:54 +02:00
bell@sanja.is.com.ua
909c229c32
avoid problem when all tables are const
2003-11-04 13:28:36 +02:00
monty@narttu.mysql.fi
4e4725377d
Merge with 4.0
2003-11-04 09:40:36 +02:00
bell@sanja.is.com.ua
dde384d9ea
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-print_subselect-4.1
2003-11-03 20:43:21 +02:00
bell@sanja.is.com.ua
d03bdc7628
removed debug output
2003-11-03 20:42:55 +02:00
konstantin@mysql.com
0143e48568
fix for bug #1724 'WHERE ... IN() optimizer behaviour
...
has changed since 4.0.14'
We need to calculate cost of RANGE
scan if it is present instead of cost of
FULL scan.
2003-11-03 19:56:01 +03:00
bell@sanja.is.com.ua
414478f397
after review fix
2003-11-03 13:44:23 +02:00
bell@sanja.is.com.ua
e025adb403
Merge
2003-11-03 08:47:27 +02:00
bell@sanja.is.com.ua
777316c3e1
fixed BUG#1645
...
all calls of fix_fields() are inspected
(copy of cset which I lost in accidatly tree delete)
2003-11-02 17:27:35 +02:00
bell@sanja.is.com.ua
33f6f72979
join_free now is method of JOIN and commented
...
dependence should mean uncacheability
2003-11-02 16:31:22 +02:00
bell@sanja.is.com.ua
e32a1c923a
fixed locking problem with innodb & subqueries (BUG#1708)
...
tests with innodb moved to separate file
2003-11-02 13:53:38 +02:00
bell@sanja.is.com.ua
dba82596aa
merge
2003-10-31 23:03:27 +02:00
vva@eagle.mysql.r18.ru
9c7b1cf8ea
fixed bug #1688 "CREATE TABLE ... SELECT with default()"
2003-10-31 16:24:55 -04:00
bell@sanja.is.com.ua
0747324ede
merge
2003-10-31 22:14:49 +02:00
serg@serg.mylan
b1f5a03685
Merge bk-internal:/home/bk/mysql-4.1/
...
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
2003-10-31 14:25:38 +01:00
ram@gw.mysql.r18.ru
c5b481d99a
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into gw.mysql.r18.ru:/usr/home/ram/work/4.1.wl1056
2003-10-31 13:03:12 +04:00
ram@gw.mysql.r18.ru
90ffe1be00
WL #1056 : Eliminate NOT operators from where condition
2003-10-31 13:02:16 +04:00
serg@serg.mylan
9c4049ad12
Bitmap post-review fixes
2003-10-30 19:17:57 +01:00
bell@sanja.is.com.ua
33346e26af
added code covarage for functions convert(), nullif(), crc32(), is_used_lock(), char_lengtrh(), bit_xor()
...
added string length for more speed
made code covarage for print() method of Item
fixed printability of some items (SCRUM) (WL#1274)
2003-10-30 12:57:26 +02:00
serg@serg.mylan
6e17f4f20d
fixes to Bitmap class
2003-10-24 22:44:48 +02:00
bell@sanja.is.com.ua
934fa2a104
Merge
2003-10-22 20:52:47 +03:00
pem@mysql.com
337238b78a
Merging 4.1->5.0
2003-10-22 16:10:22 +02:00
serg@serg.mylan
b93c83ee2a
Bug#1271 - RAND_TABLE_BIT in expression and only const_tables in join
2003-10-21 17:34:40 +02:00
serg@serg.mylan
f944fd4a65
merged
2003-10-21 11:58:43 +02:00
bell@sanja.is.com.ua
9d294b869e
correct table name assigned to temporary table field:
...
- correct table name shown in EXPLAIN Iindex reference)
- pointer on freed memmory (reallocation of table name in reusing table entry) can't be used in EXPLAIN
(BUG#1584)
2003-10-19 14:25:33 +03:00
kostja@oak.local
c7d8977f43
fix for one of the bugs spotted by #1274
2003-10-16 17:00:09 +04:00
bell@sanja.is.com.ua
a7bdd19707
subqueries made printable
...
new EXPLAIN parameter to show real query as it was interpreted
(SCRUM) (WL#1274)
2003-10-16 15:54:47 +03:00
serg@serg.mylan
50d9b95b77
merged
2003-10-15 12:25:44 +02:00
monty@mashka.mysql.fi
461d1627b3
merge with 4.0 for more memory allocation variables.
2003-10-13 15:50:30 +03:00
monty@mashka.mysql.fi
c60a75e9ba
Add warnings for single line inserts. To do this I had to convert count_cuted_fields to an enum (to be able to detect setting a NOT NULL field to NULL)
2003-10-11 23:26:39 +03:00
monty@mashka.mysql.fi
c95d142f8f
Add new user variables for tuning memory usage:
...
query_alloc_block_size, query_prealloc_size, range_alloc_block_size,transaction_alloc_block_size and transaction_prealloc_size
Add more checks for "out of memory" detection in range optimization
2003-10-11 22:00:24 +03:00
serg@serg.mylan
8cc3951c8f
key_map with more that 64 bits width
2003-10-11 13:06:55 +02:00
bell@laptop.sanja.is.com.ua
99fe76453e
samall optimisation (any independent query will not save data for rexecution)
...
saving/restoring join_tab array (to save it of chnging by create_sort_index() before reexecuting)
(BUG#1523)
2003-10-10 21:49:48 +03:00
monty@narttu.mysql.fi
d37a5c4dd7
Indentation cleanups
...
Remove wait_if_global_read_lock on commit as this can cause deadlocks
2003-10-08 21:50:05 +03:00
monty@narttu.mysql.fi
dc6f07256c
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into narttu.mysql.fi:/my/mysql-4.1
2003-10-08 18:55:34 +03:00
monty@narttu.mysql.fi
9e57c12b5a
Fixed bug in error handling of CREATE ... SELECT
...
More tests cases
After merge fixes
2003-10-08 18:53:31 +03:00
monty@narttu.mysql.fi
359d40f2f5
merge
2003-10-07 21:41:07 +03:00
monty@narttu.mysql.fi
1f8e38d03a
Merge with 4.0 to get fix for mysqlbinlog
2003-10-07 21:41:06 +03:00
bell@laptop.sanja.is.com.ua
1324a97f63
Merge laptop.sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into laptop.sanja.is.com.ua:/home/bell/mysql/bk/work-allany_aggregate-4.1
2003-10-07 21:01:57 +03:00
heikki@hundin.mysql.fi
6112853cda
Many files:
...
Multiple tablespaces for InnoDB
sql_table.cc:
Tell explicitly that InnoDB should retrieve all columns in CHECKSUM TABLE
sql_update.cc, sql_select.cc, my_base.h:
More descriptive flag name HA_EXTRA_RETRIEVE_ALL_COLS
2003-10-07 17:28:59 +03:00
monty@narttu.mysql.fi
6056cfadfc
Merge with 4.0.16
2003-10-07 15:42:26 +03:00
monty@narttu.mysql.fi
4b491cb788
Simple optimization
2003-10-07 13:26:56 +03:00
vva@eagle.mysql.r18.ru
795e14871d
Fixed bug #1323 (varchar fields becoming char fields adter create ... select)
2003-10-03 17:54:32 -04:00
pem@mysql.com
8d884c02bb
Merging 4.1 -> 5.0
2003-09-24 11:29:38 +02:00
bell@laptop.sanja.is.com.ua
a947a2bf53
fixed processing aggregate functions with static tables (BUG#1318)
2003-09-20 18:30:36 +03:00
hf@deer.(none)
a2dbfaefa3
SCRUM
...
embedded library
hash_insert renamed to my_hash_insert to avoid name intersection
with another libraries
is there better idea?
2003-09-19 14:44:31 +05:00
kostja@oak.local
6fba16eabf
Applied Monty corrections to the FULL SCAN
...
optimiser bug patch.
2003-09-17 21:52:05 +04:00
kostja@oak.local
de3019c61a
comment made more explanatory
2003-09-16 21:20:16 +04:00
kostja@oak.local
29eec6c738
join buffer cache usage/not usage is taken
...
into account to increase the cost of FULL SCAN
2003-09-16 04:04:54 +04:00
kostja@oak.local
ab576328f0
Fixed bug in the optimiser for FULL TABLE SCAN case:
...
to estimate correctly cost of full table scan we should take into
account rows read and skipped on each iteration.
2003-09-15 22:21:39 +04:00
bell@sanja.is.com.ua
46b8c3ea8b
renamed join_types (as was suggested by Peter Gulutzan)
2003-09-14 09:40:57 +03:00
bell@sanja.is.com.ua
0662489344
removed double procedure deletetion
2003-09-13 10:30:41 +03:00
bell@sanja.is.com.ua
462dba1b5b
fixed memory leak (now JOIN cleaning procedure always called)
2003-09-13 02:07:06 +03:00
monty@mashka.mysql.fi
04c43fca8e
Optimize thai character handling
...
Remove sel000xxxx tests
After merge fixes
2003-09-12 04:18:07 +03:00
monty@mashka.mysql.fi
7538242e4f
merge with 4.1 tree
2003-09-11 20:31:40 +03:00
monty@mashka.mysql.fi
73f66f68fd
merge with 4.0.15
2003-09-11 20:24:14 +03:00
monty@mashka.mysql.fi
45aa92c574
After merge fixes.
...
Note that mix_innodb_myisam_binlog and union fails after this patch (Will be fixed shortly by maintaners of this code)
2003-09-11 19:06:23 +03:00
bell@sanja.is.com.ua
813d81c726
removing additional IN subquery condition
...
fixed IN optimisation bug
2003-09-08 21:58:09 +03:00
serg@serg.mylan
493d5f9504
bug#926 fix undone - it caused suboptimal execution plan for "range ON, no WHERE" query
...
Another fix applied
2003-09-05 11:42:21 +02:00
monty@narttu.mysql.fi
4b3b4b9250
merge
2003-09-03 19:53:08 +03:00
serg@serg.mylan
755455e15c
merged
2003-09-03 12:07:18 +02:00
serg@serg.mylan
b2c83e7f03
workaround for IN's special treatment of first argument. Not for 4.1
2003-09-01 14:18:27 +02:00
bell@sanja.is.com.ua
334841d902
tmp_table_field() renamed to get_tmp_table_field() to avoid redifinition of tmp_table_field(TABLE *t_arg)
2003-08-29 16:24:03 +03:00
monty@narttu.mysql.fi
77a70a0a24
merge with 4.0.15
2003-08-29 13:44:35 +03:00
bell@sanja.is.com.ua
96cb167d28
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-enum-4.1
2003-08-28 20:38:08 +03:00
serg@serg.mylan
4808a6d9f2
oom protection
2003-08-28 12:37:50 +02:00
bell@laptop.sanja.is.com.ua
ec8d6d05de
enum renamed (asked for compilation under windows)
2003-08-28 13:21:30 +03:00
bell@laptop.sanja.is.com.ua
3d2a3804a1
reset() split in 2 function clear() & add()
...
aggregate function reinitialization (if no rows was found) made with help of clear()
(fixed BUG#860)
2003-08-28 03:10:14 +03:00
Sinisa@sinisa.nasamreza.org
566ebb63ce
merge fixes
2003-08-27 14:36:38 +03:00
monty@narttu.mysql.fi
1d0b539263
Fix for bug in ROLLUP when all tables where 'const' tables (Bug #714 )
2003-08-26 20:23:48 +03:00
pem@mysql.com
7f158dd12a
Merge 4.1 into 5.0
2003-08-26 11:51:09 +02:00
Sinisa@sinisa.nasamreza.org
4ba1506244
union.result:
...
same as above
sql_lex.h:
same as above
sql_union.cc:
same as aobve
sql_select.cc:
Fixing that SQL_CALC_FOUND_ROWS work properly in UNION's in 4.1
Plus updating some fields in THD in the proper places
plus fixing a wrong result
2003-08-23 21:21:02 +03:00
monty@narttu.mysql.fi
359846f052
Fixed some varnings from valgrind
...
Set min value of max_allowed_packet to 1024
Fixed problem with UNION's without braces and SQL_CALC_FOUND_ROWS, LIMIT #,#
and ORDER BY...LIMIT
2003-08-20 16:25:44 +03:00
bell@laptop.sanja.is.com.ua
dd9cbce47b
merge
2003-08-19 20:14:35 +03:00
monty@mashka.mysql.fi
10c4acfb4f
merge
2003-08-19 00:10:21 +03:00
bell@laptop.sanja.is.com.ua
85f397781b
Code cleanup
2003-08-16 13:26:48 +03:00
monty@mashka.mysql.fi
a9146ace70
Cleanups to recent patches
...
Fix packet error when using wrong GRANT command
2003-08-15 09:54:19 +03:00
monty@mashka.mysql.fi
fb47e64256
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
...
into mashka.mysql.fi:/home/my/mysql-4.0
2003-08-13 13:26:52 +03:00
bell@sanja.is.com.ua
758129279f
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-simple_in-4.1
2003-08-13 10:12:41 +03:00
serg@serg.mylan
7c5ba4f6fa
Merge bk-internal:/home/bk/mysql-4.1/
...
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
2003-08-12 19:44:13 +02:00
bell@sanja.is.com.ua
b6a8d68ae4
fixed problem with reference on derived table fields (BUG#1031)
2003-08-12 15:04:49 +03:00
monty@mashka.mysql.fi
2263e3e51f
Merge with 4.0.14
2003-08-11 22:44:43 +03:00
bell@sanja.is.com.ua
71b39c3020
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-11 11:57:37 +03:00
bell@sanja.is.com.ua
a0fda66f00
merge
2003-08-11 11:51:33 +03:00
monty@mashka.mysql.fi
2fb441fdf7
Remove wrong bug fix when calling create_sort_index.
...
Fix possible replication bug with LOAD DATA ... IGNORE LINES #
2003-08-10 05:14:16 +03:00
serg@serg.mylan
835e00661d
Merge bk-internal:/home/bk/mysql-4.1/
...
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
2003-08-09 23:48:57 +02:00
serg@serg.mylan
083acc29bb
BETWEEN bug fix: non-const expressions on both ends
2003-08-09 01:20:02 +02: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
miguel@hegel.local
27fde36d15
Fix an erronous cast for GCC introduced for to fix VC++ compiler error
2003-08-05 22:57:44 -03:00
serg@serg.mylan
79922d946a
table checksum background:
...
my_checksum() mysys function
NISAM checksum code moved from mysys to isam/ - it's obsolete
MyISAM checksum code moved to mysys
table's checksum accessible from sql layer
SHOW TABLE STATUS shows checksum (WL#646)
code cleanup
2003-08-05 21:14:15 +02:00
bar@bar.mysql.r18.ru
a60acfcfe0
Old style charset() and set_charset() were removed.
2003-08-05 12:52:37 +05: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
miguel@hegel.local
be123fe5a7
Fix VC++ compiler error
2003-08-04 09:44:26 -03: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
serg@serg.mylan
4e22494ebf
outer join, impossible on condition, where, and usable key for range
...
bug#926
2003-07-25 14:32:03 +02:00
bell@sanja.is.com.ua
7e34954b5e
new optimisation for ref_null (SCRUM) (WL#818)
2003-07-17 19:39:31 +03:00
ram@mysql.r18.ru
4ca9718375
Fix for the bug #801 : create table t1 select x'41'; doesn't work
2003-07-11 14:17:18 +05:00
pem@mysql.telia.com
a8a29a39d2
Merging 4.1 into 5.0 (second pass; post-merge fixes).
...
One test in subselect.test still wrong.
Had to reconstruct all errmsg.txt files completely, since auto-merge made
a mess of the lot. :-(
2003-07-09 17:07:12 +02:00
pem@mysql.telia.com
9c3a7a6ba3
Merge 4.1 into 5.0 (first pass).
2003-07-08 17:50:23 +02: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
serg@serg.mylan
bbe08e4a03
finally proper recursive descent for parsing expressions with MATCH ... AGAINST in add_ft_keys()
2003-07-07 19:02:58 +02:00
bell@sanja.is.com.ua
acece34bce
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-07-07 18:51:14 +03:00
bell@sanja.is.com.ua
5c836428eb
merge
2003-07-07 18:49:54 +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
serg@serg.mylan
ec1aca5c52
correct (finally) condition for MATCH >0, >=0 etc in add_ft_keys (SW#1647)
...
still no rec. descent
2003-07-07 16:45:19 +02:00
bell@sanja.is.com.ua
7ad5331768
merge
2003-07-07 10:30:52 +03:00
bell@sanja.is.com.ua
bfc70eb9c9
fixed subselect with to temporary tables executing
...
(now it return correct results. Test was commited before, but it is not pushed,
BUG# is not registered, because bug was introduced after release)
2003-07-07 00:45:51 +03:00
bell@sanja.is.com.ua
7b450a4fda
avoiding of allocating JOIN structure on every UNION executing
...
(SCRUM)
2003-07-05 17:21:39 +03:00
bell@sanja.is.com.ua
f9936c61f7
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-alloc_group-4.1
2003-07-05 00:10:51 +03:00
serg@serg.mylan
6a40b8e889
merge + order by (bug #515 ) temporary fix
...
properly fixed in 4.1
2003-07-04 14:42:57 +02:00
bell@sanja.is.com.ua
0f0a0f95ad
fixed typo in previous fix
2003-07-03 15:25:00 +03:00
bell@sanja.is.com.ua
7f29814769
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-4.1
2003-07-03 14:13:47 +03:00
bell@sanja.is.com.ua
9ef453c74b
after review fix
2003-07-03 14:11:08 +03:00
bell@sanja.is.com.ua
73fdf52fa2
merged
2003-07-03 11:59:57 +03:00
hf@deer.(none)
0cdf7f39af
Proposed bugfix for #717
...
Current table is placed into read_tables set of the current join_tab->select
so get_mm_parts function thinks that current table's record is read and
tries to calculate WHERE condition with the fields of the record.
Result of these calculations is unpredictable.
Looks funny - outcome of the SELECT depends on the queries executed before.
Anyway i think we should have testcase on this part of the code.
2003-07-03 10:42:13 +05: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
5eaaf8e732
after review changes (SCRUM)
...
removed outer resolving flag (because of movingtransformation after fix_fields)
2003-07-02 01:45:22 +03:00
Sinisa@sinisa.nasamreza.org
b7644c9212
merge changes
2003-07-02 00:26:23 +03:00
Sinisa@sinisa.nasamreza.org
c1660e1a23
Lot's of clean-ups and fixes for 4.0.14.
2003-07-02 00:10:47 +03:00
bell@sanja.is.com.ua
b6f39d22e5
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-alloc_group-4.1
2003-07-01 19:48:31 +03:00
bell@sanja.is.com.ua
5b3594a80c
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-err-4.1
2003-07-01 19:05:31 +03:00
monty@mashka.mysql.fi
baf9baba2a
merge
2003-07-01 15:57:45 +03:00
monty@mashka.mysql.fi
ca2913a07e
Merge with 3.23 tree to get latest bug fixes
2003-07-01 15:02:16 +03:00
bell@sanja.is.com.ua
791ae8d34d
merge
2003-07-01 13:57:46 +03:00
monty@mashka.mysql.fi
5dab55de73
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
...
into mashka.mysql.fi:/home/my/mysql-4.0
2003-07-01 13:30:55 +03:00
bell@sanja.is.com.ua
f1353c1dda
merged
2003-07-01 10:03:20 +03:00
monty@mashka.mysql.fi
dbebed97e4
Remove FORCE_INIT_OF_VARS when compiling for valgrind/purify to spot wrong LINT_INIT() options
...
Fixed bug in ALTER TABLE ... MODIFY integer-column
Added ref_or_null optimization (needed for subqueries)
2003-06-30 13:23:54 +03:00
bell@sanja.is.com.ua
100a101ab6
Merge
2003-06-30 13:14:18 +03:00
monty@mashka.mysql.fi
730776c452
Fixed 'Unknown error' when doing ORDER BY on reference table which
...
was used with NULL value on NOT NULL column. (Bug #479 )
2003-06-29 21:15:51 +03:00
bell@sanja.is.com.ua
7c799b17b6
merged
2003-06-29 15:35:48 +03:00
bell@sanja.is.com.ua
a101fc9e79
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-cset-4.1
2003-06-28 13:43:18 +03:00
bell@sanja.is.com.ua
95fbec7599
after review patch
2003-06-27 23:00:33 +03:00
bell@sanja.is.com.ua
1c2191e2cc
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-order-4.1
2003-06-27 22:19:14 +03:00
monty@mashka.mysql.fi
34919a03c4
Added thread variable max_seeks_for_key
...
Change optimizer to prefer key lookups before table scan
Change table scans to be done after tables with constrains on scanned table
2003-06-27 03:04:54 +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
Sinisa@sinisa.nasamreza.org
66b60b57af
Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.0
...
into sinisa.nasamreza.org:/mnt/work/mysql-4.0
2003-06-25 18:40:31 +03:00
Sinisa@sinisa.nasamreza.org
1d93c8f550
Fix for a bug which results in "Unknown Error".
...
Query should actually return empty result set, but currently can't, as
it attempts to store NULL in NOT NULL field, because that is a match
made by self join conditions.
2003-06-25 18:36:52 +03:00
bell@sanja.is.com.ua
39fb96c662
fixed mistyping (BUG #699 )
2003-06-25 16:51:00 +03:00
hf@deer.(none)
0ede29ffd0
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.0
...
into deer.(none):/home/hf/work/mysql-4.0.674
2003-06-25 17:16:53 +05:00
bell@sanja.is.com.ua
76315814b7
Fixed error handling to be able do not interrupt update (907) (SCRUM)
...
fixed bug of current select pointer in subselect execution
fixed layuot
2003-06-25 01:19:09 +03:00
bar@bar.mysql.r18.ru
8bd715daa4
Item character set is stored in Item itself now, not in ITem->str_value
2003-06-24 13:37:11 +05:00
monty@narttu.mysql.fi
28e96d95c5
Simple code cleanup
2003-06-23 20:05:54 +03:00
hf@deer.(none)
f0f92fe443
Proposed fix for #674
...
This crash happens in rather exotic case when we try to run
SELECT DISTINCT some_func(SUM(some_field)) GROUP BY another_field;
on a table with single row.
Optimizer marks this table as const, sets group=NULL (with remove_const)
thus, create_tmp_table makes mistake collecting columns for temporary table
and then crashes because the field_count gets less than hidden_columns_count.
2003-06-21 16:59:40 +05:00
bell@sanja.is.com.ua
af6de3bfee
merging
2003-06-19 16:15:11 +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
serg@serg.mylan
b387b5add9
fulltext and left join bug fixed
2003-06-16 23:05:45 +02:00