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
215ecd33
Commit
215ecd33
authored
Oct 10, 2005
by
eric@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#13724 conditionally added CONNECTION='connect string' for SHOW CREATE TABLE
parent
bef189cc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
mysql-test/r/federated.result
mysql-test/r/federated.result
+6
-0
mysql-test/t/federated.test
mysql-test/t/federated.test
+2
-0
sql/sql_show.cc
sql/sql_show.cc
+5
-0
No files found.
mysql-test/r/federated.result
View file @
215ecd33
...
@@ -74,6 +74,12 @@ CREATE TABLE federated.t2 (
...
@@ -74,6 +74,12 @@ CREATE TABLE federated.t2 (
)
)
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
SHOW CREATE TABLE federated.t2;
Table Create Table
t2 CREATE TABLE `t2` (
`id` int(20) NOT NULL,
`name` varchar(32) NOT NULL default ''
) ENGINE=FEDERATED DEFAULT CHARSET=latin1 CONNECTION='mysql://root@127.0.0.1:9308/federated/t1'
INSERT INTO federated.t2 (id, name) VALUES (1, 'foo');
INSERT INTO federated.t2 (id, name) VALUES (1, 'foo');
INSERT INTO federated.t2 (id, name) VALUES (2, 'fee');
INSERT INTO federated.t2 (id, name) VALUES (2, 'fee');
SELECT * FROM federated.t2;
SELECT * FROM federated.t2;
...
...
mysql-test/t/federated.test
View file @
215ecd33
...
@@ -75,6 +75,8 @@ eval CREATE TABLE federated.t2 (
...
@@ -75,6 +75,8 @@ eval CREATE TABLE federated.t2 (
ENGINE
=
"FEDERATED"
DEFAULT
CHARSET
=
latin1
ENGINE
=
"FEDERATED"
DEFAULT
CHARSET
=
latin1
CONNECTION
=
'mysql://root@127.0.0.1:$SLAVE_MYPORT/federated/t1'
;
CONNECTION
=
'mysql://root@127.0.0.1:$SLAVE_MYPORT/federated/t1'
;
SHOW
CREATE
TABLE
federated
.
t2
;
INSERT
INTO
federated
.
t2
(
id
,
name
)
VALUES
(
1
,
'foo'
);
INSERT
INTO
federated
.
t2
(
id
,
name
)
VALUES
(
1
,
'foo'
);
INSERT
INTO
federated
.
t2
(
id
,
name
)
VALUES
(
2
,
'fee'
);
INSERT
INTO
federated
.
t2
(
id
,
name
)
VALUES
(
2
,
'fee'
);
...
...
sql/sql_show.cc
View file @
215ecd33
...
@@ -1023,6 +1023,11 @@ store_create_info(THD *thd, TABLE_LIST *table_list, String *packet)
...
@@ -1023,6 +1023,11 @@ store_create_info(THD *thd, TABLE_LIST *table_list, String *packet)
packet
->
append
(
" COMMENT="
,
9
);
packet
->
append
(
" COMMENT="
,
9
);
append_unescaped
(
packet
,
share
->
comment
,
strlen
(
share
->
comment
));
append_unescaped
(
packet
,
share
->
comment
,
strlen
(
share
->
comment
));
}
}
if
(
share
->
connect_string
.
length
)
{
packet
->
append
(
" CONNECTION="
,
12
);
append_unescaped
(
packet
,
share
->
connect_string
.
str
,
share
->
connect_string
.
length
);
}
if
(
file
->
raid_type
)
if
(
file
->
raid_type
)
{
{
uint
length
;
uint
length
;
...
...
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