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
888f6852
Commit
888f6852
authored
Jul 31, 2019
by
Anel Husakovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-20210 If you have an INVISIBLE VIRTUAL column, SHOW CREATE TABLE doesn't list it as INVISIBLE
parent
c93f96e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
mysql-test/main/invisible_field_debug.result
mysql-test/main/invisible_field_debug.result
+12
-0
mysql-test/main/invisible_field_debug.test
mysql-test/main/invisible_field_debug.test
+9
-0
sql/sql_show.cc
sql/sql_show.cc
+4
-0
No files found.
mysql-test/main/invisible_field_debug.result
View file @
888f6852
...
@@ -376,3 +376,15 @@ SET debug_dbug="+d,test_completely_invisible,test_invisible_index";
...
@@ -376,3 +376,15 @@ SET debug_dbug="+d,test_completely_invisible,test_invisible_index";
CREATE TABLE t2 LIKE t1;
CREATE TABLE t2 LIKE t1;
SET debug_dbug= DEFAULT;
SET debug_dbug= DEFAULT;
DROP TABLE t1, t2;
DROP TABLE t1, t2;
#
# MDEV-20210
# If you have an INVISIBLE VIRTUAL column, SHOW CREATE TABLE doesn't list it as INVISIBLE
#
CREATE TABLE t1 (i INT, v int GENERATED ALWAYS AS (1) VIRTUAL INVISIBLE);
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`i` int(11) DEFAULT NULL,
`v` int(11) GENERATED ALWAYS AS (1) VIRTUAL INVISIBLE
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLE t1;
mysql-test/main/invisible_field_debug.test
View file @
888f6852
...
@@ -278,3 +278,12 @@ SET debug_dbug="+d,test_completely_invisible,test_invisible_index";
...
@@ -278,3 +278,12 @@ SET debug_dbug="+d,test_completely_invisible,test_invisible_index";
CREATE
TABLE
t2
LIKE
t1
;
CREATE
TABLE
t2
LIKE
t1
;
SET
debug_dbug
=
DEFAULT
;
SET
debug_dbug
=
DEFAULT
;
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
--
echo
#
--
echo
# MDEV-20210
--
echo
# If you have an INVISIBLE VIRTUAL column, SHOW CREATE TABLE doesn't list it as INVISIBLE
--
echo
#
CREATE
TABLE
t1
(
i
INT
,
v
int
GENERATED
ALWAYS
AS
(
1
)
VIRTUAL
INVISIBLE
);
SHOW
CREATE
TABLE
t1
;
DROP
TABLE
t1
;
sql/sql_show.cc
View file @
888f6852
...
@@ -2256,6 +2256,10 @@ int show_create_table(THD *thd, TABLE_LIST *table_list, String *packet,
...
@@ -2256,6 +2256,10 @@ int show_create_table(THD *thd, TABLE_LIST *table_list, String *packet,
packet
->
append
(
STRING_WITH_LEN
(
" STORED"
));
packet
->
append
(
STRING_WITH_LEN
(
" STORED"
));
else
else
packet
->
append
(
STRING_WITH_LEN
(
" VIRTUAL"
));
packet
->
append
(
STRING_WITH_LEN
(
" VIRTUAL"
));
if
(
field
->
invisible
==
INVISIBLE_USER
)
{
packet
->
append
(
STRING_WITH_LEN
(
" INVISIBLE"
));
}
}
}
else
else
{
{
...
...
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