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
3de51f27
Commit
3de51f27
authored
Mar 03, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after merge fixes
parent
e47d0a0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
sql/sql_udf.cc
sql/sql_udf.cc
+7
-7
No files found.
sql/sql_udf.cc
View file @
3de51f27
...
...
@@ -83,10 +83,10 @@ static char *init_syms(udf_func *tmp, char *nm)
{
char
*
end
;
if
(
!
((
tmp
->
func
=
dlsym
(
tmp
->
dlhandle
,
tmp
->
name
))))
return
tmp
->
name
;
if
(
!
((
tmp
->
func
=
dlsym
(
tmp
->
dlhandle
,
tmp
->
name
.
str
))))
return
tmp
->
name
.
str
;
end
=
strmov
(
nm
,
tmp
->
name
);
end
=
strmov
(
nm
,
tmp
->
name
.
str
);
if
(
tmp
->
type
==
UDFTYPE_AGGREGATE
)
{
...
...
@@ -193,10 +193,10 @@ void udf_init()
This is done to ensure that only approved dll from the system
directories are used (to make this even remotely secure).
*/
if
(
strchr
(
dl_name
,
'/'
)
||
strlen
(
name
)
>
NAME_LEN
)
if
(
strchr
(
dl_name
,
'/'
)
||
name
.
length
>
NAME_LEN
)
{
sql_print_error
(
"Invalid row in mysql.func table for function '%.64s'"
,
name
);
name
.
str
);
continue
;
}
...
...
@@ -204,7 +204,7 @@ void udf_init()
if
(
!
(
tmp
=
add_udf
(
&
name
,(
Item_result
)
table
->
field
[
1
]
->
val_int
(),
dl_name
,
udftype
)))
{
sql_print_error
(
"Can't alloc memory for udf function: '%.64s'"
,
name
);
sql_print_error
(
"Can't alloc memory for udf function: '%.64s'"
,
name
.
str
);
continue
;
}
...
...
@@ -271,7 +271,7 @@ void udf_free()
{
initialized
=
0
;
rwlock_destroy
(
&
THR_LOCK_udf
);
}
}
DBUG_VOID_RETURN
;
}
...
...
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