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
0762b00d
Commit
0762b00d
authored
Jun 17, 2002
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backported fix from 4.0 which caused core dumps for some complex queries.
parent
f4da1be1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
Docs/manual.texi
Docs/manual.texi
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+4
-3
sql/opt_range.cc
sql/opt_range.cc
+2
-1
No files found.
Docs/manual.texi
View file @
0762b00d
...
@@ -31150,7 +31150,7 @@ mysql> select TRUNCATE(1.999,1);
...
@@ -31150,7 +31150,7 @@ mysql> select TRUNCATE(1.999,1);
-> 1.9
-> 1.9
mysql> select TRUNCATE(1.999,0);
mysql> select TRUNCATE(1.999,0);
-> 1
-> 1
mysql> select TRUNCATE(-1
,
999,1);
mysql> select TRUNCATE(-1
.
999,1);
-> -1.9
-> -1.9
@end example
@end example
sql/mysqld.cc
View file @
0762b00d
...
@@ -1121,7 +1121,8 @@ void end_thread(THD *thd, bool put_in_cache)
...
@@ -1121,7 +1121,8 @@ void end_thread(THD *thd, bool put_in_cache)
inline
void
kill_broken_server
()
inline
void
kill_broken_server
()
{
{
/* hack to get around signals ignored in syscalls for problem OS's */
/* hack to get around signals ignored in syscalls for problem OS's */
if
(
unix_sock
==
INVALID_SOCKET
||
(
!
opt_disable_networking
&&
ip_sock
==
INVALID_SOCKET
))
if
(
unix_sock
==
INVALID_SOCKET
||
(
!
opt_disable_networking
&&
ip_sock
==
INVALID_SOCKET
))
{
{
select_thread_in_use
=
0
;
select_thread_in_use
=
0
;
kill_server
((
void
*
)
MYSQL_KILL_SIGNAL
);
/* never returns */
kill_server
((
void
*
)
MYSQL_KILL_SIGNAL
);
/* never returns */
...
@@ -1592,8 +1593,8 @@ pthread_handler_decl(handle_shutdown,arg)
...
@@ -1592,8 +1593,8 @@ pthread_handler_decl(handle_shutdown,arg)
abort_loop
=
1
;
abort_loop
=
1
;
// unblock select()
// unblock select()
so_cancel
(
ip_sock
);
so_cancel
(
ip_sock
);
so_cancel
(
unix_sock
);
so_cancel
(
unix_sock
);
return
0
;
return
0
;
}
}
...
...
sql/opt_range.cc
View file @
0762b00d
...
@@ -1285,7 +1285,8 @@ and_all_keys(SEL_ARG *key1,SEL_ARG *key2,uint clone_flag)
...
@@ -1285,7 +1285,8 @@ and_all_keys(SEL_ARG *key1,SEL_ARG *key2,uint clone_flag)
}
}
if
(
key1
->
type
==
SEL_ARG
::
MAYBE_KEY
)
if
(
key1
->
type
==
SEL_ARG
::
MAYBE_KEY
)
{
{
key1
->
left
=
&
null_element
;
key1
->
next
=
0
;
key1
->
right
=
key1
->
left
=
&
null_element
;
key1
->
next
=
key1
->
prev
=
0
;
}
}
for
(
next
=
key1
->
first
();
next
;
next
=
next
->
next
)
for
(
next
=
key1
->
first
();
next
;
next
=
next
->
next
)
{
{
...
...
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