dlenev@mysql.com
17785d169b
Proposed fix for bug #17764 "Trigger crashes MyISAM table"
...
A table with an on insert trigger was reported as crashed when the insert
was processed with bulk insert mode on (handler::start_bulk_insert).
The trigger was also selecting from the same table, and that caused
the "crash".
The same problem was present when an insert statement, which was processed
in bulk mode, also used a stored function that was reading the same table.
This fix disables bulk inserts if a statement uses functions or invokes
triggers. Implementing more granular checks will require much more code and
therefore can hardly be done in 5.0
2006-03-29 14:53:00 +04:00
aelkin@mysql.com
659710e29c
Merge mysql.com:/usr_rh9/home/elkin.rh9/MySQL/BARE/5.0
...
into mysql.com:/usr_rh9/home/elkin.rh9/MySQL/FIXES/5.0.20-bug15101-sysdate
2006-03-11 10:47:25 +02:00
kent@mysql.com
013259eaf4
Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/Users/kent/mysql/bk/mysql-5.0-new
2006-03-11 01:42:42 +01:00
ingo@mysql.com
972c2a4abc
Merge mysql.com:/home/mydev/mysql-5.0
...
into mysql.com:/home/mydev/mysql-5.0-bug14980
2006-03-10 22:28:50 +01:00
joerg@mysql.com
c80ae0a809
Merge mysql.com:/M50/bug-15861-5.0 into mysql.com:/M50/mysql-5.0
2006-03-10 21:00:15 +01:00
anozdrin@mysql.com
41423cd05c
Fix version of DEFINER-clause in mysqldump.
...
Now DEFINER-clause in stored routines is expected to appear
in 5.0.20 release, not in 5.0.19. as it was supposed before.
2006-03-10 22:23:04 +03:00
joerg@mysql.com
e3d8ab0270
Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/M50/merge-5.0
2006-03-10 19:53:15 +01:00
joerg@mysql.com
12100342f9
Merge mysql.com:/M50/clone-5.0 into mysql.com:/M50/merge-5.0
2006-03-10 19:47:21 +01:00
joerg@mysql.com
cc8faec9b6
Include the system header file "pthread.h" even in a non-threaded build.
...
Fixes bug#15861
2006-03-10 17:13:54 +01:00
aelkin@mysql.com
36a2847617
Merge mysql.com:/usr_rh9/home/elkin.rh9/MySQL/BARE/5.0
...
into mysql.com:/usr_rh9/home/elkin.rh9/MySQL/FIXES/5.0.20-bug15101-sysdate
2006-03-10 17:40:35 +02:00
aelkin@mysql.com
d187d410d1
BUG#15101 SYSDATE() disregards SET TIMESTAMP.
...
After the ChangeSet 1.1892.20.1 2005/08/24 (Bug #12562 ) SYSDATE() is not an alias
of NOW() and is unsafe for replication.
`SYSDATE()' backward compatible aliasing clashes with the idea #12562
fix. To make it safe-replicatable we have to either use RBR or to restore
the pre-5.0 style.
--sysdate-is-now command line flag was introduced to provide backward compatibility.
2006-03-10 16:47:56 +02:00
ingo@mysql.com
1173185891
Merge mysql.com:/home/mydev/mysql-4.1-bug14980
...
into mysql.com:/home/mydev/mysql-5.0-bug14980
2006-03-10 15:06:04 +01:00
ingo@mysql.com
d0c6eb885d
Bug#14980 - COUNT(*) incorrect on MyISAM table with certain INDEX
...
For "count(*) while index_column = value" an index read
is done. It consists of an index scan and retrieval of
each key.
For efficiency reasons the index scan stores the key in
the special buffer 'lastkey2' once only. At the first
iteration it notes this fact with the flag
HA_STATE_RNEXT_SAME in 'info->update'.
For efficiency reasons, the key retrieval for blobs
does not allocate a new buffer, but uses 'lastkey2'...
Now I clear the HA_STATE_RNEXT_SAME flag whenever the
buffer has been polluted. In this case, the index scan
copies the key value again (and sets the flag again).
2006-03-10 15:03:04 +01:00
anozdrin@mysql.com
3b3cb95eb9
Additional fix for BUG#16777: Can not create trigger nor view
...
w/o definer if --skip-grant-tables specified.
The previous patch does not allow to specify empty host name in
DEFINER-clause explicitly.
2006-03-10 14:40:15 +03:00
joerg@mysql.com
3f65b76342
Merge mysql.com:/M41/comment-4.1 into mysql.com:/M50/mysql-5.0
2006-03-10 11:53:38 +01:00
evgen@moonbone.local
c5493b6316
Fixed bug#13575: SP funcs in select with distinct/group and order by can
...
produce wrong data
By default Item_sp_func::val_str() returns string from it's result_field
internal buffer. When grouping is present Item_copy_string is used to
store SP function result, but it doesn't additionally buffer the result.
When the next record is read, internal buffer is overwritten, due to
this Item_copy_string::val_str() will have wrong data. Thus producing
weird query result.
The Item_func_sp::val_str() now makes a copy of returned value to prevent
occasional corruption.
2006-03-10 13:53:00 +03:00
msvensson@neptunus.(none)
ed50702744
Merge bk-internal:/home/bk/mysql-5.0
...
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
2006-03-10 08:16:21 +01:00
brian@zim.(none)
579271a461
Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into zim.(none):/home/brian/mysql/mysql-5.0
2006-03-09 16:49:01 -08:00
brian@zim.(none)
eefd1207bb
This patch does 1) fix my build breakage 2) Complete the removal of all symbols which could clash with another parser.
2006-03-09 16:44:08 -08:00
msvensson@neptunus.(none)
8511dd9ae5
Merge bk-internal:/home/bk/mysql-5.0
...
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
2006-03-09 21:09:37 +01:00
paul@snake-hub.snake.net
d59d62c5dc
mysqltest.test:
...
Fix typos.
2006-03-09 13:17:19 -06:00
msvensson@neptunus.(none)
ad6b8f873b
Merge bk-internal:/home/bk/mysql-5.0
...
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
2006-03-09 19:09:53 +01:00
brian@zim.(none)
78abb2d117
Porting fix that allows others to include compiled code with different parsers.
...
Makes you wonder what I am up to, doesn't?
2006-03-09 10:09:52 -08:00
msvensson@neptunus.(none)
686c8eb001
Merge bk-internal:/home/bk/mysql-5.0
...
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
2006-03-09 15:49:32 +01:00
msvensson@neptunus.(none)
96a9857b1e
Merge bk-internal:/home/bk/mysql-5.0
...
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
2006-03-09 13:13:04 +01:00
msvensson@neptunus.(none)
e28000c201
Merge neptunus.(none):/home/msvensson/mysql/bug10656/my50-bug10656
...
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
2006-03-09 13:11:40 +01:00
kent@mysql.com
206228cebb
Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/Users/kent/mysql/bk/mysql-5.0-new
2006-03-09 12:39:48 +01:00
msvensson@neptunus.(none)
a7b954447f
Bug#10656 Stored Procedure - Create index and Truncate table command error
...
-Add test case
Move testcase that needs innodb from sp.test => sp_trans.test
2006-03-09 12:08:23 +01:00
evgen@moonbone.local
3d37ec6b8b
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into moonbone.local:/work/17726-bug-5.0-mysql
2006-03-09 14:07:34 +03:00
holyfoot@mysql.com
597fe4b178
Merge bk@192.168.21.1:mysql-5.0
...
into mysql.com:/home/hf/work/mysql-5.0.mrg
2006-03-09 10:38:41 +04:00
anozdrin@mysql.com
be527f3070
Fix for multiple test failures on some platforms.
2006-03-09 03:10:39 +03:00
kent@mysql.com
275e7ac46c
Merge
2006-03-09 00:40:52 +01:00
kent@mysql.com
e32054e4a7
mysql-test-run.pl, mtr_cases.pl
...
- Back porting of some changes in later releases
- Corrected valgrind support
- Removed work around for TZ needed in VisualStudio 6
- Don't restart master to add special settings from "<testcase>-master.opt",
if same settngs as running master, feature request in bug#12433
- With --reorder, keep tests with same *-master.opt content together,
to save even more master restarts
2006-03-08 19:15:56 +01:00
msvensson@shellback.(none)
0903941d05
Merge bk-internal:/home/bk/mysql-5.0
...
into shellback.(none):/home/msvensson/mysql/mysqltestrun_ndbclusterstart/my50-mysqltestrun_ndbclusterstart
2006-03-08 17:00:56 +01:00
msvensson@shellback.(none)
e37f80a1ac
BUG#17574 Detect cluster start failure and "fail" ndb_* tests
...
- Fix problems that occur when ndbcluster is not supported
2006-03-08 16:57:42 +01:00
msvensson@neptunus.(none)
aa82944b4f
Merge bk-internal:/home/bk/mysql-5.0
...
into neptunus.(none):/home/msvensson/mysql/bug17137/my50-bug17137
2006-03-08 15:35:30 +01:00
msvensson@neptunus.(none)
7f0eba7081
Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0
...
into neptunus.(none):/home/msvensson/mysql/bug17137/my50-bug17137
2006-03-08 13:31:05 +01:00
msvensson@neptunus.(none)
72f509e228
Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1
...
into neptunus.(none):/home/msvensson/mysql/bug17137/my41-bug17137
2006-03-08 11:20:12 +01:00
msvensson@neptunus.(none)
8c3be395f7
After merge
2006-03-08 10:40:29 +01:00
msvensson@neptunus.(none)
8a977e4b38
Merge neptunus.(none):/home/msvensson/mysql/bug17137/my41-bug17137
...
into neptunus.(none):/home/msvensson/mysql/bug17137/my50-bug17137
2006-03-08 10:17:12 +01:00
msvensson@neptunus.(none)
8162610a39
Bug#17137 Running "truncate table" on temporary table leaves the table open on a slave
...
- Decrease "slave_open_temp_tables" during reopen of truncated table.
- Add test "rpl_trunc_temp"
2006-03-08 10:15:48 +01:00
msvensson@shellback.(none)
51ef90a329
Merge bk-internal:/home/bk/mysql-5.0
...
into shellback.(none):/home/msvensson/mysql/bug17574/my50-bug17574
2006-03-08 07:47:26 +01:00
kent@mysql.com
64ed7f1481
mysql-test-run.pl:
...
Allow space in base directory path, bug#15736
2006-03-08 03:51:59 +01:00
anozdrin@mysql.com
615357b96c
After-merge fix: fix the test case for BUG#16266 to query
...
only its own tables to prevent getting tables from others.
2006-03-08 00:13:27 +03:00
msvensson@shellback.(none)
78edd3788f
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into shellback.(none):/home/msvensson/mysql/bug17574/my50-bug17574
2006-03-07 20:41:04 +01:00
anozdrin@mysql.com
d5e641fec7
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/alik/Documents/AllProgs/MySQL/devel/5.0-rt
2006-03-07 21:47:41 +03:00
msvensson@shellback.(none)
87209d560c
Bug#17574 Detect cluster start failure and "fail" ndb_* tests
2006-03-07 19:44:58 +01:00
msvensson@neptunus.(none)
48bef14042
Fix missing call to init_tmp_sh_file
2006-03-07 14:34:20 +01:00
anozdrin@mysql.com
d9d4dc5ef8
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/alik/Documents/AllProgs/MySQL/devel/5.0-rt
2006-03-07 14:28:09 +03:00
msvensson@neptunus.(none)
647a940649
Enable ifdef for windows specific functions
2006-03-07 08:57:57 +01:00