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
544eeda3
Commit
544eeda3
authored
Dec 07, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-8644 Using a UDF in a virtual column causes a crash when stopping the server
first close all tables, then unload UDFs
parent
79d08e68
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
mysql-test/r/udf_notembedded.result
mysql-test/r/udf_notembedded.result
+6
-0
mysql-test/t/udf_notembedded.test
mysql-test/t/udf_notembedded.test
+14
-0
sql/mysqld.cc
sql/mysqld.cc
+1
-1
No files found.
mysql-test/r/udf_notembedded.result
0 → 100644
View file @
544eeda3
create function sequence returns integer soname "UDF_EXAMPLE_LIB";
create table t1 (n int key not null auto_increment, msg int as (sequence()) virtual);
select * from t1;
n msg
drop table t1;
drop function sequence;
mysql-test/t/udf_notembedded.test
0 → 100644
View file @
544eeda3
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_udf
.
inc
#
# MDEV-8644 Using a UDF in a virtual column causes a crash when stopping the server
#
--
replace_result
$UDF_EXAMPLE_SO
UDF_EXAMPLE_LIB
eval
create
function
sequence
returns
integer
soname
"
$UDF_EXAMPLE_SO
"
;
create
table
t1
(
n
int
key
not
null
auto_increment
,
msg
int
as
(
sequence
())
virtual
);
select
*
from
t1
;
source
include
/
restart_mysqld
.
inc
;
drop
table
t1
;
drop
function
sequence
;
sql/mysqld.cc
View file @
544eeda3
...
...
@@ -1813,9 +1813,9 @@ void clean_up(bool print_message)
item_user_lock_free
();
lex_free
();
/* Free some memory */
item_create_cleanup
();
udf_free
();
table_def_start_shutdown
();
plugin_shutdown
();
udf_free
();
ha_end
();
if
(
tc_log
)
tc_log
->
close
();
...
...
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