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
00630a26
Commit
00630a26
authored
Mar 19, 2004
by
gluh@gluh.mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-4.1
into gluh.mysql.r18.ru:/home/gluh/mysql-4.1.clear
parents
66631a3c
e9341da7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
sql/item_func.cc
sql/item_func.cc
+2
-2
sql/sql_udf.cc
sql/sql_udf.cc
+6
-2
No files found.
sql/item_func.cc
View file @
00630a26
...
...
@@ -1489,11 +1489,11 @@ udf_handler::fix_fields(THD *thd, TABLE_LIST *tables, Item_result_field *func,
arg
++
,
i
++
)
{
if
((
*
arg
)
->
fix_fields
(
thd
,
tables
,
arg
))
return
1
;
DBUG_RETURN
(
1
)
;
// we can't assign 'item' before, because fix_fields() can change arg
Item
*
item
=
*
arg
;
if
(
item
->
check_cols
(
1
))
return
1
;
DBUG_RETURN
(
1
)
;
/*
TODO: We should think about this. It is not always
right way just to set an UDF result to return my_charset_bin
...
...
sql/sql_udf.cc
View file @
00630a26
...
...
@@ -298,7 +298,11 @@ udf_func *find_udf(const char *name,uint length,bool mark_used)
DBUG_ENTER
(
"find_udf"
);
/* TODO: This should be changed to reader locks someday! */
rw_rdlock
(
&
THR_LOCK_udf
);
if
(
mark_used
)
rw_wrlock
(
&
THR_LOCK_udf
);
/* Called during fix_fields */
else
rw_rdlock
(
&
THR_LOCK_udf
);
/* Called during parsing */
if
((
udf
=
(
udf_func
*
)
hash_search
(
&
udf_hash
,(
byte
*
)
name
,
length
?
length
:
(
uint
)
strlen
(
name
))))
{
...
...
@@ -474,7 +478,7 @@ int mysql_drop_function(THD *thd,const LEX_STRING *udf_name)
if
(
!
(
udf
=
(
udf_func
*
)
hash_search
(
&
udf_hash
,(
byte
*
)
udf_name
->
str
,
(
uint
)
udf_name
->
length
)))
{
net_printf
(
thd
,
ER_FUNCTION_NOT_DEFINED
,
udf_name
);
net_printf
(
thd
,
ER_FUNCTION_NOT_DEFINED
,
udf_name
->
str
);
goto
err
;
}
del_udf
(
udf
);
...
...
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