serg@serg.mylan
47f354bca7
Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/
...
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
2005-02-04 15:31:39 +01:00
serg@serg.mylan
cc1ee6475f
indexless boolean fulltext search was depending on default_charset_info - Bug#8159
...
ftbw->off wasn't cleared on reinit - Bug#8234
2005-02-04 15:24:06 +01:00
acurtis@pcgem.rdg.cyberkinetica.com
1cb1dcb0f3
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into pcgem.rdg.cyberkinetica.com:/var/db/bk/work-acurtis/bug8057
2005-02-03 21:16:36 +00:00
acurtis@pcgem.rdg.cyberkinetica.com
b8ceaa4a1f
Bug#8057
...
Fix crash with LAST_INSERT_ID() in UPDATE,
Tests included,
2005-02-03 21:11:12 +00:00
bell@sanja.is.com.ua
76ae5caca0
fixed column number fetchinmg for subqueries. (BUG#8020)
...
fixed cols() method call (it have to be called only after fix_fields())
2005-01-24 14:25:44 +02:00
ram@gw.mysql.r18.ru
dfbdbfd006
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into gw.mysql.r18.ru:/usr/home/ram/work/4.1.b7281
2004-12-21 10:51:11 +04:00
ram@gw.mysql.r18.ru
da562b7e02
A fix (bug #7281 : RAND(RAND) crashes server).
2004-12-20 13:47:38 +04:00
sergefp@mysql.com
da332aca40
Fix for BUG#6825: When calculating Item_func_neg::max_length, add 1 for '-'.
...
For numeric constants we only need to add, since the parser doesn't produce
negative numbers.
For strings we only add (we actually could substract 1 if given string is a constant
and it has '-number' form but we're not doing that because
* we set max_length bigger then necessary in other cases as well.
* the current solution is simpler and safer (bigger max_length is better then cutting out)
2004-12-17 12:14:45 +03:00
sergefp@mysql.com
3c8f48d2e3
* Added comments and one assert
...
* Backport of safety measures from 5.0: make numeorous replaces:
s/item->fix_fields()/if (!item->fixed) item->fix_fields()
2004-12-14 03:36:19 +03:00
sergefp@mysql.com
3ceb04a5d8
Merge of fix for BUG#6976 continued: pulling in some Item_ref changes from 5.0
...
* Added Item_ref::set_properties
* Item_ref::Item_ref now expects to get in *item either
NULL - then fix_fields() will be called later or
ptr to Item it will refer to - then an equivalent of fix_fields() call is performed
2004-12-14 01:07:06 +03:00
sergefp@mysql.com
9ed8cd701b
Merging fix for BUG#6976 from 4.0 to 4.1
...
The problem in 4.1 was the same as in 4.0 - fix_fields() not called for created Item_ref.
The fix is similar too - initialize Item_refs in ctor (but don't interfere with cases when
Item_ref is used by subselects).
2004-12-13 20:06:06 +03:00
mats@mysql.com
fe70f8c747
Merge mysql.com:/space/bkroot/mysql-4.1
...
into mysql.com:/space/bk/b6391-mysql-4.1
2004-12-03 12:15:31 +01:00
mats@mysql.com
2bbdf2403d
Bug#6391 (binlog-do-db rules ignored)
...
CREATE DATABASE statement used the current database instead of the
database created when checking conditions for replication.
CREATE/DROP/ALTER DATABASE statements are now replicated based on
the manipulated database.
2004-12-03 12:13:51 +01:00
serg@serg.mylan
3ce8209994
compatibility fix
2004-12-02 20:53:54 +01:00
ram@gw.mysql.r18.ru
511eb626bf
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into gw.mysql.r18.ru:/usr/home/ram/work/4.1.b6441
2004-11-25 16:18:46 +04:00
bar@mysql.com
770c9be8c2
Bug #6658 MAX(column) returns incorrect coercibility
...
Also, Item_sum_hybrid->charset was removed as redundant,
and switched to use collation.collation instead.
2004-11-19 19:35:36 +04:00
konstantin@mysql.com
a38ac4b26d
Fix comment.
2004-11-16 23:27:31 +03:00
monty@mysql.com
b903a129e2
Simpler arena swapping code
...
Now thd->mem_root is a pointer to thd->main_mem_root and THR_MALLOC is a pointer to thd->mem_root.
This gives us the following benefits:
- Allow us to easily detect if arena has already been swapped before (this fixes a bug in setup_conds() where arena was swaped twice in some cases)
- Faster swaps of arenas (as we don't have to copy the whole MEM_ROOT)
- We don't anymore have to call my_pthread_setspecific_ptr(THR_MALLOC,...) to change where memory is alloced. Now it's enough to set thd->mem_root
2004-11-08 01:13:54 +02:00
ram@gw.mysql.r18.ru
167c9489fa
A fix (bug #6441 : Aggregate UDF in multi-table query crashes MySQL when returning multiple rows).
2004-11-06 09:37:30 +04:00
bar@mysql.com
5543f312b0
As it is wrong and confusing to associate any
...
character set with NULL, @a should be latin2
after this query sequence:
SET @a=_latin2'string';
SET @a=NULL;
I.e. the second query should not change the charset
to the current default value, but should keep the
original value assigned during the first query.
In order to do it, we don't copy charset
from the argument if the argument is NULL
and the variable has previously been initialized.
2004-11-05 13:37:36 +04:00
bar@mysql.com
6a3b1d443f
Many files:
...
Allow mixing of different character sets for more SQL functions.
item_func.h:
Allow mixing of different character sets for more SQL functions..
2004-11-02 16:02:12 +04:00
bar@mysql.com
7577c8bfc9
A fix according to Monty's request:
...
"uint *errors" is now a non-optional parameter in String:copy()
and copy_and_convert().
2004-10-29 17:00:39 +05:00
bar@mysql.com
ea49a5181a
Allow to convert to non-Unicode charset when mixing a string
...
constant with a column. The string is converted into the column
character set. It conversion doesn't lose data, then operation
is possible. Otherwise, give an error, as it was earlier.
2004-10-29 16:00:03 +05:00
bar@mysql.com
2fc0d7e422
An extra "separator" class member was removed from Item_func_concat_ws.
...
args[0] is now used instead.
2004-10-28 11:43:31 +05:00
ram@gw.mysql.r18.ru
136652522e
A fix (bug #6138 : MOD operator should not round non-integral argument).
2004-10-21 19:52:55 +05:00
konstantin@mysql.com
5abc3de22b
A fix and test case for Bug#5985 ""prepare stmt from "select rand(?)"
...
crashes server." The fix makes Item_func_rand prepared-statements
aware plus it fixes the case when RAND is used in prepared
statements and replication is on (as well as several similar issues).
Until now we did not reset THD before every execution of a prepared
statement, so if some execution had set thd->time_zone_used
or thd->rand_used they would not be reset until next mysql_parse.
Some of post-review fixes done.
2004-10-14 02:53:59 +04:00
konstantin@mysql.com
703e396b6e
A small simplification: perform two actions at once, register a
...
change, and perform it (the new Item changes registry).
2004-10-10 03:10:00 +04:00
konstantin@mysql.com
234c80b689
Deployment of centralized Item change registry, step 2: Item_ref
...
doesn't need to have it's own recovery mechanism.
2004-10-08 19:13:09 +04:00
monty@mysql.com
6239edc1d1
After merge fixes
...
Some bigger code changes was necessary becasue of the multi-table-update and the new HANDLER code
2004-10-07 10:50:13 +03:00
gluh@gluh.mysql.r18.ru
3b7378f992
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into gluh.mysql.r18.ru:/home/gluh/MySQL-BUGS/mysql-4.1
2004-09-12 10:41:06 +04:00
gluh@gluh.mysql.r18.ru
c1d25e32ec
Fix for bug #5513 : FIND_IN_SET fails if set ends with a comma
2004-09-11 15:48:23 +04:00
ingo@mysql.com
6c47f075c7
BUG#4788 - show create table provides incorrect statement.
...
Added code to adjust the field_length of user variables
in dependence on the field type.
Aded new constants for numeric field widths.
2004-09-10 18:56:47 +02:00
bar@mysql.com
153e18a252
Allow IN to convert arguments into Unicode in some cases.
2004-09-01 15:39:15 +05:00
gluh@gluh.mysql.r18.ru
510cacbb77
Fix for bug #4340 : find_in_set is case insensitive even on binary operators(for 4.1)
2004-08-24 20:18:59 +04:00
gluh@gluh.mysql.r18.ru
1786a388e4
Fix for bug #4340 : find_in_set is case insensitive even on binary operators(2nd version)
2004-08-24 17:29:08 +04:00
serg@serg.mylan
e1237cbc53
manually merged
2004-08-18 19:57:55 +02:00
serg@serg.mylan
22ca5582d0
BUG#4393, BUG#4356 - incorrect decimals in fix_length_and_dec() in some functions
2004-07-31 22:39:10 +02:00
pem@mysql.comhem.se
34ddd9c515
Fixed BUG#3486: FOUND_ROWS() fails inside stored procedure [and prepared statement].
2004-06-22 19:38:07 +02:00
konstantin@mysql.com
b793142c8f
Unused variables removed (many files).
2004-06-21 20:39:19 +04:00
sergefp@mysql.com
1e05e6cb82
Post review fixes for "SQL Syntax for Prepared Statements".
2004-06-07 12:09:10 +04:00
sergefp@mysql.com
e3b03d7a08
* New, binlog-aware character sets support in SQL Syntax for Prepared statements.
...
* The prepared statement query is put into binary log on execution only if it is an update query.
2004-06-01 17:27:40 +04:00
monty@mysql.com
cd3dab49cc
Merge with 4.0.20
2004-05-17 01:52:13 +03:00
monty@mysql.com
894e8fca6e
Portability fixes
2004-05-12 02:38:57 +03:00
serg@serg.mylan
8a03c1b869
bug#3612 - Item_func_div set decimals incorrectly
2004-05-11 12:19:37 +02: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
monty@mysql.com
3b34a6a2dd
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/home/my/mysql-4.1
2004-03-25 22:18:31 +02:00
monty@mysql.com
1448199bd7
Cleanups & safety fixes
2004-03-25 22:11:22 +02:00
pem@mysql.comhem.se
6395822932
Fixed BUG#3117: LAST_INSERT_ID() works incorrectly inside stored procedure.
...
This turned out to be a problem for prepared statements as well; the id was
evaluated once, at parse time.
2004-03-25 17:42:13 +01:00
bell@sanja.is.com.ua
b7efa3e5f6
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-select_list-4.1
2004-03-20 13:37:30 +02:00
bell@sanja.is.com.ua
d095d4753e
after review changes
2004-03-20 13:36:26 +02:00
gluh@gluh.mysql.r18.ru
e9341da7e7
Fix for bug#1439 UDF Corruption
2004-03-19 14:35:00 +04: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
ram@gw.mysql.r18.ru
99d374159a
merge
2004-03-17 18:57:51 +04:00
ram@gw.mysql.r18.ru
757cff9f9b
Code cleanup:
...
- added unsigned_flag= 1; to Item_uint constructors
- removed Item_uint::fix_fields()
- added a comment about fix_fields() call
2004-03-17 18:40:04 +04:00
bell@sanja.is.com.ua
8035ce40ec
DBUG_ASSERT(fixed == 0) added to fix_fields()
2004-03-17 14:26:26 +02:00
monty@mysql.com
350b433569
merge with 4.0
2004-03-16 22:41:30 +02:00
bell@sanja.is.com.ua
da4b43ae17
accidentaly removed empty line added
2004-03-16 21:09:47 +02:00
bell@sanja.is.com.ua
8a1675c869
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-rand-4.1
2004-03-16 20:55:51 +02:00
bell@sanja.is.com.ua
579a94a328
after review & some other fixes
2004-03-16 20:19:36 +02:00
serg@serg.mylan
ceec63f18a
EOVERFLOW moved to my_base.h - it is used not only in strtod.c
...
error message corrected
2004-03-16 16:35:47 +01:00
bell@sanja.is.com.ua
96a9d0da52
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-rand-4.1
2004-03-16 16:30:08 +02:00
ram@gw.mysql.r18.ru
f54827e5d0
Fix for the bug #3118 : Subquery and order by
2004-03-16 16:28:50 +04:00
gluh@gluh.mysql.r18.ru
8ba33d7dd3
Fix for bug#2586 Disallow global/session/local as structured var. instance names
2004-03-16 14:01:05 +04:00
bell@sanja.is.com.ua
e8a9242893
merge
2004-03-16 08:32:21 +02:00
bell@sanja.is.com.ua
ac8c1cc4be
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-fix_fields-4.1
2004-03-16 07:40:11 +02:00
bell@sanja.is.com.ua
6eb403cfdc
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-rand-4.1
2004-03-15 22:17:31 +02:00
konstantin@mysql.com
36120d420a
Fix of compilation failure of latest 4.1 tree: new constants in mysqld.cc
...
exceed unsigned long limit.
2004-03-15 22:39:36 +03:00
bell@sanja.is.com.ua
6fc3d9ba81
merge
2004-03-15 17:01:30 +02:00
monty@mysql.com
012ce71c7f
Merge
2004-03-12 01:13:04 +02:00
monty@mysql.com
98fb8ea4c7
Merge with 3.23 to get patch for floor()
2004-03-12 01:12:14 +02:00
guilhem@mysql.com
cf287341cc
Fix for BUG#2921 "Replication problem on mutex lock in mySQL-4.0.18":
...
re-using unused LOCK_active_mi to serialize all administrative
commands related to replication:
START SLAVE, STOP SLAVE, RESET SLAVE, CHANGE MASTER, init_slave()
(replication autostart at server startup), end_slave() (replication
autostop at server shutdown), LOAD DATA FROM MASTER.
This protects us against a handful of deadlocks (like BUG#2921
when two START SLAVE, but when two STOP SLAVE too).
Removing unused variables.
2004-03-11 16:23:35 +01:00
vva@eagle.mysql.r18.ru
cba6ff7597
fixed Bug #3051 "FLOOR returns invalid"
2004-03-04 22:11:33 +04:00
bell@sanja.is.com.ua
14b9fa3588
revision of fix_fields() calls (BUG2838)
2004-02-18 01:08:52 +02:00
monty@mysql.com
050af89dd8
Merge with public tree
2004-02-16 10:31:05 +02:00
serg@serg.mylan
01c2ca5b8a
Merge bk-internal:/home/bk/mysql-4.1/
...
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
2004-02-13 15:30:00 +01:00
serg@serg.mylan
5914e5705c
my_atof is deleted
...
strtod from mit-threads is restored and cleaned up
2004-02-13 15:27:21 +01:00
monty@mysql.com
ce14578909
Merge with 4.0.18
2004-02-11 00:06:46 +01:00
jani@ua141d10.elisa.omakaista.fi
0c6a0b9a31
Wrong type of an argument was sent to my_printf_error(), which
...
caused UDF functions to segmenation fault when they tried to
print an error during wrong usage.
2004-02-10 13:36:21 +00:00
monty@mysql.com
06432eac36
Added --compact to mysqlbinlog
...
Fixed output from mysqlbinlog when using --skip-comments
Fixed warnings from valgrind
Fixed ref_length when used with HEAP tables
More efficent need_conversion()
Fixed error handling in UPDATE with not updateable tables
Fixed bug in null handling in CAST to signed/unsigned
2004-02-09 12:31:03 +01: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
vva@eagle.mysql.r18.ru
4fbc147b2f
code and comments cleanup
2004-02-05 18:58:10 +04: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
vva@eagle.mysql.r18.ru
62f193bfdd
clean up comments
2004-02-03 18:21:48 +04:00
jani@rhols221.adsl.netsonic.fi
a70ae4375a
Fixed a bug in GREATES() and LEAST() function, that caused a core
...
dump when result was NULL.
2004-01-28 19:02:58 +02:00
hf@deer.(none)
5b32ce5b0d
Merge deer.(none):/home/hf/work/mysql-4.1.clean
...
into deer.(none):/home/hf/work/mysql-4.1.1676
2004-01-20 21:00:29 +04:00
vva@eagle.mysql.r18.ru
12008677de
Fixed bug #2310 "INET_ATON handles short-forms addresses incorrectly"
2004-01-20 00:32:25 +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
vva@eagle.mysql.r18.ru
d7f6ced155
Fixed Bug #2338 Trigonometric arithmetic problem
...
by fixing optimizer bug with help of 'volatile' keyword
2004-01-12 22:47:26 -04:00
hf@deer.(none)
f97cc835d9
Merge deer.(none):/home/hf/work/mysql-4.1.clean
...
into deer.(none):/home/hf/work/mysql-4.1.1676
2004-01-06 20:53:23 +04:00
bar@bar.intranet.mysql.r18.ru
39559d4817
#2244 User variables collation conflict is not detected
2003-12-31 19:01:03 +04:00
hf@deer.(none)
bfe134b86f
Fix for prepared statements
...
Here i added Item_*::cleanup() functions,
removed a lot of ~Item_*'s,
added code to restore order_list and group_list
2003-12-30 14:08:19 +04:00
monty@mysql.com
0279dc4234
Portability fixes found during 5.0 test compilation
...
Fixed bug in ORDER BY on a small column (Bug #2147 )
Fixed error from pthread_mutex_destroy() when one had wrong errmsg file
2003-12-21 19:39:32 +02: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
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
monty@mysql.com
e0cc6799ec
Merge with 4.0.17
2003-12-17 17:35:34 +02:00
konstantin@mysql.com
124c4ca346
cleanup: if there is return from if-part, we don't need else statement
2003-12-10 22:26:31 +03:00