pem@mysql.comhem.se
a5780a4815
Fixed BUG#336: Subselects with tables does not work as values for local SP variables
...
and BUG#1654: Stored Procedure Crash if contains subquery and set function
Disallowed subselects in RETURN (for FUNCTIONs) and SET of local variables.
The latter should work, but turned out to be difficult to fix, so we just
disallow it for the time being.
2003-12-04 15:17:55 +01:00
pem@mysql.comhem.se
86039a34e5
Made Item_splocal printable.
2003-11-21 14:00:40 +01:00
pem@mysql.comhem.se
5e46a05960
Fixed BUG#1874: Don't call fix_fields() indiscriminately, it resets null_value
...
for some items, which made aggregates like MIN(), MAX() and SUM() fail.
2003-11-20 18:30:02 +01:00
pem@mysql.comhem.se
5b355ea6f5
Post-merge fixes.
2003-11-19 16:59:35 +01:00
pem@mysql.comhem.se
c4871b240d
Fixed BUG#1862 (flush table in SPs didn't work).
...
Fixed various bugs: setting local variables to NULL, SELECT INTO var now actually
might work, SELECT INTO with not row now gives a "no data" warning (instead of
the "empty query" error), etc.
Updated test cases accordingly.
2003-11-19 11:26:18 +01:00
gluh@gluh.mysql.r18.ru
e44a0c2aeb
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0
...
into gluh.mysql.r18.ru:/home/gluh/mysql-5.0.sp
2003-11-17 21:24:03 +04:00
gluh@gluh.mysql.r18.ru
ee4ed0c969
WL#1241: SHOW PROCEDURE/FUNCTION
...
WL#1263: Support for the attributes COMMENT and SUID
in CREATE/ALTER PROCEDURE/FUNCTION
2003-11-17 21:21:36 +04:00
pem@mysql.comhem.se
34d76c9319
Bugfix, handling null values.
2003-11-17 13:33:47 +01:00
pem@mysql.comhem.se
bfe6ef9c9b
Fix BUG#1656: Have to initialize OUT parameters too, in case they're not
...
later set by the procedure.
2003-10-28 15:43:49 +01:00
pem@mysql.comhem.se
52dae5c79e
Bugfix; added another method to Item_splocal, updated tests, and added previous
...
fix to functions as well.
2003-10-20 16:59:45 +02:00
pem@mysql.comhem.se
98397562c0
Bugfix. Local variables are now initialized to null.
2003-10-17 17:13:49 +02:00
pem@mysql.telia.com
1f1a8531d1
Handle user variables (@-vars) as OUT and INOUT parameters in SPs.
2003-10-16 15:45:27 +02:00
pem@mysql.telia.com
225aada6d6
Fix for BUG#1495: Evaluate items before setting a local variable with SELECT INTO.
...
Also copy and restore order_list and group_list for selects in SPs.
2003-10-14 12:59:28 +02:00
pem@mysql.telia.com
689bb84f72
WL#962: Added simple, read-only, non-scrolling, asensitive cursors in SPs, using the
...
(updated) Protocol_cursor class.
Also did some bug fixes.
2003-10-10 16:57:21 +02:00
pem@mysql.telia.com
e8634f80bd
Check that a FUNCTION contains RETURN and that we actually get a return value.
2003-10-03 17:38:12 +02:00
pem@mysql.telia.com
dbf45cbc3c
Fixed BUG#822: Copying and clearing some things in thd/lex when
...
executing sub-statements (selects) prevents crashes intermittent
crashes.
Also fixed bug in sql_yacc.yy (generated a hpop instruction when
not needed).
2003-10-03 12:39:12 +02:00
pem@mysql.telia.com
04f0570fe8
Implemented SP CONDITIONs and HANDLERs, with the extension of handling
...
MySQL error codes as well.
(No UNDO HANDLERs yet, and no SIGNAL or RESIGNAL.)
WL#850
2003-09-16 14:26:08 +02:00
pem@mysql.telia.com
7a7f3c13d4
Adopt to the introduction of a separate CLIENT_MULTI_RESULTS flag.
2003-08-27 17:04:33 +02:00
pem@mysql.telia.com
08e5a7e135
Post-merge fixes.
2003-08-26 17:41:40 +02:00
pem@mysql.com
6d225437ed
Code cleanup (and moved sp cache to separate file).
2003-07-03 15:58:37 +02:00
pem@mysql.com
4006e95808
Bugfixes for the sp_head memroot stuff.
2003-07-01 17:19:48 +02:00
pem@mysql.com
9f14ae7516
sp_head now has its own mem_root (WL#961).
...
Also fixed some difficult memory leaks that became apparent
in this task.
2003-06-29 18:15:17 +02:00
pem@mysql.com
541c94fcf1
Fixed bug #643 , which caused intermittent crashes in net_printf() with repeated
...
syntax errors in stored procedures.
2003-06-12 15:31:20 +02:00
gluh@gluh.mysql.r18.ru
7c6522a74e
'Expand the mysql.proc table to include (almost) all fields' task(851)
...
Fix after review
2003-06-02 14:25:01 +05:00
pem@mysql.com
4523a7b179
Adopt SP stuff to the new lex pointer.
2003-05-23 15:32:31 +02:00
vva@eagle.mysql.r18.ru
384b10e2af
Merge eagle.mysql.r18.ru:/home/vva/work/mysql.orig/clear/mysql-5.0
...
into eagle.mysql.r18.ru:/home/vva/work/LEX_PTR/mysql-5.0
2003-05-14 19:48:58 -04:00
gluh@gluh.mysql.r18.ru
33cabdc3b1
Expand the mysql.proc table
2003-05-06 21:09:20 +05:00
vva@eagle.mysql.r18.ru
afd581edd3
made lex a pointer in THD
2003-05-05 14:54:37 -04:00
pem@mysql.com
6c85c6aa6a
Post-fix of bug #302 fix.
...
Fixed bug #320 .
Some new tests and cosmetic changes.
Another strcasecmp() replaced.
2003-04-27 17:35:54 +02:00
bell@sanja.is.com.ua
b9a4bf8cad
subselect in procedure argument list (Bug #302 )
2003-04-23 22:31:47 +03:00
pem@mysql.com
cba91cce8c
Fixes bug #302 : call u((select 1)) now works.
...
More complex cases, like call u((select x from table limit 1)) does not.
2003-04-23 16:21:56 +02:00
pem@mysql.com
a4e065920b
Made multiple queries (SELECT without INTO) work in SPs.
...
This included bug fixes in the 4.1 protocol (actually send and receive the
server_status flags).
2003-04-23 09:22:54 +02:00
pem@mysql.com
7b5df9edec
Check the number of args to SPs.
...
Fixes bug #280 .
2003-04-17 13:20:02 +02:00
pem@mysql.com
5c4122d3e0
Fixed the last memory leaks in the SP code.
2003-04-03 20:00:52 +02:00
pem@mysql.com
1fc3582b7d
Got rid of the last unecessary Item_strings.
2003-04-03 16:00:09 +02:00
pem@mysql.com
c673fcb813
Getting rid of lots of memory leaks (but not quite all of them yet,
...
some will go away when temporary code is replaced).
2003-04-02 20:42:28 +02:00
pem@mysql.com
017ba13005
Check for thd->killed in execution loop. (Makes more graceful behaviour in
...
certain interrupt cases.)
2003-03-28 17:02:31 +01:00
pem@mysql.com
ac44a5f66e
Replaced a couple of strcasecmps.
2003-03-27 17:35:27 +01:00
pem@mysql.com
483efba239
Fixed save/restore of current database when calling a procedure.
2003-03-26 15:02:48 +01:00
pem@mysql.com
0d95f36a12
Post post merge fix. Made the broken ip test work again.
2003-03-20 11:57:05 +01:00
pem@mysql.com
12f771d9e7
Improved error handling regarding SPs (with info like names etc in the output).
...
Disabled queries in FUNCTIONs.
2003-03-05 19:45:17 +01:00
pem@mysql.com
8049daf202
Made FUNCTIONs work in insert and select queries, as well as nested function invocations.
...
Had to add a cahing mechanism which is in parts an ugly kludge, but it will be
reworked once the real SP caching is implemented.
2003-03-02 19:17:41 +01:00
pem@mysql.com
b6ab762dc1
Closing tables during SP execution the proper way.
2003-02-28 15:07:14 +01:00
pem@mysql.com
16cff7e75d
A small step forward. Fixed a few bugs and made string type functions work,
...
but still strange interferences between multiple function invocations...
2003-02-27 19:08:52 +01:00
pem@mysql.com
ca2e77ca7a
Made stored FUNCTION invokation work almost always. Still buggy and unstable, and
...
various known problems, but good enough for a checkpoint commit.
2003-02-26 19:22:29 +01:00
pem@mysql.com
d8c75ec8aa
Most of the groundwork for sprint task 729 (implement FUNCTIONs).
...
Expanded the mysql.proc table, reworked the find/create/drop functions
completely, added new functions for FUNCTIONs (lotta functions here :),
got rid of some unnecessary use of Item_strings while at it. Extended
the parser correspondingly, and fiddled around a bit to make SP FUNCTIONs
coexist with UDFs.
Can now CREATE and DROP FUNCTIONs. Invoking yet to come...
2003-02-21 17:37:05 +01:00
pem@mysql.com
d53fc31958
Fixed some DBUGing, and optimized SET slightly.
2003-02-12 16:17:03 +01:00
pem@mysql.com
b6890a7930
Fixed crash bug when certain procedures are called from the top level.
2003-02-02 17:44:39 +01:00
pem@mysql.com
b863798a7c
Fixed some basic error handling for SP functions in mysql_execute_command().
2003-01-15 15:39:36 +01:00
pem@mysql.com
204aa97280
Fixed some of the data collection during parsing.
2002-12-19 18:43:25 +01:00