bell@book.sanja.is.com.ua
4c984c7cc6
merge
2005-05-09 02:06:18 +03:00
bell@book.sanja.is.com.ua
91dccaa36f
Item::fix_field need correct pointer on item reference to chnge it if itis need, so support of correct item address added to SP commands (BUG#5963)
...
some optimisation of IF/NOT IF ptomised to Pem
2005-05-09 01:59:10 +03:00
joerg@trift-lap.fambruehe
84af50133b
Corrections to test "sp", stored procedure "fib" (see entry 9937 in the bug DB).
2005-05-07 18:06:02 +02:00
dlenev@mysql.com
917cb3dfbc
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into mysql.com:/home/dlenev/src/mysql-5.0-bg9841
2005-05-06 11:18:37 +04:00
holyfoot@hf-ibm.(none)
8f3647005c
Tests and results fixed with last precision/decimal related modifications
2005-05-06 01:01:39 +05:00
dlenev@brandersnatch.localdomain
d60674d665
Fix for bug #9841 "Unexpected read lock when trying to update a view in
...
a stored procedure" (version 2).
To handle updates and inserts into view in SP properly we should set
lock types for tables of the view's main select when we are opening
view for prelocking purproses.
2005-05-05 19:49:15 +04:00
jimw@mysql.com
300a9920ed
Add regression test for calling SOUNDEX() within stored procedure.
...
The bug appears to have already been fixed. (Bug #7293 )
2005-04-28 14:46:54 -07:00
pem@mysql.comhem.se
057b8aa9a8
Fixed BUG#9004: Inconsistent behaviour of SP re. warnings
2005-04-22 12:53:48 +02:00
acurtis@xiphis.org
c5d94db336
Merge
2005-04-21 13:34:39 +01:00
acurtis@xiphis.org
f67507588f
Bug#8861 - If Return is a YEAR data type, value is not shown in year format
...
Bug partially fixed by 9775/9102 work on SP function return.
2005-04-21 13:22:47 +01:00
acurtis@xiphis.org
8689083aca
Bug#9775 - Stored procedures: crash if create function that returns enum or set
...
Fix bug and implement return type casting.
2005-04-20 18:08:42 +01:00
pem@mysql.comhem.se
189d6b502b
Fixed BUG#6898: Stored procedure crash if GOTO statements exist
...
Bug in the optimizer caused an infinite loop for weird code.
2005-04-20 15:37:07 +02:00
acurtis@xiphis.org
77a9429c13
Bug#7648 - Stored procedure crash when invoking a function that returns a bit
...
bugfix 9102 corrected the crashing, this corrects the result.
2005-04-19 10:51:11 +01:00
acurtis@xiphis.org
f638e5cb8f
Bug#9102 - Stored proccedures: function which returns blob causes crash
...
Initialization of fields for sp return type was not complete.
2005-04-19 09:09:25 +01:00
pem@mysql.comhem.se
da22f75b68
Fixed BUG#9902: Crash with simple stored function using user defined variables
...
... actually, it was a query cache problem. (It shouldn't cache such queries)
2005-04-15 11:06:25 +02:00
pem@mysql.comhem.se
6aad6835c6
Fixed BUG#9598: stored procedure call within stored procedure
...
overwrites IN variable
and added error checking of variables for [IN]OUT parameters while
rewriting the out parameter handling.
2005-04-14 14:52:35 +02:00
pem@mysql.comhem.se
7a4f495f5b
Fixed BUG#9674: Stored Procs: Using declared vars in algebric operation
...
causes system crash.
2005-04-13 17:43:53 +02:00
pem@mysql.comhem.se
387afb3d29
Fixed BUG#9856: Stored procedures: crash if handler for sqlexception, not found.
2005-04-13 16:57:49 +02:00
pem@mysql.comhem.se
6a46d0cd8a
Added test case for BUG#6129: Stored procedure won't display @@sql_mode value.
2005-04-13 16:09:28 +02:00
pem@mysql.comhem.se
9c21006f81
Fixed BUG#7185: Stored procedure crash if identifier is AVG
2005-04-12 15:43:24 +02:00
pem@mysql.comhem.se
ce2e40ac19
Fixed BUG#6900: Stored procedure inner handler ignored
...
and BUG#9074: STORED PROC: The scope of every handler declared is not properly applied
2005-04-08 17:31:37 +02:00
dlenev@brandersnatch.localdomain
8d05aa0f02
Moved test for bug #9566 "explicit LOCK TABLE and store procedures result in illegal
...
state" to sp-error.test.
According to Per-Erik all SP related tests which should result in error
should go into sp-error.test and not in sp.test, because we want to be
able to run sp.test using normal client.
2005-04-07 11:57:47 +04:00
dlenev@brandersnatch.localdomain
d85bed1121
Fix for bug #9566 "explicit LOCK TABLE and store procedures result in
...
illegal state".
We should not assume that mysql.proc table does not exist if we are
unable to open it under LOCK TABLES or in prelocked mode (and
remember this fact by setting mysql_proc_table_exists to zero).
2005-04-07 01:40:29 +04:00
jimw@mysql.com
b95cb4e654
Merge
2005-04-05 19:45:34 -07:00
pem@mysql.comhem.se
8df8afc270
Fixed BUG#6600: Stored procedure crash after repeated calls with check table.
...
Sedond attempt: Simply disallow CHECK in SPs, since it can't work.
2005-03-30 17:43:52 +02:00
serg@serg.mylan
d6bedfa8e0
merged
2005-03-23 09:42:24 +01:00
mysqldev@mysql.com
ad26a667e6
sql_acl.cc, sql_acl.h, sql_parse.cc
...
New privilege CREATE USER (CREATE_USER_ACL, Create_user_priv) added
grant2.test:
new tests (mostly backported from jani's patch)
system_mysql_db.result, sp.result, grant2.result, grant.result:
results updated
2005-03-22 15:54:18 +01:00
pem@mysql.comhem.se
8af9a0d782
Fixed BUG#6600: Stored procedure crash after repeated calls with check table
2005-03-18 16:52:41 +01:00
mysqldev@mysql.com
7d5c7f5ec6
sp.test, sp.result:
...
transactional test removed
sp_trans.test, sp_trans.result:
new file
2005-03-17 22:15:23 +01:00
sergefp@mysql.com
ce564b2d7f
Updated tests results for BUG#8510
2005-03-15 10:27:44 +03:00
acurtis@pcgem.rdg.cyberkinetica.com
8d94824aa1
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
...
into pcgem.rdg.cyberkinetica.com:/var/db/bk/work-acurtis/bug3788.4
2005-03-09 01:15:42 +00:00
acurtis@ltantony.rdg.cyberkinetica.homeunix.net
be3c863ba0
Merge in fix Bug#3788
2005-03-08 22:32:09 +00:00
Sinisa@sinisa.nasamreza.org
b8e28ff9bd
Fixing post-merge errors
2005-03-09 00:09:18 +02:00
Sinisa@sinisa.nasamreza.org
b2c77c1c9c
post merge fixes
2005-03-08 22:59:21 +02:00
Sinisa@sinisa.nasamreza.org
f066f4db83
making a better test case for bug #8850
2005-03-08 22:44:35 +02:00
pem@mysql.comhem.se
6a15e01393
Fixed BUG#8937: Stored Procedure: AVG() works as SUM() in SELECT ... INTO statement
2005-03-07 18:09:53 +01:00
pem@mysql.comhem.se
9c2fe003dc
Reorganized sp.test (all bugs at the end now).
2005-03-07 17:16:37 +01:00
Sinisa@sinisa.nasamreza.org
a54b5ea52f
Fixing bug #8850 in such a way that when TRUNCATE is called within
...
stored procedure, it is converted to DELETE.
2005-03-05 21:44:15 +02:00
acurtis@pcgem.rdg.cyberkinetica.com
5e1d2ad68c
Bug#3788
...
Crashes with stored procedure return non-string values
Also fixes Bug#2773
2005-03-04 21:14:35 +00:00
dlenev@mysql.com
5b16dbf960
Manual merge SP-locking improvements patch with current tree.
2005-03-04 17:46:45 +03:00
dlenev@brandersnatch.localdomain
5a6c7027f0
Better approach for prelocking of tables for stored routines execution
...
and some SP-related cleanups.
- We don't have separate stage for calculation of list of tables
to be prelocked and doing implicit LOCK/UNLOCK any more.
Instead we calculate this list at open_tables() and do implicit
LOCK in lock_tables() (and UNLOCK in close_thread_tables()).
Also now we support cases when same table (with same alias) is
used several times in the same query in SP.
- Cleaned up execution of SP. Moved all common code which handles
LEX and does preparations before statement execution or complex
expression evaluation to auxilary sp_lex_keeper class. Now
all statements in SP (and corresponding instructions) that
evaluate expression which can contain subquery have their
own LEX.
2005-03-04 16:35:28 +03:00
konstantin@mysql.com
fe2d63a060
Fixes for bug#8115 "Server Crash with prepared statement"
...
and bug#8849 "problem with insert statement with table alias's":
make equality propagation work in stored procedures and prepared
statements.
Equality propagation can change AND/OR structure of ON expressions,
so the fix is to provide each execution of PS/SP with it's own
copy of AND/OR tree. We have been doing that already for WHERE clauses,
now ON clauses are also copied.
2005-03-03 17:38:59 +03:00
pem@mysql.comhem.se
027c5a6dac
Fixed BUG#8762: Stored Procedures: Inconsistent behavior
...
of DROP PROCEDURE IF EXISTS statement.
2005-03-02 17:25:58 +01:00
pem@mysql.comhem.se
2af86eafc7
Fixed BUG#8757: Stored Procedures: Scope of Begin and End Statements do not work properly.
2005-02-25 17:56:45 +01:00
pem@mysql.comhem.se
76c6d9cd91
Fixed BUG#6857: current_time() in STORED PROCEDURES
...
Have to thd->set_time() before each substatement execution, to make
current_time() et al return different times within the same procedure.
2005-02-25 13:19:44 +01:00
pem@mysql.comhem.se
2b1f0bf1f5
Fixed BUG#8638: Test 'sp' fails: Stored Procedure often sends warning 1329
...
The warning sent is by itself ok, the problem was rather why it wasn't
sent on some other platforms...
The real problem was that a total_warn_count which was inconsistent with warn_list
was sent back with send_eof() during SP execution, which in turn cause a protocol
error in mysqltest.
2005-02-24 13:56:09 +01:00
bell@51.0.168.192.in-addr.arpa
cfdf5bcdc8
fixed test results
2005-02-24 04:07:58 +02:00
bell@51.0.168.192.in-addr.arpa
950b7db381
Merge 51.0.168.192.in-addr.arpa:/Users/bell/mysql/bk/mysql-5.0
...
into 51.0.168.192.in-addr.arpa:/Users/bell/mysql/bk/work-qc_item_view-5.0
2005-02-21 13:16:25 +02:00
pem@mysql.comhem.se
a69fc3c03f
Fixed...
...
BUG#6642: Stored procedure crash if expression with set function
BUG#7013: Stored procedure crash if group by ... with rollup
BUG#7743: 'Lost connection to MySQL server during query' on Stored Procedure
BUG#7992: SELECT .. INTO variable .. within Stored Procedure crashes
the server
BUG#8116: calling simple stored procedure twice in a row results
in server crash
Rolling back the item change list after each substatement in a procedure
fixed the failing assert().
2005-02-18 17:39:32 +01:00
pem@mysql.comhem.se
de2b28c1ad
Fixed BUG#8540: Local variable overrides an alias.
2005-02-16 16:06:41 +01:00