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
47c044e4
Commit
47c044e4
authored
Jan 03, 2007
by
gkodinov/kgeorge@rakia.gmz
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0-opt
into rakia.gmz:/home/kgeorge/mysql/work/B15439-5.0-opt
parents
79361c65
770608cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
sql/sql_udf.cc
sql/sql_udf.cc
+5
-1
No files found.
sql/sql_udf.cc
View file @
47c044e4
...
@@ -509,6 +509,8 @@ int mysql_drop_function(THD *thd,const LEX_STRING *udf_name)
...
@@ -509,6 +509,8 @@ int mysql_drop_function(THD *thd,const LEX_STRING *udf_name)
TABLE
*
table
;
TABLE
*
table
;
TABLE_LIST
tables
;
TABLE_LIST
tables
;
udf_func
*
udf
;
udf_func
*
udf
;
char
*
exact_name_str
;
uint
exact_name_len
;
DBUG_ENTER
(
"mysql_drop_function"
);
DBUG_ENTER
(
"mysql_drop_function"
);
if
(
!
initialized
)
if
(
!
initialized
)
{
{
...
@@ -522,6 +524,8 @@ int mysql_drop_function(THD *thd,const LEX_STRING *udf_name)
...
@@ -522,6 +524,8 @@ int mysql_drop_function(THD *thd,const LEX_STRING *udf_name)
my_error
(
ER_FUNCTION_NOT_DEFINED
,
MYF
(
0
),
udf_name
->
str
);
my_error
(
ER_FUNCTION_NOT_DEFINED
,
MYF
(
0
),
udf_name
->
str
);
goto
err
;
goto
err
;
}
}
exact_name_str
=
udf
->
name
.
str
;
exact_name_len
=
udf
->
name
.
length
;
del_udf
(
udf
);
del_udf
(
udf
);
/*
/*
Close the handle if this was function that was found during boot or
Close the handle if this was function that was found during boot or
...
@@ -535,7 +539,7 @@ int mysql_drop_function(THD *thd,const LEX_STRING *udf_name)
...
@@ -535,7 +539,7 @@ int mysql_drop_function(THD *thd,const LEX_STRING *udf_name)
tables
.
table_name
=
tables
.
alias
=
(
char
*
)
"func"
;
tables
.
table_name
=
tables
.
alias
=
(
char
*
)
"func"
;
if
(
!
(
table
=
open_ltable
(
thd
,
&
tables
,
TL_WRITE
)))
if
(
!
(
table
=
open_ltable
(
thd
,
&
tables
,
TL_WRITE
)))
goto
err
;
goto
err
;
table
->
field
[
0
]
->
store
(
udf
->
name
.
str
,
udf
->
name
.
length
,
&
my_charset_bin
);
table
->
field
[
0
]
->
store
(
exact_name_str
,
exact_name_len
,
&
my_charset_bin
);
table
->
file
->
extra
(
HA_EXTRA_RETRIEVE_ALL_COLS
);
table
->
file
->
extra
(
HA_EXTRA_RETRIEVE_ALL_COLS
);
if
(
!
table
->
file
->
index_read_idx
(
table
->
record
[
0
],
0
,
if
(
!
table
->
file
->
index_read_idx
(
table
->
record
[
0
],
0
,
(
byte
*
)
table
->
field
[
0
]
->
ptr
,
(
byte
*
)
table
->
field
[
0
]
->
ptr
,
...
...
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