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
3ddbc987
Commit
3ddbc987
authored
Dec 18, 2003
by
pem@mysql.comhem.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected faulty #if tests in udf_example.cc which made udf_test crash the server on some
platforms.
parent
7c3ee999
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/udf_example.cc
sql/udf_example.cc
+4
-4
No files found.
sql/udf_example.cc
View file @
3ddbc987
...
...
@@ -681,7 +681,7 @@ my_bool lookup_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
}
initid
->
max_length
=
11
;
initid
->
maybe_null
=
1
;
#if !defined(HAVE_GETHOSTBYADDR_R)
&&
defined(HAVE_SOLARIS_STYLE_GETHOST)
#if !defined(HAVE_GETHOSTBYADDR_R)
|| !
defined(HAVE_SOLARIS_STYLE_GETHOST)
(
void
)
pthread_mutex_init
(
&
LOCK_hostname
,
MY_MUTEX_INIT_SLOW
);
#endif
return
0
;
...
...
@@ -689,7 +689,7 @@ my_bool lookup_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
void
lookup_deinit
(
UDF_INIT
*
initid
)
{
#if !defined(HAVE_GETHOSTBYADDR_R)
&&
defined(HAVE_SOLARIS_STYLE_GETHOST)
#if !defined(HAVE_GETHOSTBYADDR_R)
|| !
defined(HAVE_SOLARIS_STYLE_GETHOST)
(
void
)
pthread_mutex_destroy
(
&
LOCK_hostname
);
#endif
}
...
...
@@ -756,7 +756,7 @@ my_bool reverse_lookup_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
}
initid
->
max_length
=
32
;
initid
->
maybe_null
=
1
;
#if !defined(HAVE_GETHOSTBYADDR_R)
&&
defined(HAVE_SOLARIS_STYLE_GETHOST)
#if !defined(HAVE_GETHOSTBYADDR_R)
|| !
defined(HAVE_SOLARIS_STYLE_GETHOST)
(
void
)
pthread_mutex_init
(
&
LOCK_hostname
,
MY_MUTEX_INIT_SLOW
);
#endif
return
0
;
...
...
@@ -764,7 +764,7 @@ my_bool reverse_lookup_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
void
reverse_lookup_deinit
(
UDF_INIT
*
initid
)
{
#if !defined(HAVE_GETHOSTBYADDR_R)
&&
defined(HAVE_SOLARIS_STYLE_GETHOST)
#if !defined(HAVE_GETHOSTBYADDR_R)
|| !
defined(HAVE_SOLARIS_STYLE_GETHOST)
(
void
)
pthread_mutex_destroy
(
&
LOCK_hostname
);
#endif
}
...
...
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