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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
81862dbb
Commit
81862dbb
authored
Apr 26, 2021
by
Federico Razzoli
Committed by
Vladislav Vaintroub
Apr 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-28340 sys.table_exists: support table_type=SEQUENCE
parent
e135edec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
scripts/sys_schema/procedures/table_exists.sql
scripts/sys_schema/procedures/table_exists.sql
+3
-2
No files found.
scripts/sys_schema/procedures/table_exists.sql
View file @
81862dbb
...
@@ -19,7 +19,7 @@ DELIMITER $$
...
@@ -19,7 +19,7 @@ DELIMITER $$
CREATE
DEFINER
=
'mariadb.sys'
@
'localhost'
PROCEDURE
table_exists
(
CREATE
DEFINER
=
'mariadb.sys'
@
'localhost'
PROCEDURE
table_exists
(
IN
in_db
VARCHAR
(
64
),
IN
in_table
VARCHAR
(
64
),
IN
in_db
VARCHAR
(
64
),
IN
in_table
VARCHAR
(
64
),
OUT
out_exists
ENUM
(
''
,
'BASE TABLE'
,
'VIEW'
,
'TEMPORARY'
)
OUT
out_exists
ENUM
(
''
,
'BASE TABLE'
,
'VIEW'
,
'TEMPORARY'
,
'SEQUENCE'
)
)
)
COMMENT
'
COMMENT
'
Description
Description
...
@@ -41,10 +41,11 @@ CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE table_exists (
...
@@ -41,10 +41,11 @@ CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE table_exists (
out_exists ENUM(
''''
,
''
BASE TABLE
''
,
''
VIEW
''
,
''
TEMPORARY
''
):
out_exists ENUM(
''''
,
''
BASE TABLE
''
,
''
VIEW
''
,
''
TEMPORARY
''
):
The return value: whether the table exists. The value is one of:
The return value: whether the table exists. The value is one of:
*
''''
- the table does not exist neither as a base table, view, nor temporary table.
*
''''
- the table does not exist neither as a base table, view,
sequence
nor temporary table.
*
''
BASE TABLE
''
- the table name exists as a permanent base table table.
*
''
BASE TABLE
''
- the table name exists as a permanent base table table.
*
''
VIEW
''
- the table name exists as a view.
*
''
VIEW
''
- the table name exists as a view.
*
''
TEMPORARY
''
- the table name exists as a temporary table.
*
''
TEMPORARY
''
- the table name exists as a temporary table.
*
''
SEQUENCE
''
- the table name exists as a sequence.
Example
Example
--------
--------
...
...
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