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
b2c54a9a
Commit
b2c54a9a
authored
Sep 10, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-6523 CONNECT temporary table created
check_engine() was not called for assisted discovery
parent
4ff2a680
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
sql/sql_table.cc
sql/sql_table.cc
+3
-3
storage/connect/mysql-test/connect/r/temporary.result
storage/connect/mysql-test/connect/r/temporary.result
+6
-0
storage/connect/mysql-test/connect/t/temporary.test
storage/connect/mysql-test/connect/t/temporary.test
+13
-0
No files found.
sql/sql_table.cc
View file @
b2c54a9a
...
...
@@ -4372,9 +4372,6 @@ handler *mysql_create_frm_image(THD *thd,
DBUG_RETURN
(
NULL
);
}
if
(
check_engine
(
thd
,
db
,
table_name
,
create_info
))
DBUG_RETURN
(
NULL
);
set_table_default_charset
(
thd
,
create_info
,
(
char
*
)
db
);
db_options
=
create_info
->
table_options
;
...
...
@@ -4780,6 +4777,9 @@ int create_table_impl(THD *thd,
THD_STAGE_INFO
(
thd
,
stage_creating_table
);
if
(
check_engine
(
thd
,
orig_db
,
orig_table_name
,
create_info
))
goto
err
;
if
(
create_table_mode
==
C_ASSISTED_DISCOVERY
)
{
/* check that it's used correctly */
...
...
storage/connect/mysql-test/connect/r/temporary.result
0 → 100644
View file @
b2c54a9a
CREATE TEMPORARY TABLE t1 (a int not null)
ENGINE=CONNECT table_type=MYSQL CONNECTION='mysql://root@127.0.0.1/test/t2';
ERROR HY000: Table storage engine 'CONNECT' does not support the create option 'TEMPORARY'
CREATE TEMPORARY TABLE t1
ENGINE=CONNECT table_type=MYSQL CONNECTION='mysql://root@127.0.0.1/test/t2';
ERROR HY000: Table storage engine 'CONNECT' does not support the create option 'TEMPORARY'
storage/connect/mysql-test/connect/t/temporary.test
0 → 100644
View file @
b2c54a9a
#
# CONNECT tables cannot be TEMPORARY
#
--
error
ER_ILLEGAL_HA_CREATE_OPTION
CREATE
TEMPORARY
TABLE
t1
(
a
int
not
null
)
ENGINE
=
CONNECT
table_type
=
MYSQL
CONNECTION
=
'mysql://root@127.0.0.1/test/t2'
;
# also with assisted discovery
--
error
ER_ILLEGAL_HA_CREATE_OPTION
CREATE
TEMPORARY
TABLE
t1
ENGINE
=
CONNECT
table_type
=
MYSQL
CONNECTION
=
'mysql://root@127.0.0.1/test/t2'
;
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