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
5d8cee44
Commit
5d8cee44
authored
Jun 03, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-8224 Server crashes in get_server_from_table_to_cache on empty name
parent
33d480f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
mysql-test/r/empty_server_name-8224.result
mysql-test/r/empty_server_name-8224.result
+1
-0
mysql-test/t/empty_server_name-8224.test
mysql-test/t/empty_server_name-8224.test
+5
-0
sql/sql_servers.cc
sql/sql_servers.cc
+2
-1
No files found.
mysql-test/r/empty_server_name-8224.result
0 → 100644
View file @
5d8cee44
create server '' foreign data wrapper w2 options (host '127.0.0.1');
mysql-test/t/empty_server_name-8224.test
0 → 100644
View file @
5d8cee44
create
server
''
foreign
data
wrapper
w2
options
(
host
'127.0.0.1'
);
--
exec
echo
"wait"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
--
shutdown_server
10
--
source
include
/
wait_until_disconnected
.
inc
--
exec
echo
"restart"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
sql/sql_servers.cc
View file @
5d8cee44
...
...
@@ -326,7 +326,8 @@ get_server_from_table_to_cache(TABLE *table)
table
->
use_all_columns
();
/* get each field into the server struct ptr */
server
->
server_name
=
get_field
(
&
mem
,
table
->
field
[
0
]);
ptr
=
get_field
(
&
mem
,
table
->
field
[
0
]);
server
->
server_name
=
ptr
?
ptr
:
blank
;
server
->
server_name_length
=
(
uint
)
strlen
(
server
->
server_name
);
ptr
=
get_field
(
&
mem
,
table
->
field
[
1
]);
server
->
host
=
ptr
?
ptr
:
blank
;
...
...
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