Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
5dc3387c
Commit
5dc3387c
authored
Feb 03, 2004
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-5.0
into sinisa.nasamreza.org:/mnt/work/petica
parents
43203278
ad960d8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
+14
-15
Docs/sp-imp-spec.txt
Docs/sp-imp-spec.txt
+1
-1
Docs/sp-implemented.txt
Docs/sp-implemented.txt
+13
-14
No files found.
Docs/sp-imp-spec.txt
View file @
5dc3387c
...
@@ -135,7 +135,7 @@
...
@@ -135,7 +135,7 @@
while x > 0 do
while x > 0 do
set x = x-1;
set x = x-1;
insert into db.tab values (x, s);
insert into db.tab values (x, s);
end while
end while
;
end
end
would generate the following structures:
would generate the following structures:
...
...
Docs/sp-implemented.txt
View file @
5dc3387c
...
@@ -12,7 +12,7 @@ Summary of what's implemented:
...
@@ -12,7 +12,7 @@ Summary of what's implemented:
- Prepared SP caching
- Prepared SP caching
- CONDITIONs and HANDLERs
- CONDITIONs and HANDLERs
- Simple read-only CURSORs.
- Simple read-only CURSORs.
- SHOW
DECLAR
E PROCEDURE/FUNCTION and SHOW PROCEDURE/FUNCTION STATUS
- SHOW
CREAT
E PROCEDURE/FUNCTION and SHOW PROCEDURE/FUNCTION STATUS
Summary of Not Yet Implemented:
Summary of Not Yet Implemented:
...
@@ -48,13 +48,12 @@ List of what's implemented:
...
@@ -48,13 +48,12 @@ List of what's implemented:
CASCADE/RESTRICT is not implemented.
CASCADE/RESTRICT is not implemented.
- CALL name (args)
- CALL name (args)
OUT and INOUT parameters are only supported for local variables, and
OUT and INOUT parameters are also works for user variables ("global"
therefore only useful when calling such procedures from within another
variables) - i.e., if a procedure is defined as:
procedure.
CREATE PROCEDURE foo(OUT p INT) ...;
Note: For the time being, when a procedure with OUT/INOUT parameter is
a call like:
called, the out values are silently discarded. In the future, this
CALL foo(@x);
will either generate an error message, or it might even work to
will set @x to the output value.
call all procedures from the top-level.
- Function/Procedure body:
- Function/Procedure body:
- BEGIN/END
- BEGIN/END
...
@@ -79,11 +78,11 @@ List of what's implemented:
...
@@ -79,11 +78,11 @@ List of what's implemented:
is implemented. (Note: This is not SQL-99 feature, but common in other
is implemented. (Note: This is not SQL-99 feature, but common in other
databases.)
databases.)
- A FUNCTION can have flow control contructs, but must not contain
- A FUNCTION can have flow control contructs, but must not contain
an SQL query
, like SELECT, INSERT, UPDATE, etc. The reason is that it's
an SQL query
/statement, like SELECT, INSERT, UPDATE, etc. The reason
hard to allow this is that a FUNCTION is executed as part of another
is that it's hard to allow this is that a FUNCTION is executed as part
query (unlike a PROCEDURE, which is called as a statement). The table
of another query (unlike a PROCEDURE, which is called as a statement).
locking scheme used makes it difficult to allow "subqueries" during
The table locking scheme used makes it difficult to allow "subqueries"
FUNCTION invokation.
during
FUNCTION invokation.
- SPs are cached, but with a separate cache for each thread (THD).
- SPs are cached, but with a separate cache for each thread (THD).
There are still quite a few non-reentrant constructs in the lexical
There are still quite a few non-reentrant constructs in the lexical
context which makes sharing prepared SPs impossible. And, even when
context which makes sharing prepared SPs impossible. And, even when
...
@@ -106,7 +105,7 @@ List of what's implemented:
...
@@ -106,7 +105,7 @@ List of what's implemented:
the current one when it's finished.
the current one when it's finished.
- SHOW procedures and functions
- SHOW procedures and functions
SHOW
DECLAR
E PROCEDURE|FUNCTION <name>
SHOW
CREAT
E PROCEDURE|FUNCTION <name>
returns the definition of a routine.
returns the definition of a routine.
SHOW PROCEDURE|FUNCTION STATUS [LIKE <pattern>]
SHOW PROCEDURE|FUNCTION STATUS [LIKE <pattern>]
returns characteristics of routines, like the name, type, creator,
returns characteristics of routines, like the name, type, creator,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment