monty@narttu.mysql.fi
27e331c30a
Revert change of lower-case-table handling as this breaks how alias works.
...
Changes like this should be done to 4.1, not to a stable release
2003-08-29 04:17:30 +03:00
monty@narttu.mysql.fi
a2a1e97226
Portability fixes
2003-08-28 22:18:02 +03:00
pem@mysql.com
7f158dd12a
Merge 4.1 into 5.0
2003-08-26 11:51:09 +02:00
bell@laptop.sanja.is.com.ua
f77f46d8eb
Merge laptop.sanja.is.com.ua:/home/bell/mysql/bk/work-all_any-4.1
...
into laptop.sanja.is.com.ua:/home/bell/mysql/bk/work-all_any_group-4.1
2003-08-23 13:33:02 +03:00
dlenev@mysql.com
bb96092202
Fix for BUG#1086. Now we don't preserve event's log_pos through
...
log-slave-updates since this causes unexpected values in
Exec_master_log_pos in A->B->C replication setup, synchronization
problems in master_pos_wait()...
Still this brokes some functionality in sql/repl_failsafe.cc
(but this file is not used now)
2003-08-20 03:38:31 +04:00
monty@mashka.mysql.fi
eb6458cb18
After merge fixes + bugs from last merge
2003-08-19 16:00:12 +03:00
monty@mashka.mysql.fi
4f7512160b
After merge fixes
...
Use server character set if --default-character-set is not used
Added convert_string() for more efficient alloc+character-set convert of strings
2003-08-19 00:08:08 +03:00
bell@sanja.is.com.ua
6ac8e9b93c
optimisation of independent ALL/ANY with aggregate function (WL#1115) (SCRUM)
2003-08-12 12:38:03 +03:00
kostja@oak.local
715f8747d4
few compile-time bugs fixed
2003-07-18 18:57:21 +04:00
pem@mysql.telia.com
9c3a7a6ba3
Merge 4.1 into 5.0 (first pass).
2003-07-08 17:50:23 +02:00
pem@mysql.com
6d225437ed
Code cleanup (and moved sp cache to separate file).
2003-07-03 15:58:37 +02:00
kostja@oak.local
7df0475847
First version of new authentification procedure: now authentification is one-stage (instead of two-stage in 4.1)
...
For now following tasks have been done:
- PASSWORD() function was rewritten. PASSWORD() now returns SHA1
hash_stage2; for new passwords user.password contains '*'hash_stage2; sql_yacc.yy also fixed;
- password.c: new functions were implemented, old rolled back to 4.0 state
- server code was rewritten to use new authorization algorithm (check_user(), change
user, and other stuff in sql/sql_parse.cc)
- client code was rewritten to use new authorization algorithm
(mysql_real_connect, myslq_authenticate in sql-common/client.c)
- now server barks on 45-byte-length 4.1.0 passwords and refuses 4.1.0-style
authentification. Users with 4.1.0 passwords are blocked (sql/sql_acl.cc)
- mysqladmin.c was fixed to work correctly with new passwords
Tests for 4.0-4.1.1, 4.1.1-4.1.1 (with or without db/password) logons was performed;
mysqladmin also was tested. Additional check are nevertheless necessary.
2003-07-01 23:40:59 +04:00
pem@mysql.com
1d3c703d58
SP cache (WL#730). (Mostly by vva, additions by pem.)
2003-07-01 18:14:24 +02: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
bar@bar.mysql.r18.ru
81f0fb6e18
character_set_server is now updatable
...
character_set_database was added
Code optimization: reuse more code for all character sets variables
2003-05-30 13:03:56 +05:00
monty@narttu.mysql.fi
dd2b7918cd
Merge with 4.0.13
2003-05-19 16:35:49 +03:00
vva@eagle.mysql.r18.ru
384b10e2af
Merge eagle.mysql.r18.ru:/home/vva/work/mysql.orig/clear/mysql-5.0
...
into eagle.mysql.r18.ru:/home/vva/work/LEX_PTR/mysql-5.0
2003-05-14 19:48:58 -04:00
guilhem@mysql.com
05c78eec38
Task #627 : user variables' names are now case-insensitive :
...
@test=@"tEsT"=@`teST` etc. Tests updated.
Note that the patch to sql_class.cc does not use HASH_CASE_INSENSITIVE as did the one which I sent for review. This is because meanwhile HASH_CASE_INSENSITIVE has disappeared (since cset 1.1504.1.6).
2003-05-12 15:36:31 +02:00
vva@eagle.mysql.r18.ru
afd581edd3
made lex a pointer in THD
2003-05-05 14:54:37 -04:00
pem@mysql.com
35c82164f6
Merged 4.1 to 5.0.
2003-04-29 12:06:04 +02:00
monty@mashka.mysql.fi
bf6cfd2948
Fix for -fbranch-probabilites (bug 268)
...
Fix for LEFT/RIGHT/MID with multi-byte-character sets (bug 314)
Fix for new bison 1.875
max_insert_delayed_threads and delayed_insert_timeout now works as documented (bug 211)
Don't show port in SHOW PROCESSLIST for system threads
Fix problem with ORDER BY being discarded for some DISTINCT queries (bug 275)
Fixed bug with NATURAL LEFT JOIN, NATURAL RIGHT JOIN and RIGHT JOIN when
using many joined tables (Bug 212)
2003-04-26 20:43:28 +03:00
bar@bar.mysql.r18.ru
6d5f527afd
Variable names have been renamed:
...
client_collation -> collation_client
result_collation -> collation_results
connection_collation -> collation_connection
2003-04-23 18:19:22 +05:00
pem@mysql.com
64da2fff67
Post post-merge fix.
2003-04-17 00:34:15 +02:00
pem@mysql.com
386b0b91b2
Merged 4.1 into 5.0.
2003-04-16 23:23:23 +02:00
hf@deer.mysql.r18.ru
5d4e9f95f2
Merging
2003-04-08 19:43:24 +05:00
bar@bar.mysql.r18.ru
e165845d39
sys_var_collation is now abstract class
...
Two separate classes sys_var_client_collation and sys_var_literal_collation have been added
for "literal_collation" and "client_collation" variables.
2003-04-07 16:10:27 +05:00
pem@mysql.com
736e78251e
Merging 4.1 to 5.0.
2003-04-04 13:45:35 +02:00
pem@mysql.com
c673fcb813
Getting rid of lots of memory leaks (but not quite all of them yet,
...
some will go away when temporary code is replaced).
2003-04-02 20:42:28 +02:00
monty@narttu.mysql.fi
ec70bac3b9
Fixed problem with const table named with crashed test suite on MacOSX
2003-04-02 13:06:33 +03:00
bar@bar.mysql.r18.ru
5b50426f8f
Some optimization in CHARSET_INFO:
...
We don't need separate hash_sort() and hash_caseup()
We don't need tosort(). strnxfrm will do the same.
2003-04-01 12:45:16 +05:00
hf@genie.(none)
0ee0589e93
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into genie.(none):/home/hf/work/mysql-5.0.kil
2003-03-31 13:42:37 +05:00
hf@genie.(none)
f8f0b70380
SCRUM
...
two KILL commands implementation (version 2)
2003-03-31 13:39:46 +05:00
pem@mysql.com
c77699ca93
Merged 4.1 into 5.0.
2003-03-27 12:09:11 +01:00
monty@narttu.mysql.fi
b883a9c01c
Merge with 4.0.12
2003-03-19 22:25:44 +02:00
monty@narttu.mysql.fi
48a9c1239c
Added support for ULONG division with DIV
...
Fixed non fatal memory leak in slave code.
2003-03-19 21:23:13 +02:00
lenz@mysql.com
04071da35a
- renamed "rnd" to "my_rnd" as the name was too generic (and is an exported
...
symbol in libmysqlclient) (thanks to Dennis Haney for the initial patch)
- cleanup: removed client/password.c (not used at all) and
libmysql/password.c (should rather be a symlink to sql/password.c instead)
- applied HPUX11 portability fix for char_val declaration to sql/password.c
(taken from libmysql/password.c)
2003-03-18 22:14:02 +01:00
pem@mysql.com
4a171efd6f
Merged 4.1 -> 5.0.
2003-03-18 16:12:50 +01:00
monty@narttu.mysql.fi
a434bca704
Merge with 4.0
2003-03-16 19:17:54 +02:00
lenz@mysql.com
ced5770aba
- fixed newly added DBUG_RETURN to DBUG_VOID_RETURN (compile failed with
...
"DBUG_RETURN undeclared" on Mac OS X)
2003-03-13 13:52:15 +01:00
monty@mashka.mysql.fi
8edc752573
Simple fixes (nothing notable)
2003-03-12 01:40:06 +02:00
pem@mysql.com
dba598cddd
Fixed reentrantness bugs in select (lex->result) and select_dumpvar, and added cool
...
prime number test example.
2003-03-06 19:16:46 +01:00
heikki@hundin.mysql.fi
6ef0f4ad41
ha_innodb.h, ha_innodb.cc, handler.h, handler.cc, sql_class.cc:
...
Fix a hang on the adaptive hash S-latch if an application program uses mysql_use_result() and performs queries on two connections at the same time
2003-03-03 19:31:01 +02:00
pem@mysql.com
b6ab762dc1
Closing tables during SP execution the proper way.
2003-02-28 15:07:14 +01:00
monty@narttu.mysql.fi
050543bdfc
Merge with 3.23 -> 4.0
2003-02-28 13:29:48 +02:00
monty@narttu.mysql.fi
a0d2a621ed
Added detection if pthread_attr_getstacksize() exists
...
Fixed bug in RAND() usage in mysqlbinlog
2003-02-27 17:35:51 +02:00
pem@mysql.com
52cd3e3142
Fixed SELECT INTO OUTFILE/DUMPFILE and stored procedures, and extended and
...
reorganized the sp.test file.
2003-02-19 12:42:32 +01:00
pem@mysql.com
02211a600b
Post-merge fixes (adapting new SP code to 4.1 changes).
2003-02-18 19:58:03 +01:00
pem@mysql.com
97dc6a528e
Merging 4.1 into 5.0
2003-02-18 15:05:35 +01: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
monty@mashka.mysql.fi
023d6dd39b
Merge with 4.0.11
2003-02-04 21:52:14 +02:00
bell@sanja.is.com.ua
291f8a225a
Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/work-select-4.1
2003-02-02 17:39:27 +02:00
gluh@gluh.mysql.r18.ru
8d3c43880d
conflicts resolving
2003-01-31 09:43:53 +04: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
gluh@gluh.mysql.r18.ru
57a805de6c
'Replicate user variables' task
2003-01-30 21:39:54 +04: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
bar@bar.mysql.r18.ru
735399a850
Move latin1 into a separarte file
2003-01-29 17:31:20 +04:00
peter@mysql.com
682cca2e75
Fix predicted first rand() call
2003-01-28 20:33:47 +03:00
hf@deer.mysql.r18.ru
d38c66b1ed
SIGNAL_WITH_VIO_CLOSES bugfix
2003-01-28 21:03:05 +04:00
monty@mashka.mysql.fi
7436e9ec97
Merge
2003-01-21 21:28:51 +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
Sinisa@sinisa.nasamreza.org
70dfa42258
resolve fix
2003-01-21 14:57:33 +02:00
hf@deer.mysql.r18.ru
389680e04e
Conflicts resolving
2003-01-20 18:59:45 +04:00
hf@deer.mysql.r18.ru
1f6b615677
SCRUM
...
embedded-related changes
2003-01-20 18:47:25 +04:00
Sinisa@sinisa.nasamreza.org
e6b8fa5707
SELECT ... INTO local_vars ...;
...
For Stored Procedures
2003-01-18 18:21:13 +02:00
Sinisa@sinisa.nasamreza.org
efb79be3ac
some code clean-up and small bug fix.
2003-01-18 16:23:37 +02:00
jani@rhols221.adsl.netsonic.fi
94cc7d751e
Added support sql_mode, which can be used to produce various outputs
...
of SHOW CREATE TABLE 'name'. Depending on the mode, the output can
be compatible with various databases, including earlier versions of
MySQL
.
2003-01-16 02:04:50 +02:00
hf@deer.mysql.r18.ru
96089e2b3a
resolving conflicts
2003-01-15 13:15:35 +04:00
monty@mashka.mysql.fi
7e9b27eaf5
Updates for multi-byte character sets
...
(Note: test 'union' fails, but Sanja promised to fix this)
2003-01-14 14:28:36 +02:00
pem@mysql.com
1604bea5b7
Merge
2003-01-09 17:56:57 +01:00
monty@mashka.mysql.fi
22aaac013b
Fixed that derived tables are properly droped
2003-01-07 11:45:06 +02:00
bell@sanja.is.com.ua
2c6fca2755
Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/work-row-4.1
2002-12-31 12:48:00 +02:00
vva@eagle.mysql.r18.ru
6ab60981e8
Merge eagle.mysql.r18.ru:/home/vva/work/mysql.orig/clear/4.1
...
into eagle.mysql.r18.ru:/home/vva/work/BINLOG_TEMPORARY/4.1
2002-12-30 01:59:08 +04:00
vva@eagle.mysql.r18.ru
1dcca480e8
processing thread specific queries
2002-12-30 01:46:48 +04:00
bell@sanja.is.com.ua
980ca35645
merging
2002-12-25 11:09:19 +02:00
bar@bar.mysql.r18.ru
cb619f3a11
less default_charset_info
2002-12-20 17:57:24 +04:00
bell@sanja.is.com.ua
b63f230346
row IN subselects (SCRUM)
2002-12-19 21:15:09 +02:00
hf@deer.mysql.r18.ru
8a205e4ba3
Merge
2002-12-19 14:57:24 +04:00
bell@sanja.is.com.ua
4cfb6d97b5
support of simple row subselects (SCRUM)
2002-12-19 07:38:33 +02:00
bell@sanja.is.com.ua
b785e980bd
optimized single value subselect (to be used as row) (SCRUM)
2002-12-19 07:38:32 +02:00
bar@bar.mysql.r18.ru
6ac401b550
thd_charset has been moved to variables structure
2002-12-19 09:38:28 +04:00
hf@deer.mysql.r18.ru
c1e69d2cca
Merging
2002-12-16 18:58:55 +04:00
hf@deer.mysql.r18.ru
e3b3b68307
Big purge about embedded library (scrum)
2002-12-16 17:33:29 +04:00
monty@mashka.mysql.fi
d783e18436
merge
2002-12-14 17:49:01 +02:00
monty@mashka.mysql.fi
d49167bae5
Fixes for binary protocol (complement to last push)
...
Changed timestamp to return string in YYYY-MM-DD HH:MM:SS format.
DATE_ADD() and related functions now returns correct DATE/DATETIME type depending on argument types.
Now all tests passes, still some work left to remove warnings in log files from mysql-test-run
2002-12-14 17:43:01 +02:00
hf@deer.mysql.r18.ru
3517febe97
Resolving merge conflicts
2002-12-12 12:49:56 +04:00
monty@mashka.mysql.fi
d3eb993a27
rename of net_pkg.cc to protocol.cc
...
Class for sending data from server to client (Protocol)
This handles both the old ( <= 4.0 ) protocol and then new binary protocol that is used for prepared statements.
2002-12-11 09:17:51 +02:00
bell@sanja.is.com.ua
5fc21bc187
postreview fix (SCRUM)
...
NULL fixed
max_length fixed
layout fixed
2002-12-10 18:10:00 +02:00
bell@sanja.is.com.ua
6db77efb75
merging
2002-12-10 11:41:47 +02:00
pem@mysql.com
aae07a4d45
Simplistic, experimental framework for Stored Procedures (SPs).
...
Implements creation and dropping of PROCEDUREs, IN, OUT, and INOUT parameters,
single-statement procedures, rudimentary multi-statement (begin-end) prodedures
(when the client can handle it), and local variables.
Missing most of the embedded SQL language, all attributes, FUNCTIONs, error handling,
reparses procedures at each call (no caching), etc, etc.
Certainly buggy too, but procedures can actually be created and called....
2002-12-08 19:59:22 +01:00
bell@sanja.is.com.ua
4506ab9ef1
_NEW_ IN/ALL/ANY/SOME behaviour with NULL (SCRUM related)
...
optimization of left expression evaluation
more descriptive method name
2002-12-06 21:55:53 +02:00
monty@mashka.mysql.fi
859b688476
Merge with 4.0.6
2002-12-05 19:38:42 +02:00
monty@mashka.mysql.fi
fc06433a69
Removed copying of parameters as this leads to memory leaks in embedded server.
...
Fixed 'not initialized' memory error.
2002-12-05 03:40:33 +02:00
monty@hundin.mysql.fi
8830eb4aa9
Change of internal key_field=NULL handling to avoid error messages.
...
Optimized SELECT DISTINCT ... ORDER BY ... LIMIT
Fixed reference to uninitalized variable
2002-12-03 13:08:25 +02:00
monty@mashka.mysql.fi
9d0f0402a7
Fixed bug when creating keys in temporary HEAP tables.
...
(This caused the DISTINCT test to fail)
Removed one inline as this caused compiler problems
2002-12-02 17:52:22 +02:00
hf@genie.(none)
5e8b27c0d3
Pull conflicts resolutions
2002-11-29 12:35:48 +04:00
pem@mysql.com
ae2192ed53
Moved safe_to_cache_query from thd to lex.
...
This is required for prepared statements and stored procedures.
2002-11-22 14:50:53 +01:00
monty@mashka.mysql.fi
806294c573
Fixes after merge with 4.0
2002-11-21 22:25:53 +02:00
monty@mashka.mysql.fi
dac6498f9b
Merge with 4.0
2002-11-21 15:56:48 +02:00
monty@mashka.mysql.fi
305d16a7cb
Automatic conversion from CHAR(length) to BLOB when length > 255
...
New operators MOD and DIV
SELECT ... FROM DUAL
TRUE = 1 and FALSE = 0
2002-11-21 02:07:14 +02:00
Sinisa@sinisa.nasamreza.org
7fd3221fdf
small change
2002-11-18 22:41:57 +02:00
Sinisa@sinisa.nasamreza.org
4cec1660da
fix for message being sent in EXPLAIN ...
2002-11-18 20:58:04 +02:00
monty@mashka.mysql.fi
1a96948e81
Small improvement to alloc_root
...
Add support for LIMIT # OFFSET #
Changed lock handling: Now all locks should be stored in TABLE_LIST instead of passed to functions.
Don't call query_cache_invalidate() twice in some cases
mysql_change_user() now clears states to be equal to close + connect.
Fixed a bug with multi-table-update and multi-table-delete when used with LOCK TABLES
Fixed a bug with replicate-do and UPDATE
2002-11-16 20:19:10 +02:00
bell@sanja.is.com.ua
979f27ee4a
fixed bug in cyclic reference refinition
2002-11-14 09:43:24 +02:00
bell@sanja.is.com.ua
d8f1d74fe5
fixed bug of derived table in subselect
...
fixed bug in error handling
2002-11-13 11:59:03 +02:00
monty@hundin.mysql.fi
aa4e165808
Portability fix extern "C" static -> extern "C"
2002-11-07 12:49:02 +02:00
hf@genie.(none)
25bd1e9a37
Merged by hands
2002-11-07 12:20:08 +04:00
monty@butch.
a2bdf9265f
Portability fixes for Fortre C++ 5.0 (on Sun) in 32 and 64 bit modes.
2002-11-07 03:54:00 +02:00
bar@bar.mysql.r18.ru
fef10d9bb1
Preparation to thread specific default charset
2002-10-30 13:05:27 +04:00
bar@bar.mysql.r18.ru
ff83d1e4c7
Merge abarkov@work.mysql.com:/home/bk/mysql-4.1
...
into bar.mysql.r18.ru:/usr/home/bar/mysql-4.1.wrk
2002-10-25 13:59:08 +05:00
bar@bar.mysql.r18.ru
95aef91521
BINARY charset is now used instead of binary_flag
2002-10-25 13:58:32 +05:00
nick@mysql.com
6c22ca4454
Added Rand_log_event
2002-10-24 16:48:34 -06:00
nick@mysql.com
eba70d6c80
Moved rand initialization from mysqld.cc to sql_class.cc:THD::THD()
2002-10-24 14:33:24 -06:00
bell@sanja.is.com.ua
c2da10ae18
fixed DISTINCT in subselect bug
...
small Item_ref fix
2002-10-23 23:36:11 +03:00
nick@mysql.com
d749b832b2
Added Rand_log_event
2002-10-22 15:17:17 -06:00
hf@genie.(none)
8a88791fb1
Merge abotchkov@work.mysql.com:/home/bk/mysql-4.1
...
into genie.(none):/home/hf/work/mysql-4.1
2002-10-18 15:55:21 +05:00
nick@mysql.com
00d47646d5
Moved rand initialization from mysqld.cc to sql_class.cc:THD::THD()
2002-10-17 14:57:01 -06:00
Sinisa@sinisa.nasamreza.org
cd5ff6301e
some fixes for SELECT INTO @vars ..
2002-10-16 16:55:08 +03:00
Sinisa@sinisa.nasamreza.org
4df2e3bf40
Merge sinisa@work.mysql.com:/home/bk/mysql-4.1
...
into sinisa.nasamreza.org:/mnt/work/mysql-4.1
2002-10-11 21:50:38 +03:00
Sinisa@sinisa.nasamreza.org
97990887cb
SCRUM task
2002-10-11 21:49:10 +03:00
bell@sanja.is.com.ua
b79a4c01e7
fixed bug in subselect value storing
2002-10-11 17:00:11 +03:00
hf@genie.(none)
55866b0615
Huge pull
2002-10-07 15:38:07 +05:00
bell@sanja.is.com.ua
199f667c19
merging
2002-10-04 14:15:59 +03:00
monty@mashka.mysql.fi
0f39457613
Merge with 4.0.4
2002-10-02 17:55:12 +03:00
monty@mashka.mysql.fi
d69250a969
Fixes and code cleanups after merge with 4.0.3
...
Warning handling and initial prepared statement handling (last not complete yet)
Changed a lot of functions that returned 0/1 to my_bool type.
GRANT handling now uses read/write locks instead of mutex
Change basic net functions to use THD instead of NET
(needed for 4.1 protocol)
Use my_sprintf instead of sprintf() + strlen()
Added alloc_query() to be able to chare query initialization code with
prepared statements.
Cleanup handling of SHOW COUNT(*) WARNINGS and SELECT LAST_INSERT_ID()
Note that the following test fails (will be fixed ASAP):
sub_select, union, rpl_rotate_logs and rpl_mystery22
2002-10-02 13:33:08 +03:00
bell@sanja.is.com.ua
c65515d888
fixed bug in string & date types with group function in subselect
2002-09-28 18:34:56 +03:00
bell@sanja.is.com.ua
46a22a5be7
new EXPLAIN
...
fixed bug in mysql-test/create-test-result
fixed bug in union-subselect engine
2002-09-26 23:08:22 +03:00
monty@mashka.mysql.fi
efaaf0b4b8
Updated VC++ project files for 4.0.4
...
Only write short usage if one starts mysqldump without any options
Added query cache on windows
Added error message if one can't read privilege tables
2002-09-24 17:11:59 +03:00
bell@sanja.is.com.ua
ecc9832c71
fixed typo
2002-09-19 20:10:06 +03:00
bell@sanja.is.com.ua
96ebe3816f
new function for innodb
...
windows case insensitive tables name work around
2002-09-19 10:36:19 +03:00
monty@mashka.mysql.fi
0281a6b160
Fixed searching after ssl directories.
...
Fixed that GRANT ... REQUIRE options are not forgot when doing new GRANT
Changed fn_ext to point at first '.' after directory.
FLUSH LOGS removed numerical extension for all future update logs.
Fixed the mysqld --help reports right values for --datadir and --bind-address
--log-binary=a.b.c now properly strips of .b.c
Fix that one can DROP UDF functions that was not loaded at startup
Made AND optional in REQUIRE
Added REQUIRE NONE
2002-09-05 16:17:08 +03:00
monty@mashka.mysql.fi
a01a0840dc
Some trivial optimzations
...
Check if AND/OR expression can be NULL; Fixed bug in GROUP BY and-or-expression where expression could be NULL
Bug fix for SHOW OPEN TABLES when user didn't have privilege to access all open tables.
Better fix for ALTER TABLE on BDB tables.
2002-09-03 15:44:25 +03:00
bell@sanja.is.com.ua
b07aaeb295
subselect with union
...
new error handling
Item_ref bug fixed
2002-09-03 09:50:36 +03:00
monty@narttu.mysql.fi
7134ffec21
Merge with 4.0.3
...
Some simple optimzations, more comments and indentation changes.
Add ` around database in 'use database' in binary log.
Moved max_error_count and max_warning_count to variables struct.
Removed SHOW_WARNS_COUNT and SHOW_ERRORS_COUNT calls.
Changed string functions to use character set of first string argument as default return characterset
(Each string function can change the above assumption if needed)
2002-08-30 12:40:40 +03:00
monty@hundin.mysql.fi
f36f9d00ff
Fixed bug in wait_for_update() that I had introduced.
...
Changed option variables to my_bool (to avoid bugs in my_getopt())
Added new thread specific mutex LOCK_delete to be able to free LOCK_thread_count early.
Changed usage of LOCK_thread_count -> LOCK_status for statistics variables
2002-08-22 16:50:58 +03:00
monty@hundin.mysql.fi
8832927d5c
Added nety_retry_count as a changeable variable
...
Make safe_mysqld a symlink to mysqld_safe in binary distribution
Fixed problem with CTRL-C when using mysqld --bootstrap
2002-08-08 20:49:06 +03:00
monty@mashka.mysql.fi
dddc20d9d1
New SET syntax & system variables.
...
Made a some new buffers thread specific and changeable.
Resize of key_buffer.
AUTO_COMMIT -> AUTOCOMMIT
Fixed mutex bug in DROP DATABASE
Fixed bug when using auto_increment as second part of a key where first part could include NULL.
Split handler->extra() to extra() and extra_opt() to be able to support thread specific buffers.
Don't write message to error log when slave reconnects becasue of timeout.
Fixed possible update problem when using DELETE/UPDATE on small tables
(In some cases we used index even if table scanning would be better)
A lot of minior code cleanups
2002-07-23 18:31:22 +03:00
hf@bisonxp.(none)
d8c94e942b
Merge abotchkov@work.mysql.com:/home/bk/mysql-4.1
...
into bisonxp.(none):/home/hf/work/mysql-4.1
2002-07-09 10:42:24 +05:00
bell@sanja.is.com.ua
2cf620004e
subselect in having clause
...
fixed bug in sum function in subselect
2002-07-01 14:14:51 +03:00
jani@rhols221.adsl.netsonic.fi
7cad1f9313
Added interface for first set of dynamic variables.
2002-06-28 19:30:09 +03:00
bar@gw.udmsearch.izhnet.ru
97d9936f5d
Database default charset now works:
...
CREATE DATABASE dbname DEFAULT CHARACTERSET=latin1
2002-06-24 21:50:08 +05:00
bell@sanja.is.com.ua
0c808b431c
merged
2002-06-19 17:55:51 +03:00
bell@sanja.is.com.ua
f974c735cf
EXISTS type of subselect
...
more correct parameters in result creation script
2002-06-19 17:52:44 +03:00
hf@bison.(none)
cc6407f1a5
Resolving of conflicts from pull
2002-06-17 17:14:20 +05:00
hf@bison.(none)
ede6ba5621
Removing net emulation out of embedded library
2002-06-17 16:24:51 +05:00
venu@myvenu.com
5a33842a16
sql_error.cc, sql_prepare.cc:
...
new file
Client-server protocol 4.1 changes - Server side:
* Enhanced metadata information:
- SHOW [COUNT(*)] ERRORS [LIMIT [offset,] rows]
- SHOW [COUNT(*)] WARNING [LIMIT [offset,] rows]
- SHOW TABLE TYPES
- SHOW PRIVILEGES
- SHOW COLUMN TYPES (Not fully implemented)
* Prepared execution
* Long data handling in pieces
* And other misc changes
2002-06-12 14:13:12 -07:00
monty@mashka.mysql.fi
b8421d34ec
Added the following new privleges:
...
SHOW DATABASES
CREATE TEMPORARY TABLE
LOCK TABLES
REPLICATION SLAVE & REPLICATION CLIENT
SUPER
EXECUTE
All scripts & documentation is updated for this change.
Added better error messages for global privileges
2002-06-12 15:04:18 +03:00
monty@mashka.mysql.fi
2aecdd1a91
Big code cleanup/review before 4.0.2 release.
...
(All commit emails since 4.0.1 checked)
This had to be done now, before the 4.1 tree changes to much, to make it easy to propagate bug fixes to the 4.1 tree.
2002-06-11 11:20:31 +03:00
bell@sanja.is.com.ua
839d661b3c
removed unneeded table name pointer
...
transaction-live memory cleanup moved to ha_commit/ha_rollback
fixed query cache validator to work correctly on systems that allocate unaligned dat
2002-06-09 00:58:05 +03:00
bell@sanja.is.com.ua
bd7e31bc53
temporary preventing subselect in HAVING clause
2002-06-07 21:26:43 +03:00
bell@sanja.is.com.ua
ab56d9b51b
Prevent needless rexecuting empty subselects
2002-06-06 16:28:22 +03:00
bell@sanja.is.com.ua
289ac250af
merged
2002-06-05 21:32:22 +03:00
monty@hundin.mysql.fi
f0b28da6f9
merge with 4.0
2002-06-03 12:59:31 +03:00
bell@sanja.is.com.ua
fb2cd68b5d
new subselect tests
...
LIMIT fixed
AVG & STD with subselect fixed
join_free fixed to be depended queries compatible
sort_default removed from SELECT_LEX
2002-06-01 23:35:36 +03:00
bell@sanja.is.com.ua
1fb2babea7
limit clause fixed
2002-05-28 22:38:17 +03:00
bell@sanja.is.com.ua
59602212d2
merge
2002-05-26 22:57:08 +03:00
bar@gw.udmsearch.izhnet.ru
196aa19cf6
Now string values are created and filled with charset field
...
SELECT func(charset2) FROM t ORDER BY 1 works in correct charset
2002-05-17 16:29:52 +05:00
Sinisa@sinisa.nasamreza.org
d65671f778
Features made for Schlund plus several bug fixes.
...
Read a manual for more detail
2002-05-15 13:50:38 +03:00
bell@sanja.is.com.ua
e077890b04
simple subselects ported to new select_lex structures
2002-05-12 23:46:42 +03:00
bell@sanja.is.com.ua
ead6f225a4
new SELECT_LEX structures used for storing global ORDER BY, global LIMIT & limit counters
2002-05-08 23:14:40 +03:00
monty@hundin.mysql.fi
b5a145d872
merge
2002-04-13 15:34:39 +03:00
sasha@mysql.sashanet.com
be388422eb
replication updates. This changeset seems to be working fine on test systems.
...
If no problems are discovered in the next week, this will make the replication
code ready for 4.0.2 release.
2002-03-30 12:36:05 -07:00
bell@sanja.is.com.ua
c5d95b5e62
added building without query cache
2002-03-22 22:55:08 +02:00
bell@sanja.is.com.ua
63b2a551bf
processing trunsactional tables in query cache
2002-03-15 23:57:31 +02:00
bar@gw.udmsearch.izhnet.ru
c60a29f0ee
Hash now supports several charsets
2002-03-14 21:44:42 +04:00
Sinisa@sinisa.nasamreza.org
59d922a11f
small bug fix in max queries per hour
2002-02-08 17:44:50 +02:00
Sinisa@sinisa.nasamreza.org
20ca7ee268
Changes required for maximum queries per hour
2002-02-01 15:40:38 +02:00
sasha@mysql.sashanet.com
684f13ef4c
Ugly merge! But I am not done yet - there are a number of things I need to fix
...
before I can push
2002-01-19 22:46:25 -07:00
sasha@mysql.sashanet.com
56129ce634
Here comes a nasty patch, although I am not ready to push it yet. I will
...
first pull, merge,test, and get it to work.
The main change is the new replication code - now we have two slave threads
SQL thread and I/O thread. I have also re-written a lot of the code to
prepare for multi-master implementation.
I also documented IO_CACHE quite extensively and to some extend, THD class.
2002-01-19 19:16:52 -07:00
monty@hundin.mysql.fi
55a2ab6e7e
Cleanup of alarm macros.
...
Fixed data corruption bug in query cache.
Made queries be dependent of the database in use.
2001-12-21 07:00:58 +02:00
monty@hundin.mysql.fi
b658662ae4
Update copyright
...
Fixed memory leak on shutdown (Affects the embedded version & MyODBC)
2001-12-06 14:10:51 +02:00
monty@hundin.mysql.fi
4c17825acd
Update of query cache code
2001-12-06 01:05:30 +02:00
monty@hundin.mysql.fi
1d26537da5
Query cache.
...
Remove some warnings
2001-12-02 14:34:01 +02:00
monty@hundin.mysql.fi
0bfec316ce
Don't do signal() on windows (Causes instability problems)
...
Safer, a bit faster filesort.
Code changes to avoid calls to current_thd() (faster code).
Removed all compiler warnings from readline.
2001-10-17 19:39:39 +03:00
monty@hundin.mysql.fi
06e719b7cc
Remved Gemini code.
2001-10-10 02:50:28 +03:00
monty@work.mysql.com
447c18954e
merge with 3.23.42
2001-09-02 18:38:33 +02:00
monty@hundin.mysql.fi
e251f9d827
Fixed problem with INSERT DELAYED
...
Make killing threads safer
2001-08-31 23:02:09 +03:00
monty@hundin.mysql.fi
063a1a6557
Portability fixes.
...
Patches required by Gemini
Fix to properly detect if there is an active transaction in InnoDB
Fix to not lock thread structure when doing automatic rollback when thread ends
Allow -O lower_case_names=0 on UNIX
2001-08-21 20:06:00 +03:00
monty@hundin.mysql.fi
59e7c97dab
Remove warnings and portability fixes
...
New global read lock code
Fixed bug in DATETIME with WHERE optimization
Made UNION code more general.
2001-08-14 20:33:49 +03:00
sasha@mysql.sashanet.com
f6836bf81a
merged
2001-08-09 19:16:15 -06:00
jani@hynda.mysql.fi
44722151fd
Added new optino --sql-mode to mysqld.
2001-08-09 18:51:38 +03:00
sasha@mysql.sashanet.com
a98a7ffe7e
Merge work:/home/bk/mysql-4.0
...
into mysql.sashanet.com:/home/sasha/src/bk/mysql-4.0
2001-08-03 16:09:36 -06:00
sasha@mysql.sashanet.com
09eda84f2e
LOAD DATA INFILE is now replicated properly, except for cleanup on
...
Stop event and bugs the test suite could not catch
Did some big restructuring of binlog event classes - most important
change is that now each event class has exec_event method and one does
not need to modify slave core code to add a new event. Slave code is
now much smaller and easier to read
2001-08-03 15:57:53 -06:00
monty@tik.mysql.fi
b13d453d50
Fix UNION
...
New faster list iterators
Change list code to be simpler and faster
Optimize count(distinct)
New error messages for UNION
Make create_tmp_table more general to be usable by UNION
2001-08-02 06:29:50 +03:00
sasha@mysql.sashanet.com
008456c9b6
added pre/post read callbacks to IO_CACHE
...
#ifdefed out code not used in the server from log events
started on new LOAD DATA INFILE events
2001-07-20 16:22:54 -06:00
monty@hundin.mysql.fi
897b37b506
Changed safe_mysqld -> mysqld_safe
...
Added some alias to SHOW commands
Prepare for dynamic changing of MySQL variables
2001-06-28 10:49:16 +03:00
sasha@mysql.sashanet.com
46de2a9fe4
Added event sequence number and flags to binlog
...
Documented/cleaned up log event code
Updated tests
2001-06-19 15:03:48 -06:00
sasha@mysql.sashanet.com
8f6b34f950
updates for LOAD DATA FROM MASTER + some cleanup of replication code
2001-05-28 19:18:23 -06:00
serg@serg.mysql.com
6a41e1f3a5
merged
2001-04-13 21:29:06 +02:00
serg@serg.mysql.com
ca0ba8e0ab
this won't be pushed
2001-04-13 16:18:44 +02:00
serg@serg.mysql.com
a6ebe74e3c
Preliminary commit of HANDLER syntax (w/o LIMIT or column-list)
2001-04-07 00:18:33 +02:00
monty@donna.mysql.fi
65822120f5
Fixed bug in ALTER TABLE
...
Removed _mi_rkey() function
New fork_big.pl multi-thread test
2001-04-01 13:45:48 +03:00
monty@donna.mysql.fi
add70fc1ba
Changed pthread_mutex_init() to use new MY_MUTEX_INIT.. macro
...
(For glibc 2.2)
2001-03-26 01:05:04 +03:00
mikef@nslinux.bedford.progress.com
d145a6b97e
Add support for Gemini table handler, Monty has checked and approved
...
Fix bug when read return error
2001-03-21 15:34:16 -05:00
monty@tik.mysql.fi
6f9a73a1ba
Added isolation levels
...
Added SELECT .. FOR UPDATE and SELECT .. IN SHARE MODE
2001-03-21 01:02:22 +02:00
jcole@abel.spaceapes.com
84999eb5e2
Reversed SQL_ANSI_MODE per Monty's request.
2001-03-14 07:15:45 -06:00
jcole@tetra.spaceapes.com
fef4e75287
Merge work.mysql.com:/home/bk/mysql
...
into tetra.spaceapes.com:/usr/home/jcole/bk/mysql
2001-03-14 01:49:02 -06:00
jcole@tetra.spaceapes.com
1b9ce04050
Moved state_map copying to THD::THD().
2001-03-14 01:18:16 -06:00
sasha@mysql.sashanet.com
0dd0d88e8f
changed signal by fd close to signal by vio_close
...
added support for kill expr
fixed coredump in set @a := foo;
added testcase for user_var
added testcase for kill
2001-03-13 23:07:12 -07:00
sasha@mysql.sashanet.com
a2b6410965
untested changes to close socket on slave stop for OS's that do not
...
interrupt I/O after thr_alarm_kill()
test case for order by desc coredump
2001-03-12 20:17:32 -07:00
monty@donna.mysql.fi
267c8760cb
Fixed wrong option in mysql_install_db
...
Added delayed_user for delayed_threads
Don't use record cache when doing deletes
2001-03-09 03:38:18 +02:00
monty@donna.mysql.fi
bda3e09935
Merged some functions and removed some unused client functions.
...
Remember UNION for ALTER TABLE
Added test for if we are supporting transactions.
Don't allow REPLACE to replace a row when we have generated an auto_increment key
Fixed bug when using BLOB keys
Fixed bug in SET @variable=user.
2001-03-06 15:24:08 +02:00
monty@donna.mysql.fi
1c298277f9
Fixes for innobase
...
Added test for ALTER TABLE ORDER BY
2001-02-21 14:16:00 +02:00
sasha@mysql.sashanet.com
3cf810222a
fixed up leaks found by --exit-info=256
...
better error diagnostic in SLAVE START
2000-12-09 14:28:51 -07:00
monty@donna.mysql.com
87d9388e52
Only write full transactions to binary log
...
A lot of new functions for BDB tables
Fix for DROP DATABASE on windows
Default server_id variables
2000-12-07 14:08:48 +02:00
monty@donna.mysql.com
3666dab516
Added innobase handler files + other updates for innobase
2000-12-06 01:54:17 +02:00
sasha@mysql.sashanet.com
25ae951289
Merge work.mysql.com:/home/bk/mysql
...
into mysql.sashanet.com:/home/sasha/src/bk/mysql
2000-11-27 23:10:49 -07:00
monty@donna.mysql.com
74e7ffe987
New thr_alarm struct for better integration with OS2
...
Run bootstrap in separate thread
Fix bug in FLUSH TABLES table_name
2000-11-28 04:47:47 +02:00
sasha@mysql.sashanet.com
93c0180805
Merge work.mysql.com:/home/bk/mysql
...
into mysql.sashanet.com:/home/sasha/src/bk/mysql
2000-11-27 11:13:05 -07:00
sasha@mysql.sashanet.com
dd24015eac
Fixed temp tables to work with replication. It will not work if you stop the slave
...
while slave thread has temp tables - not hard to fix though, but it is time to go to bed
added a new test case for temp table replication and Slave_open_temp_tables
status variable.
Misc fixes
2000-11-25 23:29:01 -07:00
monty@donna.mysql.com
81bc313e99
All statements are now run in a sub transaction
...
Give warning if we are using non transactional tables and do ROLLBACK
Porting of crash-me and benchmarks to FrontBase
2000-11-24 01:51:18 +02:00
sasha@mysql.sashanet.com
14854a669a
fixed warning in sql_class.cc
...
added gdb support, mysqld options per test, and other cool stuff to mysql-test-run
added --replicate-wild-do/ignore-table
more test cases
2000-11-20 23:38:08 -07:00
monty@narttu.mysql.fi
22415489f2
Fixes for bugs in the usage of IO_CACHE
2000-11-17 02:36:46 +02:00
monty@narttu.mysql.fi
ca2cca8dce
merge
2000-11-16 20:55:52 +02:00
monty@donna.mysql.com
217ef71afa
Fixes for IO_CACHE
2000-11-16 20:47:28 +02:00
sasha@mysql.sashanet.com
eb0a423e0e
merged
2000-11-15 18:58:59 -07:00
monty@narttu.mysql.fi
b689a1a752
merge
2000-11-16 00:24:11 +02:00
monty@narttu.mysql.fi
e69becf133
changed to use IO_CACHE instead of FILE
2000-11-15 23:00:06 +02:00
sasha@mysql.sashanet.com
f2b9a60ec4
repl-tests/test-repl-ts/repl-timestamp.master.reject
...
this file needs to be deleted
sql/log_event.cc
fixed warnings
sql/log_event.h
fixed () #define bug
sql/mysqlbinlog.cc
fixed length argument - was supposed to be one less
sql/mysqld.cc
replicate-do/ignore-table now works, wild does not yet
sql/mysql_priv.h
updating argument to add_table_to_list() -- needed for replicate-do/ignore table
sql/slave.cc
changes fore replicate-do/ignore-table
close the socket before going to sleep sleeping after error
bad event was being freed too early
sql/slave.h
changes for replicate-do/ignore-table
sql/sql_class.cc
slave_thread variable to THD
sql/sql_class.h
added slave_thread to THD, fixed bug in end_time()
sql/sql_parse.cc
updating argument to add_tables_to_list()
sql/sql_table.cc
fixed bug in mysql_rm_table()
sql/sql_yacc.yy
fixed up add_table_to_list() calls to accept updating argument
sql/table.h
added updating to TABLE_LIST
2000-11-13 23:43:02 -07:00
sasha@mysql.sashanet.com
75cd25a579
fixed --skip-slave-thread bug
...
added PURGE MASTER LOGS TO and SHOW MASTER LOGS
fixed the output of SHOW MASTER STATUS
updated docs
2000-10-26 22:11:55 -06:00
monty@donna.mysql.com
7ac13c89e6
Fix of LEFT JOIN optimizer bug, problem with key cache on Windows and
...
a lot of portability issues.
2000-10-14 03:16:35 +03:00
monty@donna.mysql.com
527113d370
merge
2000-10-04 23:22:53 +03:00
monty@tramp.mysql.fi
9f7c4563f7
First part of automatic repair of MyISAM tables.
...
Error on full disk on repair.
SIGHUP signal handling.
Update with keys on timestamp
Portability fixes
2000-10-03 14:18:03 +03:00
sasha@mysql.sashanet.com
79f12db007
Merge work:/home/bk/mysql
...
into mysql.sashanet.com:/home/sasha/src/bk/mysql
2000-09-29 17:21:13 -06:00
sasha@mysql.sashanet.com
ea0f48ffb2
This one will not be pushed, I am committing to be able to pull in Monty's changes
...
added server id, mostly working
added --skip-slave-start, working
added --replicate-rewrite-db - just in the cmd line parses, currently noop
2000-09-28 16:24:50 -06:00
monty@donna.mysql.com
02fd65b970
Fixed indention, removed compiler varnings and fixed a bug
...
in FULLTEXT indexes.
2000-09-29 00:58:16 +03:00
monty@donna.mysql.com
751f2d1f16
Faster log::write() call, memory leak fix, flush master fix.
2000-09-16 04:27:21 +03:00
monty@donna.mysql.com
2776500c22
Update to new root alloc, OPTIMIZE TABLE and some other changes
2000-09-12 03:02:33 +03:00
monty@donna.mysql.com
4496d43faa
Quoting of TIMESTAMP columns and small optimizations
2000-09-02 07:58:42 +03:00
monty@donna.mysql.com
f0952ce3e1
FLUSH TABLE table_list
...
Fixes for RENAME TABLE
Portability fixes
2000-08-22 00:18:32 +03:00
monty@donna.mysql.com
aa3580924b
RENAME TABLE table_name TO new_table_name ; Faster Alloc
...
Small bug fixes
2000-08-21 03:00:52 +03:00
bk@work.mysql.com
f4c589ff6c
Import changeset
2000-07-31 21:29:14 +02:00