Commit graph

28374 commits

Author SHA1 Message Date
msvensson@devsrv-b.mysql.com
c8000f437d Merge msvensson@bk-internal.mysql.com:/home/bk/mysql-5.0
into  devsrv-b.mysql.com:/space/magnus/my50-bug9535
2005-12-09 10:22:30 +01:00
konstantin@mysql.com
bbf3a593c9 A fix and a test case for Bug#15441 "Running SP causes Server
to Crash": the bug was that due to non-standard name
resolution precedence in stored procedures (See Bug#5967)
a stored procedure variable took precedence over a table column
when the arguments for VALUES() function were resolved.
The implementation of VALUES() function was not designed to work
with Item_splocal and crashed.
VALUES() function is non-standard. It can refer to, and
is meaningful for, table columns only. The patch disables SP 
variables as possible arguments of VALUES() function.
2005-12-09 00:58:59 +03:00
jimw@mysql.com
f7ff3d653a Fix calls to free_underlaid_joins() in INSERT, DELETE, and UPDATE
handling so that indexes are closed before trying to commit the
transaction. (Bug #15536)
2005-12-08 12:33:33 -08:00
knielsen@mysql.com
bd9b379227 Merge bk-internal:/home/bk/mysql-5.0
into  mysql.com:/usr/local/mysql/mysql-5.0
2005-12-08 21:02:11 +01:00
knielsen@mysql.com
05a59fbc0e Merge mysqldev@production:my/mysql-5.0-release
into  mysql.com:/usr/local/mysql/mysql-5.0-release
2005-12-08 21:02:01 +01:00
kent@mysql.com
48af1d2674 Merge mysql.com:/Users/kent/mysql/bk/mysql-5.0-release
into mysql.com:/Users/kent/mysql/bk/mysql-5.0
2005-12-08 17:58:17 +01:00
kent@mysql.com
8fd7e5f922 Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1
into mysql.com:/Users/kent/mysql/bk/mysql-5.0-release
2005-12-08 16:15:27 +01:00
kent@mysql.com
e8198e799e mysqld.cc:
Bug#14960, reverted code to make symdir work on Windows
symlink.test:
  Disabled test case on Windows
2005-12-08 16:13:53 +01:00
jonas@perch.ndb.mysql.com
c4e8859b7f bug#15587 - ndb
Fix typo in autotest script
2005-12-08 15:29:39 +01:00
jonas@perch.ndb.mysql.com
13bb3c55e0 bug#15587 - ndb
Fix error in NF during NR
2005-12-08 15:28:15 +01:00
knielsen@mysql.com
51cd5da314 Fix QNX and IRIX compilation 2005-12-08 15:13:25 +01:00
ingo@mysql.com
8482de4381 Merge mysql.com:/home/mydev/mysql-5.0
into  mysql.com:/home/mydev/mysql-5.0-bug10932
2005-12-08 07:56:07 +01:00
msvensson@devsrv-b.mysql.com
7132edb2d9 Merge msvensson@bk-internal.mysql.com:/home/bk/mysql-5.0
into  devsrv-b.mysql.com:/space/magnus/my50-bug9535
2005-12-07 22:30:09 +01:00
dlenev@mysql.com
886ac06c9b Merge mysql.com:/home/dlenev/src/mysql-5.0-relfix
into  mysql.com:/home/dlenev/src/mysql-5.0-merges
2005-12-08 00:18:37 +03:00
dlenev@mysql.com
b712dc3339 Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into  mysql.com:/home/dlenev/src/mysql-5.0-merges
2005-12-07 23:07:06 +03:00
dlenev@mysql.com
56faadcc42 Fix -ansi -pedantic compilation failure. Fix coding style. 2005-12-07 22:36:13 +03:00
anozdrin@mysql.com
b867ef6df0 Fix commit error: sp-vars.test should belong to mysql-test/t directory. 2005-12-07 22:06:30 +03:00
ingo@mysql.com
693625eaa3 Merge mysql.com:/home/mydev/mysql-4.0-bug5390
into  mysql.com:/home/mydev/mysql-4.1-bug5390
2005-12-07 19:57:56 +01:00
msvensson@devsrv-b.mysql.com
f2e8bf275f Merge msvensson@msvensson.mysql.internal:/home/msvensson/mysql/bug9535/my50-bug9535
into  devsrv-b.mysql.com:/space/magnus/my50-bug9535
2005-12-07 19:56:03 +01:00
msvensson@neptunus.(none)
662dc37428 Merge neptunus.(none):/home/msvensson/mysql/bug9535/my41-bug9535
into  neptunus.(none):/home/msvensson/mysql/bug9535/my50-bug9535
2005-12-07 19:53:45 +01:00
ingo@mysql.com
5aa315e23a BUG#5390 - problems with merge tables
Problem #1: INSERT...SELECT, Version for 4.1.
INSERT ... SELECT with the same table on both sides (hidden
below a MERGE table) does now work by buffering the select result.
The duplicate detection works now after open_and_lock_tables() 
on the locks.
I did not find a test case that failed without the change in
sql_update.cc. I made the change anyway as it should in theory
fix a possible MERGE table problem with multi-table update.
2005-12-07 19:52:26 +01:00
ingo@mysql.com
270cad2f63 Merge istruewing@bk-internal.mysql.com:/home/bk/mysql-5.0
into  mysql.com:/home/mydev/mysql-5.0-bug10932
2005-12-07 19:47:55 +01:00
dlenev@mysql.com
246c12edc4 Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into  mysql.com:/home/dlenev/src/mysql-5.0-merges
2005-12-07 21:21:54 +03:00
konstantin@mysql.com
4821559e47 Fix a compilation failure. 2005-12-07 21:16:04 +03:00
dlenev@mysql.com
8d1292185c Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into  mysql.com:/home/dlenev/src/mysql-5.0-merges
2005-12-07 20:31:10 +03:00
msvensson@devsrv-b.mysql.com
dd7d2d0a11 Merge msvensson@bk-internal.mysql.com:/home/bk/mysql-4.1
into  devsrv-b.mysql.com:/space/magnus/my41-bug9535
2005-12-07 17:42:13 +01:00
jimw@mysql.com
24a40da5e8 Merge mysql.com:/home/jimw/my/mysql-5.0-15510
into  mysql.com:/home/jimw/my/mysql-5.0-release
2005-12-07 07:37:43 -08:00
konstantin@mysql.com
5517b5d419 Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into  mysql.com:/opt/local/work/mysql-5.0-root
2005-12-07 18:29:48 +03:00
konstantin@mysql.com
7bb7006d06 Fix -ansi -pedantic compilation failure. Fix coding style. 2005-12-07 18:15:02 +03:00
dlenev@mysql.com
be6ad37227 Merge mysql.com:/home/dlenev/src/mysql-5.0-bg11555-2
into  mysql.com:/home/dlenev/src/mysql-5.0-merges
2005-12-07 18:05:31 +03:00
bar@mysql.com
eb49612ff8 Bug#13421 problem with sorting turkish
latin5.xml:
  - Fixing order thee Turkish letters to conform Turkish rules.
  - All non-Turkish accented letters are mappend
    to their non-accented counterparts.
2005-12-07 18:48:46 +04:00
msvensson@devsrv-b.mysql.com
440ac6befb Merge msvensson@msvensson.mysql.internal:/home/msvensson/mysql/bug9535/my41-bug9535
into  devsrv-b.mysql.com:/space/magnus/my41-bug9535
2005-12-07 15:46:57 +01:00
msvensson@neptunus.(none)
a626b51dad BUG#9535 Warning for "create table t as select uuid();"
- Set max_length of Item_func_uuid to max_length*system_charset_info->mbmaxlen
    Note! Item_func_uuid should be set to use 'ascii' charset when hex(), format(), md5()
etc will use 'ascii'
    - Comitting again, the old patch seems to have been lost.
2005-12-07 15:45:31 +01:00
anozdrin@mysql.com
5b981a4844 Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into  mysql.com:/home/alik/Documents/AllProgs/MySQL/devel/5.0-sp-vars-merge-2
2005-12-07 17:17:42 +03:00
anozdrin@mysql.com
0ff8f60b45 Patch for WL#2894: Make stored routine variables work
according to the standard.

The idea is to use Field-classes to implement stored routines
variables. Also, we should provide facade to Item-hierarchy
by Item_field class (it is necessary, since SRVs take part
in expressions).

The patch fixes the following bugs:
  - BUG#8702: Stored Procedures: No Error/Warning shown for inappropriate data 
    type matching; 
 
  - BUG#8768: Functions: For any unsigned data type, -ve values can be passed 
    and returned; 
 
  - BUG#8769: Functions: For Int datatypes, out of range values can be passed 
    and returned; 
 
  - BUG#9078: STORED PROCDURE: Decimal digits are not displayed when we use 
    DECIMAL datatype; 
 
  - BUG#9572: Stored procedures: variable type declarations ignored; 
 
  - BUG#12903: upper function does not work inside a function; 
 
  - BUG#13705: parameters to stored procedures are not verified; 
 
  - BUG#13808: ENUM type stored procedure parameter accepts non-enumerated
    data; 
 
  - BUG#13909: Varchar Stored Procedure Parameter always BINARY string (ignores 
    CHARACTER SET); 
 
  - BUG#14161: Stored procedure cannot retrieve bigint unsigned;

  - BUG#14188: BINARY variables have no 0x00 padding;

  - BUG#15148: Stored procedure variables accept non-scalar values;
2005-12-07 17:01:17 +03:00
dlenev@mysql.com
c5c2874152 Fixed sp-error.test result after merging fix for bug #11555 "Stored procedures:
current SP tables locking make impossible view security" with main tree.
2005-12-07 16:55:16 +03:00
knielsen@mysql.com
e9e782900f Merge bk-internal:/home/bk/mysql-5.0
into  mysql.com:/data0/mysqldev/my/mysql-5.0
2005-12-07 12:50:14 +01:00
knielsen@mysql.com
e7d218d2e9 Bump version number following 5.0.17 release clone-off 2005-12-07 12:43:32 +01:00
lenz@mysql.com
be6b8c3b03 Merge lgrimmer@bk-internal:/home/bk/mysql-5.0
into  mysql.com:/space/my/mysql-5.0
2005-12-07 12:42:36 +01:00
dlenev@mysql.com
b5e21b60d9 Merge mysqldev@production.mysql.com:my/mysql-5.0-release
into  mysql.com:/home/dlenev/src/mysql-5.0-bg11555-2
2005-12-07 14:38:20 +03:00
lenz@mysql.com
87fc028284 Merge mysql.com:/space/my/mysql-5.0-merg
into  mysql.com:/space/my/mysql-5.0
2005-12-07 12:23:53 +01:00
stewart@mysql.com
1e630458f7 New tool to collate all information to form a good error report for NDB.
It will copy from each node the logs and trace dumps (if any) and create
a tarball. Having this tarball attached to a bug report greatly helps
troubleshooting and avoids user error.

It will (optionally) also get the filesystem.
2005-12-07 11:11:59 +01:00
dlenev@mysql.com
40614adf66 Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into  mysql.com:/home/dlenev/src/mysql-5.0-bg11555-2
2005-12-07 12:47:25 +03:00
lenz@mysql.com
cf7e2b2d6d Merge mysql.com:/space/my/mysql-4.1
into  mysql.com:/space/my/mysql-5.0-merg
2005-12-07 10:40:26 +01:00
dlenev@mysql.com
06b895c096 Fix for bug #11555 "Stored procedures: current SP tables locking make
impossible view security".

We should not expose names of tables which are explicitly or implicitly (via
routine or trigger) used by view even if we find that they are missing.
So during building of list of prelocked tables for statement we track which
routines (and therefore tables for these routines) are used from views. We
mark elements of LEX::routines set which correspond to routines used in views
by setting Sroutine_hash_entry::belong_to_view member to point to TABLE_LIST
object for topmost view which uses routine. We propagate this mark to all
routines which are used by this routine and which we add to this set. We also
mark tables used by such routine which we add to the list of tables for
prelocking as belonging to this view.
2005-12-07 12:27:17 +03:00
ingo@mysql.com
0d1413411a Merge istruewing@bk-internal.mysql.com:/home/bk/mysql-5.0
into  mysql.com:/home/mydev/mysql-5.0-bug10932
2005-12-07 09:06:18 +01:00
serg@serg.mylan
e4821e3e9d merged 2005-12-07 08:50:14 +01:00
timour@mysql.com
ecb41e28f2 Merge mysql.com:/home/timka/mysql/src/5.0-virgin
into  mysql.com:/home/timka/mysql/src/5.0-2486
2005-12-07 08:20:59 +02:00
lenz@mysql.com
74f44b9b9a Merge mysql.com:/space/my/mysql-4.0
into  mysql.com:/space/my/mysql-4.1
2005-12-07 06:46:43 +01:00
jimw@mysql.com
642984d420 Fix innodb.result file (was missing a line) 2005-12-06 18:18:35 -08:00