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
e0734c8c
Commit
e0734c8c
authored
Jun 19, 2024
by
Yuchen Pei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-27662 remove SPIDER_SUPPORT_CREATE_OR_REPLACE_TABLE
parent
1e7138cf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
16 deletions
+0
-16
storage/spider/ha_spider.cc
storage/spider/ha_spider.cc
+0
-2
storage/spider/spd_environ.h
storage/spider/spd_environ.h
+0
-2
storage/spider/spd_table.cc
storage/spider/spd_table.cc
+0
-12
No files found.
storage/spider/ha_spider.cc
View file @
e0734c8c
...
...
@@ -10598,7 +10598,6 @@ int ha_spider::create(
)
{
goto
error
;
}
#ifdef SPIDER_SUPPORT_CREATE_OR_REPLACE_TABLE
if
(
thd
->
lex
->
create_info
.
or_replace
()
&&
(
error_num
=
spider_delete_tables
(
...
...
@@ -10609,7 +10608,6 @@ int ha_spider::create(
)
{
goto
error
;
}
#endif
if
(
(
error_num
=
spider_insert_tables
(
table_tables
,
&
tmp_share
))
)
{
...
...
storage/spider/spd_environ.h
View file @
e0734c8c
...
...
@@ -20,7 +20,5 @@
#ifndef SPD_ENVIRON_INCLUDED
#define SPIDER_SUPPORT_CREATE_OR_REPLACE_TABLE
#define HANDLER_HAS_DIRECT_AGGREGATE
#endif
/* SPD_ENVIRON_INCLUDED */
storage/spider/spd_table.cc
View file @
e0734c8c
...
...
@@ -8548,7 +8548,6 @@ int spider_discover_table_structure(
SPIDER_SYS_TABLES_TABLE_NAME_LEN
,
TRUE
,
&
open_tables_backup
,
FALSE
,
&
error_num
))
)
{
#ifdef SPIDER_SUPPORT_CREATE_OR_REPLACE_TABLE
if
(
thd
->
lex
->
create_info
.
or_replace
())
{
error_num
=
spider_delete_tables
(
table_tables
,
...
...
@@ -8556,11 +8555,8 @@ int spider_discover_table_structure(
}
if
(
!
error_num
)
{
#endif
error_num
=
spider_insert_tables
(
table_tables
,
spider_share
);
#ifdef SPIDER_SUPPORT_CREATE_OR_REPLACE_TABLE
}
#endif
spider_close_sys_table
(
thd
,
table_tables
,
&
open_tables_backup
,
FALSE
);
}
...
...
@@ -8664,7 +8660,6 @@ int spider_discover_table_structure(
DBUG_RETURN
(
error_num
);
}
#ifdef SPIDER_SUPPORT_CREATE_OR_REPLACE_TABLE
if
(
thd
->
lex
->
create_info
.
or_replace
())
{
error_num
=
spider_delete_tables
(
table_tables
,
...
...
@@ -8672,11 +8667,8 @@ int spider_discover_table_structure(
}
if
(
!
error_num
)
{
#endif
error_num
=
spider_insert_tables
(
table_tables
,
spider_share
);
#ifdef SPIDER_SUPPORT_CREATE_OR_REPLACE_TABLE
}
#endif
spider_free_share_resource_only
(
spider_share
);
if
(
error_num
)
...
...
@@ -8700,7 +8692,6 @@ int spider_discover_table_structure(
DBUG_RETURN
(
error_num
);
}
#ifdef SPIDER_SUPPORT_CREATE_OR_REPLACE_TABLE
if
(
thd
->
lex
->
create_info
.
or_replace
())
{
error_num
=
spider_delete_tables
(
table_tables
,
...
...
@@ -8708,11 +8699,8 @@ int spider_discover_table_structure(
}
if
(
!
error_num
)
{
#endif
error_num
=
spider_insert_tables
(
table_tables
,
spider_share
);
#ifdef SPIDER_SUPPORT_CREATE_OR_REPLACE_TABLE
}
#endif
spider_free_share_resource_only
(
spider_share
);
if
(
error_num
)
...
...
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