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
07e5c13e
Commit
07e5c13e
authored
Jan 18, 2006
by
pappa@c-0c0be253.1238-1-64736c10.cust.bredbandsbolaget.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
b3658d67
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
mysql-test/include/partition_1.inc
mysql-test/include/partition_1.inc
+1
-0
sql/sql_partition.cc
sql/sql_partition.cc
+5
-5
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-0
No files found.
mysql-test/include/partition_1.inc
View file @
07e5c13e
...
@@ -745,3 +745,4 @@ if ($fixed_bug16370)
...
@@ -745,3 +745,4 @@ if ($fixed_bug16370)
--
source
include
/
partition_12
.
inc
--
source
include
/
partition_12
.
inc
}
}
DROP
TABLE
t1
;
DROP
TABLE
t1
;
DROP
TABLE
if
exists
t0_template
;
sql/sql_partition.cc
View file @
07e5c13e
...
@@ -3867,7 +3867,9 @@ bool mysql_unpack_partition(THD *thd, const uchar *part_buf,
...
@@ -3867,7 +3867,9 @@ bool mysql_unpack_partition(THD *thd, const uchar *part_buf,
DBUG_PRINT
(
"info"
,
(
"Successful parse"
));
DBUG_PRINT
(
"info"
,
(
"Successful parse"
));
part_info
=
lex
.
part_info
;
part_info
=
lex
.
part_info
;
DBUG_PRINT
(
"info"
,
(
"default engine = %d"
,
ha_legacy_type
(
part_info
->
default_engine_type
)));
DBUG_PRINT
(
"info"
,
(
"default engine = %d, default_db_type = %d"
,
ha_legacy_type
(
part_info
->
default_engine_type
),
ha_legacy_type
(
default_db_type
)));
if
(
is_create_table_ind
)
if
(
is_create_table_ind
)
{
{
if
(
old_lex
->
name
)
if
(
old_lex
->
name
)
...
@@ -3877,10 +3879,6 @@ bool mysql_unpack_partition(THD *thd, const uchar *part_buf,
...
@@ -3877,10 +3879,6 @@ bool mysql_unpack_partition(THD *thd, const uchar *part_buf,
old_lex->name contains the t2 and the table we are opening has
old_lex->name contains the t2 and the table we are opening has
name t1.
name t1.
*/
*/
Table_ident
*
ti
=
(
Table_ident
*
)
old_lex
->
name
;
const
char
*
db_name
=
ti
->
db
.
str
?
ti
->
db
.
str
:
thd
->
db
;
const
char
*
table_name
=
ti
->
table
.
str
;
handler
*
file
;
if
(
partition_default_handling
(
table
,
part_info
))
if
(
partition_default_handling
(
table
,
part_info
))
{
{
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
...
@@ -3892,7 +3890,9 @@ bool mysql_unpack_partition(THD *thd, const uchar *part_buf,
...
@@ -3892,7 +3890,9 @@ bool mysql_unpack_partition(THD *thd, const uchar *part_buf,
table
->
part_info
=
part_info
;
table
->
part_info
=
part_info
;
table
->
file
->
set_part_info
(
part_info
);
table
->
file
->
set_part_info
(
part_info
);
if
(
part_info
->
default_engine_type
==
NULL
)
if
(
part_info
->
default_engine_type
==
NULL
)
{
part_info
->
default_engine_type
=
default_db_type
;
part_info
->
default_engine_type
=
default_db_type
;
}
else
else
{
{
DBUG_ASSERT
(
part_info
->
default_engine_type
==
default_db_type
);
DBUG_ASSERT
(
part_info
->
default_engine_type
==
default_db_type
);
...
...
sql/sql_yacc.yy
View file @
07e5c13e
...
@@ -1229,6 +1229,7 @@ create:
...
@@ -1229,6 +1229,7 @@ create:
lex->key_list.empty();
lex->key_list.empty();
lex->col_list.empty();
lex->col_list.empty();
lex->change=NullS;
lex->change=NullS;
lex->name=0;
}
}
'(' key_list ')' opt_fulltext_parser
'(' key_list ')' opt_fulltext_parser
{
{
...
...
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