evgen@moonbone.local
de4e941e3f
Fix bug #12812 create view calling a function works without execute right on function
...
Execution rigths on function was checked just before function execution,
thus it was unknown on prepare stage whether user have right to execute
particular function.
Added access rights checking function which is called right after fixing
Item_func_sp.
This have additional effect that if user don't have rights for execution
query will fail on earlier stage and will not waste resources on optimizing
with failing on execution stage.
2005-09-20 03:05:35 +04:00
sasha@asksasha.com
c4f16269f3
Merge spachev@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into asksasha.com:/reiser-data/mysql-dev/mysql-4.1-bug11139
2005-09-19 15:45:01 -06:00
bar@mysql.com
d7f96c50ae
ctype_utf8.result, ctype_utf8.test:
...
Bug#10504: additional test
2005-09-19 09:48:03 +05:00
bar@mysql.com
6424e9cce1
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/usr/home/bar/mysql-5.0.b10504
2005-09-19 09:46:25 +05:00
georg@lmy002.wdf.sap.corp
541d3ae89b
Merge grichter@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into lmy002.wdf.sap.corp:/home/georg/work/mysql/bugs/mysql-5.0-master
2005-09-19 05:32:38 +02:00
evgen@moonbone.local
afa8187fb7
Fix bug #13218 : InnoDB: using a partial-field key prefix in search
...
This is backport from 5.0 of fix for bug #11039
2005-09-19 04:39:49 +04:00
sasha@asksasha.com
c87bc3ef64
Merge spachev@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into asksasha.com:/reiser-data/mysql-dev/mysql-4.1-bug11139
2005-09-17 18:46:54 -06:00
eric@mysql.com
a4aa8fb9b2
Added testcase for BUG#13118
2005-09-16 16:17:44 -07:00
georg@lmy002.wdf.sap.corp
afe8dcf2e7
Fix for bug#5508 after Sanja's review
2005-09-16 17:13:21 +02:00
evgen@moonbone.local
72f530ef3d
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into moonbone.local:/work/12291-bug-5.0-mysql
2005-09-16 16:08:11 +04:00
bar@mysql.com
1d12ac8849
Bug#10504
...
Character set does not support traditional mode
ctype_utf8.result, ctype_utf8.test:
adding test case.
password.c, mysql_com.h
Changeing octet2hex availability from static to public.
item_strfunc.cc:
Result string is now checked to be well-formed.
Warning/error is generated, depending on sql_mode.
2005-09-16 10:24:37 +05:00
evgen@moonbone.local
097ca8ad90
Fix bug #12291 Table wasn't reinited for index scan after sequential scan
...
Optimizer did choose "Range checked for each record" for one of the tables.
For first few loops over that table it choose sequential access, on later
stage it choose to use index. Because table was previously initialized for
sequential access, it skips intitialization for index access, and when
server tries to retrieve data error occurs.
QUICK_RANGE_SELECT::init() changes so if file already initialized for
sequential access, it calls ha_rnd_end() and initializes file for index
access.
2005-09-16 01:19:43 +04:00
evgen@moonbone.local
7de902fcef
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into moonbone.local:/work/12887-bug-5.0-mysql
2005-09-15 23:22:07 +04:00
serg@serg.mylan
bd3b8a495e
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into serg.mylan:/usr/home/serg/Abk/mysql-5.0
2005-09-15 21:09:33 +02:00
serg@serg.mylan
db896a66ca
bad merge fixed
2005-09-15 21:05:42 +02:00
evgen@moonbone.local
3065cc0edf
Manual merge
2005-09-15 22:21:30 +04:00
evgen@moonbone.local
1685040e2b
Fix bug#12887 Distinct is not always applied after rollup
...
For queries with GROUP BY and without hidden GROUP BY fields DISTINCT is
optimized away becuase such queries produce result set without duplicates.
But ROLLUP can add rows which may be same to some rows and this fact was
ignored.
Added check so if ROLLUP is present DISTINCT can't be optimized away.
2005-09-15 21:34:11 +04:00
evgen@moonbone.local
fcfcc016bd
Merge
2005-09-15 20:50:10 +04:00
dlenev@mysql.com
2a96aa110f
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/dlenev/src/mysql-5.0-bg12704-2
2005-09-15 03:57:59 +04:00
dlenev@mysql.com
e231ebe5fb
Fix for bug #12704 "Server crashes during trigger execution".
...
This bug occurs when some trigger for table used by DML statement is created
or changed while statement was waiting in lock_tables(). In this situation
prelocking set which we have calculated becames invalid which can easily lead
to errors and even in some cases to crashes.
With proposed patch we no longer silently reopen tables in lock_tables(),
instead caller of lock_tables() becomes responsible for reopening tables and
recalculation of prelocking set.
2005-09-15 03:56:09 +04:00
elliot@mysql.com
588af40cda
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/emurphy/src/bk-clean/mysql-5.0
2005-09-14 16:16:04 -04:00
bell@sanja.is.com.ua
87a8fb4807
fixed portability
2005-09-14 23:12:01 +03:00
evgen@moonbone.local
ac32450609
Fix bug #11416 Server crash if using a view that uses function convert_tz
...
When parser parses function convert_tz it loads available timezone tables in
thd->lex->time_zone_tables_used. But view have another lex that main query.
Thus time_zone_tables_used of main query left uninitialized.
When Item_func_conver_tz is fixed it takes timezone tables from main query
and later when it executed it assumes that timezone tables are loaded and
failed that assertion.
2005-09-15 00:08:12 +04:00
elliot@mysql.com
86882cc8f9
Merge mysql.com:/home/emurphy/src/work/mysql-5.0-bug-12870
...
into mysql.com:/home/emurphy/src/bk-clean/mysql-5.0
2005-09-14 14:44:48 -04:00
elliot@mysql.com
8e7e17166c
BUG#12870 (CREATE PROCEDURE followed by ROLLBACK is not replicated)
...
Fixed by making CREATE/ALTER/DROP PROCEDURE cause implicit commit.
2005-09-14 14:42:39 -04:00
aivanov@mysql.com
a42b5000ca
Merge mysql.com:/home/alexi/mysql-5.0
...
into mysql.com:/home/alexi/dev/mysql-5.0-13000
2005-09-14 20:32:59 +04:00
aivanov@mysql.com
53e90b53bc
Fixed BUG#12963, BUG#13000: wrong VIEW creation with DAYNAME(),
...
DAYOFWEEK(), and WEEKDAY().
2005-09-14 20:25:00 +04:00
tulin@dl145c.mysql.com
129c98179b
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into dl145c.mysql.com:/home/ndbdev/tomas/mysql-5.0
2005-09-14 17:27:01 +02:00
bell@sanja.is.com.ua
d1c4241aa5
Merge abelkin@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-owner2-5.0
2005-09-14 17:28:28 +03:00
tulin@dl145c.mysql.com
a8eb0f176b
enabled mysqldump hex-blob option for bit fields
2005-09-14 15:46:31 +02:00
sasha@asksasha.com
a9a612f1b6
Merge spachev@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into asksasha.com:/reiser-data/mysql-dev/mysql-4.1-bug11139
2005-09-14 06:37:52 -06:00
sasha@asksasha.com
00eae49b5c
fix for BUG#11139 (multi-delete with alias breaking replication if table rules are
...
present): the problem originally was that the tables in auxilliary_tables did not have
the correct real_name, which caused problems in the second call to tables_ok().
The fix corrects the real_name problem, and also sets the updating flag properly,
which makes the second call to tables_ok() unnecessary.
2005-09-14 06:31:38 -06:00
tulin@dl145c.mysql.com
f1e6ee04bc
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into dl145c.mysql.com:/home/ndbdev/tomas/mysql-5.0
2005-09-14 13:27:57 +02:00
petr@mysql.com
c1348ec13a
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/cps/mysql/trees/mysql-5.0-virgin
2005-09-14 14:54:48 +04:00
bell@sanja.is.com.ua
4a18f890e6
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-owner2-5.0
2005-09-14 13:37:40 +03:00
tulin@dl145c.mysql.com
415ec2bf89
Bug #13152 bit fields and fileds that follow become corrupted when dumped from NDB tables
2005-09-14 11:41:36 +02:00
bell@sanja.is.com.ua
9388f7277c
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-owner2-5.0
2005-09-14 12:26:09 +03:00
pem@mysql.com
f698d25b3a
Merge mysql.com:/usr/local/bk/mysql-5.0
...
into mysql.com:/usr/home/pem/mysql-5.0
2005-09-14 10:54:52 +02:00
pem@mysql.com
9cf77e404e
Post-review fix for BUG#12712: SET AUTOCOMMIT should fail within SP/functions/triggers
2005-09-14 10:54:02 +02:00
petr@mysql.com
d019da7dd8
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/cps/mysql/trees/mysql-5.0-virgin
2005-09-14 12:42:23 +04:00
bell@sanja.is.com.ua
914b961d01
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
...
into sanja.is.com.ua:/home/bell/mysql/bk/work-owner2-5.0
2005-09-14 11:07:04 +03:00
bell@sanja.is.com.ua
71ffbbf81b
part 1 (ver 2, postreview fix) of WL#2787
...
view definer information syntax/storage/replication
fixed SOURCE field of .frm
2005-09-14 10:53:09 +03:00
gluh@mysql.com
5549bc3329
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/gluh/MySQL/Bugs/5.0.cml
2005-09-14 12:46:03 +05:00
pem@mysql.com
d825ed1a6b
Merge mysql.com:/usr/local/bk/mysql-5.0
...
into mysql.com:/usr/home/pem/mysql-5.0
2005-09-14 09:43:02 +02:00
msvensson@neptunus.(none)
d5ae0825d9
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into neptunus.(none):/home/msvensson/mysql/bug10713_new/my50-bug10713_new
2005-09-14 09:35:56 +02:00
gluh@mysql.com
2184915127
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/gluh/MySQL/Bugs/5.0.cml
2005-09-14 12:11:19 +05:00
eric@mysql.com
ef06401549
Improvement to federated for BUG#12659
...
Now many direct references to my_error() have been removed.
2005-09-13 23:31:17 -07:00
msvensson@neptunus.(none)
7d78749320
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into neptunus.(none):/home/msvensson/mysql/bug10713_new/my50-bug10713_new
2005-09-14 08:10:18 +02:00
petr@mysql.com
5a097459f1
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/cps/mysql/trees/mysql-5.0-virgin
2005-09-14 07:30:04 +04:00
petr@mysql.com
e8946265fc
fix for Bug #12979 Stored procedures: crash if inout decimal parameter
2005-09-14 07:25:32 +04:00
monty@mishka.mysql.fi
31d8027e94
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mishka.mysql.fi:/home/my/mysql-5.0
2005-09-14 04:18:38 +03:00
monty@mishka.mysql.fi
e7d7b2c757
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mishka.mysql.fi:/home/my/mysql-5.0
2005-09-14 03:18:05 +03:00
monty@mishka.mysql.fi
d6ebc3bb34
Fixed wrong merge
2005-09-14 03:16:25 +03:00
monty@mishka.mysql.fi
9f22a16972
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mishka.mysql.fi:/home/my/mysql-5.0
2005-09-14 01:47:38 +03:00
monty@mishka.mysql.fi
f348f62cc3
Added option --valgrind-mysqltest to mysql-test-run
...
Added flag to Field::store(longlong) to specify if value is unsigned.
This fixes bug #12750 : Incorrect storage of 9999999999999999999 in DECIMAL(19, 0)
Fixed warning from valgrind in CREATE ... SELECT
Fixed double free of mysql.options if reconnect failed
2005-09-14 01:41:44 +03:00
serg@serg.mylan
deb23f8691
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into serg.mylan:/usr/home/serg/Abk/mysql-5.0
2005-09-13 23:26:54 +02:00
serg@serg.mylan
c74b0b0d0f
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into serg.mylan:/usr/home/serg/Abk/mysql-5.0
2005-09-13 22:04:06 +02:00
eric@mysql.com
671d63b6eb
Merge eherman@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/eric/mysql-5.0
2005-09-13 11:52:05 -07:00
evgen@moonbone.local
62fa6c5eae
Merge
2005-09-13 22:22:51 +04:00
serg@serg.mylan
8427a10c01
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into serg.mylan:/usr/home/serg/Abk/mysql-5.0
2005-09-13 19:51:13 +02:00
serg@serg.mylan
43ff196ada
after pull review - many bugs in mysqldump --routines
2005-09-13 19:32:37 +02:00
eric@mysql.com
9944cbf8f6
Merge eherman@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/eric/mysql-5.0
2005-09-13 10:17:40 -07:00
petr@mysql.com
8f12dc9378
after-merge fix
2005-09-13 19:59:26 +04:00
msvensson@neptunus.(none)
0b8f8c2e6d
Merge bk-internal:/home/bk/mysql-5.0
...
into neptunus.(none):/home/msvensson/mysql/bug10713_new/my50-bug10713_new
2005-09-13 17:55:41 +02:00
pem@mysql.com
f31095f3d5
Fixed BUG#12712: SET AUTOCOMMIT should fail within SP/functions/triggers
...
Second version after review. Allow 'set autocommit' in procedures, but not
functions or triggers. Can return error in run-time (when a function calls
a procedure).
2005-09-13 17:16:12 +02:00
petr@mysql.com
e7c2da63da
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/cps/mysql/trees/mysql-5.0-virgin
2005-09-13 18:54:47 +04:00
pem@mysql.com
5b8bfd4d95
Merge mysql.com:/usr/local/bk/mysql-5.0
...
into mysql.com:/usr/home/pem/mysql-5.0
2005-09-13 15:40:04 +02:00
pem@mysql.com
b145ca0694
Fixed BUG#12379: PROCEDURE with HANDLER calling FUNCTION with error
...
get strange result
according to Monty's suggestions, fixing the SELECT behaviour on errors
with SP handlers. Note that some warnings from SELECT still shows up when
the handler has caught - this is an effect of another known bug (BUG#7049).
2005-09-13 15:32:42 +02:00
petr@mysql.com
dd036077ff
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/cps/mysql/trees/mysql-5.0
2005-09-13 17:05:17 +04:00
msvensson@neptunus.(none)
1ea86dddce
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into neptunus.(none):/home/msvensson/mysql/bug10713_new/my50-bug10713_new
2005-09-13 14:46:42 +02:00
ramil@mysql.com
9a64991030
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/usr/home/ram/work/mysql-5.0
2005-09-13 16:54:08 +05:00
ramil@mysql.com
f402871a5e
Print a dummy section in order not to interference
...
with /etc/my.cnf and ~/.my.cnf [client] section.
2005-09-13 16:41:39 +05:00
petr@mysql.com
e9659d2159
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/cps/mysql/trees/mysql-5.0-virgin
2005-09-13 15:17:52 +04:00
petr@mysql.com
d2b9085df8
Fix for Bug #13124 Stored Procedure using SELECT INTO crashes server
2005-09-13 15:15:38 +04:00
gluh@eagle.intranet.mysql.r18.ru
cc395fc0c2
Bug#9683 INFORMATION_SCH: Creation of temporary table allowed in
...
Information_schema DB
Bug#9846 Inappropriate error displayed while
dropping table from 'INFORMATION_SCHEMA'
Bug#10734 Grant of privileges other than 'select' and
'create view' should fail on schema
Bug#10708 SP's can use INFORMATION_SCHEMA as ROUTINE_SCHEMA
cumulative fix for bugs above(after review, 2nd version)
added privilege check for information schema db & tables
2005-09-13 16:07:38 +05:00
pem@mysql.com
2865184ea2
Merge mysql.com:/usr/local/bk/mysql-5.0
...
into mysql.com:/usr/home/pem/mysql-5.0
2005-09-13 12:53:12 +02:00
timour@mysql.com
dc935404c3
Merge mysql.com:/home/timka/mysql/src/5.0-virgin
...
into mysql.com:/home/timka/mysql/src/5.0-2486
2005-09-13 13:51:25 +03:00
pem@mysql.com
c76d5768a7
Fixed BUG#13133: Local variables in stored procedures are not initialized correctly.
...
Have to init. all local variables in their frames, not just once at the beginning
of invocation.
2005-09-13 12:50:21 +02:00
msvensson@neptunus.(none)
8a296476c0
BUG#10713 mysqldump includes database in create view and referenced tables
...
- Update test results
- Updates after review
2005-09-13 12:43:43 +02:00
msvensson@neptunus.(none)
d612caf39a
Merge neptunus.(none):/home/msvensson/mysql/bug10713
...
into neptunus.(none):/home/msvensson/mysql/bug10713_new/my50-bug10713_new
2005-09-13 09:41:01 +02:00
eric@mysql.com
1a79e25537
Made changes to add federated CONNECTION information to the .frm file
...
(per Monty's patch).
Remove references to the "COMMENT" field.
WL#2414
2005-09-12 18:02:17 -07:00
jani@a193-229-222-105.elisa-laajakaista.fi
cb55497bdb
Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into a193-229-222-105.elisa-laajakaista.fi:/home/my/bk/mysql-5.0
2005-09-13 01:11:55 +03:00
jmiller@mysql.com
9f573f0ac8
Adding comment for force manual merge 5.0 -> wl1012
2005-09-12 22:47:15 +02:00
jani@a193-229-222-105.elisa-laajakaista.fi
01ce8a8aa9
Merge a193-229-222-105.elisa-laajakaista.fi:/home/my/bk/mysql-4.1
...
into a193-229-222-105.elisa-laajakaista.fi:/home/my/bk/mysql-5.0
2005-09-12 20:18:49 +03:00
timour@mysql.com
d0f585f11f
BUG#12943 - post-merge fix
2005-09-12 19:18:17 +03:00
timour@mysql.com
54db60c080
Merge mysql.com:/home/timka/mysql/src/5.0-virgin
...
into mysql.com:/home/timka/mysql/src/5.0-bug-12943
2005-09-12 19:05:55 +03:00
gluh@mysql.com
c398940326
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/home/gluh/MySQL/Bugs/4.1.6008
2005-09-12 20:49:48 +05:00
monty@mishka.mysql.com
bdc33e2356
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mishka.mysql.com:/home/my/mysql-4.1
2005-09-12 18:49:47 +03:00
monty@mishka.mysql.com
0965bfa832
Review fixes since last pull
...
Fix for bug #13025 ; Server crash in filesort because wrong call to handler::position()
2005-09-12 18:48:17 +03:00
bar@mysql.com
2315c4f224
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/usr/home/bar/mysql-5.0
2005-09-12 19:38:53 +05:00
bar@mysql.com
833bccfe57
Many files:
...
Adding esperanto collation
2005-09-12 19:35:50 +05:00
timour@mysql.com
9d862db743
Fix for BUG#6808.
...
The problem was in that add_table_to_list was testing for duplicate tables
in a list of tables that included the created view.
2005-09-12 17:01:17 +03:00
gluh@mysql.com
d91fb61b37
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/home/gluh/MySQL/Bugs/4.1.6008
2005-09-12 17:33:21 +05:00
tulin@dl145c.mysql.com
e382a0fb12
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into dl145c.mysql.com:/home/ndbdev/tomas/mysql-5.0
2005-09-12 14:11:28 +02:00
gluh@eagle.intranet.mysql.r18.ru
d9bd3c11e4
Fix for bug #6008 : MySQL does not create warnings when creating database and using IF NOT EXISTS
...
produce warning for 'create database if not exists' if database exists
do not update database options in this case
produce warning for 'create table if not exists' if table exists
2005-09-12 17:09:19 +05:00
ramil@mysql.com
fa2cb2ae82
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/usr/home/ram/work/5.0.b12917
2005-09-12 15:38:21 +05:00
bar@mysql.com
2f13c5c12c
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/usr/home/bar/mysql-5.0.b12891
2005-09-12 14:09:44 +05:00
lars@mysql.com
683edc6599
Reverted old fix with sync_slave_with_master and added a replace commands
...
to eliminate nondeterminism in slave start
2005-09-12 10:50:42 +02:00
ramil@mysql.com
c4ea0e2bf8
merging
2005-09-12 12:09:44 +05:00
timour@mysql.com
7205d3716c
Merge mysql.com:/home/timka/mysql/src/5.0-virgin
...
into mysql.com:/home/timka/mysql/src/5.0-dbg
2005-09-12 09:34:58 +03:00