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
ada6ad45
Commit
ada6ad45
authored
Jul 15, 2009
by
Ramil Kalimullin
Browse files
Options
Browse Files
Download
Plain Diff
Auto-merge
parents
1286d0f3
1e56aea3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
mysql-test/extra/binlog_tests/binlog.test
mysql-test/extra/binlog_tests/binlog.test
+12
-0
mysql-test/suite/binlog/r/binlog_row_binlog.result
mysql-test/suite/binlog/r/binlog_row_binlog.result
+11
-0
sql/sql_show.cc
sql/sql_show.cc
+1
-1
No files found.
mysql-test/extra/binlog_tests/binlog.test
View file @
ada6ad45
...
...
@@ -258,3 +258,15 @@ dec $it;
}
show
master
status
/* must show new binlog index after rotating */
;
drop
table
t3
;
--
echo
#
--
echo
# Bug #45998: database crashes when running "create as select"
--
echo
#
CREATE
DATABASE
test1
;
USE
test1
;
DROP
DATABASE
test1
;
CREATE
TABLE
test
.
t1
(
a
int
);
INSERT
INTO
test
.
t1
VALUES
(
1
),
(
2
);
CREATE
TABLE
test
.
t2
SELECT
*
FROM
test
.
t1
;
USE
test
;
DROP
TABLES
t1
,
t2
;
mysql-test/suite/binlog/r/binlog_row_binlog.result
View file @
ada6ad45
...
...
@@ -1298,3 +1298,14 @@ show master status /* must show new binlog index after rotating */;
File Position Binlog_Do_DB Binlog_Ignore_DB
master-bin.000002 106
drop table t3;
#
# Bug #45998: database crashes when running "create as select"
#
CREATE DATABASE test1;
USE test1;
DROP DATABASE test1;
CREATE TABLE test.t1(a int);
INSERT INTO test.t1 VALUES (1), (2);
CREATE TABLE test.t2 SELECT * FROM test.t1;
USE test;
DROP TABLES t1, t2;
sql/sql_show.cc
View file @
ada6ad45
...
...
@@ -1151,7 +1151,7 @@ int store_create_info(THD *thd, TABLE_LIST *table_list, String *packet,
{
const
LEX_STRING
*
const
db
=
table_list
->
schema_table
?
&
INFORMATION_SCHEMA_NAME
:
&
table
->
s
->
db
;
if
(
strcmp
(
db
->
str
,
thd
->
db
)
!=
0
)
if
(
!
thd
->
db
||
strcmp
(
db
->
str
,
thd
->
db
)
)
{
append_identifier
(
thd
,
packet
,
db
->
str
,
db
->
length
);
packet
->
append
(
STRING_WITH_LEN
(
"."
));
...
...
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