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
96f82fd1
Commit
96f82fd1
authored
Mar 21, 2008
by
svoj@june.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/svoj/devel/mysql/push/mysql-5.0-engines
into mysql.com:/home/svoj/devel/mysql/push/mysql-5.1-engines
parents
65992efc
2b552aae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
mysql-test/r/federated.result
mysql-test/r/federated.result
+2
-0
mysql-test/t/federated.test
mysql-test/t/federated.test
+7
-0
storage/federated/ha_federated.cc
storage/federated/ha_federated.cc
+8
-1
No files found.
mysql-test/r/federated.result
View file @
96f82fd1
...
...
@@ -2090,6 +2090,8 @@ a b
1 1
DROP TABLE t1;
DROP TABLE t1;
CREATE TABLE t1 (a INT) ENGINE=federated CONNECTION='mysql://@:://';
DROP TABLE t1;
End of 5.1 tests
DROP TABLE IF EXISTS federated.t1;
DROP DATABASE IF EXISTS federated;
...
...
mysql-test/t/federated.test
View file @
96f82fd1
...
...
@@ -1816,5 +1816,12 @@ DROP TABLE t1;
connection
slave
;
DROP
TABLE
t1
;
#
# BUG#34788 - malformed federated connection url is not handled correctly -
# crashes server !
#
CREATE
TABLE
t1
(
a
INT
)
ENGINE
=
federated
CONNECTION
=
'mysql://@:://'
;
DROP
TABLE
t1
;
--
echo
End
of
5.1
tests
source
include
/
federated_cleanup
.
inc
;
storage/federated/ha_federated.cc
View file @
96f82fd1
...
...
@@ -833,13 +833,20 @@ Then password is a null string, so set to NULL
if
((
strchr
(
share
->
table_name
,
'/'
)))
goto
error
;
/*
If hostname is omitted, we set it to NULL. According to
mysql_real_connect() manual:
The value of host may be either a hostname or an IP address.
If host is NULL or the string "localhost", a connection to the
local host is assumed.
*/
if
(
share
->
hostname
[
0
]
==
'\0'
)
share
->
hostname
=
NULL
;
}
if
(
!
share
->
port
)
{
if
(
strcmp
(
share
->
hostname
,
my_localhost
)
==
0
)
if
(
!
share
->
hostname
||
strcmp
(
share
->
hostname
,
my_localhost
)
==
0
)
share
->
socket
=
(
char
*
)
MYSQL_UNIX_ADDR
;
else
share
->
port
=
MYSQL_PORT
;
...
...
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