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
pem@mysql.com
58d3dda33f
Added parsing of CASE (both generic and "simple").
2002-12-17 10:01:52 +01:00
pem@mysql.com
b1593c9a69
Fixed the broken backpatching implementation.
...
Implemented IF-THEN-ELSE.
2002-12-16 15:40:44 +01:00
pem@mysql.com
113b9240d1
Added collection of called procedures in a list.
...
Fixed eval bug; now conditions with local variables work in WHILE et al.
Made mysql_install_db.sh create proc table.
2002-12-13 18:25:36 +01:00
pem@mysql.com
77b671f594
Moved create/find/drop functions to a separate files (sp.cc,sp.h).
...
Fixed backpatching of forward jumps.
Implemented LOOP, WHILE, REPEAT (temporarily known as SPREPEAT).
Known bug: Expression evaluation still not quite ok (e.g. "x > 0"),
which is why IF and CASE is not yet implemented.
2002-12-12 13:14:23 +01:00
pem@mysql.com
f0137bcd68
Fixed bugs in the parameter evaluation and modified the execution engine
...
for better jump support. Some flow control support added too (but not
complete).
2002-12-11 14:24:29 +01:00
pem@mysql.com
aae07a4d45
Simplistic, experimental framework for Stored Procedures (SPs).
...
Implements creation and dropping of PROCEDUREs, IN, OUT, and INOUT parameters,
single-statement procedures, rudimentary multi-statement (begin-end) prodedures
(when the client can handle it), and local variables.
Missing most of the embedded SQL language, all attributes, FUNCTIONs, error handling,
reparses procedures at each call (no caching), etc, etc.
Certainly buggy too, but procedures can actually be created and called....
2002-12-08 19:59:22 +01:00