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
406bc4d1
Commit
406bc4d1
authored
Feb 15, 2012
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
store_create_info(): Fix a compiler warning about unused variable.
parent
4af45463
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
sql/sql_show.cc
sql/sql_show.cc
+4
-0
No files found.
sql/sql_show.cc
View file @
406bc4d1
...
@@ -1214,7 +1214,9 @@ int store_create_info(THD *thd, TABLE_LIST *table_list, String *packet,
...
@@ -1214,7 +1214,9 @@ int store_create_info(THD *thd, TABLE_LIST *table_list, String *packet,
handler
*
file
=
table
->
file
;
handler
*
file
=
table
->
file
;
TABLE_SHARE
*
share
=
table
->
s
;
TABLE_SHARE
*
share
=
table
->
s
;
HA_CREATE_INFO
create_info
;
HA_CREATE_INFO
create_info
;
#ifdef WITH_PARTITION_STORAGE_ENGINE
bool
show_table_options
=
FALSE
;
bool
show_table_options
=
FALSE
;
#endif
/* WITH_PARTITION_STORAGE_ENGINE */
bool
foreign_db_mode
=
(
thd
->
variables
.
sql_mode
&
(
MODE_POSTGRESQL
|
bool
foreign_db_mode
=
(
thd
->
variables
.
sql_mode
&
(
MODE_POSTGRESQL
|
MODE_ORACLE
|
MODE_ORACLE
|
MODE_MSSQL
|
MODE_MSSQL
|
...
@@ -1429,7 +1431,9 @@ int store_create_info(THD *thd, TABLE_LIST *table_list, String *packet,
...
@@ -1429,7 +1431,9 @@ int store_create_info(THD *thd, TABLE_LIST *table_list, String *packet,
packet
->
append
(
STRING_WITH_LEN
(
"
\n
)"
));
packet
->
append
(
STRING_WITH_LEN
(
"
\n
)"
));
if
(
!
(
thd
->
variables
.
sql_mode
&
MODE_NO_TABLE_OPTIONS
)
&&
!
foreign_db_mode
)
if
(
!
(
thd
->
variables
.
sql_mode
&
MODE_NO_TABLE_OPTIONS
)
&&
!
foreign_db_mode
)
{
{
#ifdef WITH_PARTITION_STORAGE_ENGINE
show_table_options
=
TRUE
;
show_table_options
=
TRUE
;
#endif
/* WITH_PARTITION_STORAGE_ENGINE */
/*
/*
Get possible table space definitions and append them
Get possible table space definitions and append them
to the CREATE TABLE statement
to the CREATE TABLE statement
...
...
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