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
c99678df
Commit
c99678df
authored
Nov 23, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix netware compile failure
Remove other warnings about unused variables
parent
8c2efdf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
sql/udf_example.c
sql/udf_example.c
+4
-3
No files found.
sql/udf_example.c
View file @
c99678df
...
@@ -1087,12 +1087,13 @@ my_bool is_const_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
...
@@ -1087,12 +1087,13 @@ my_bool is_const_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
strmov
(
message
,
"IS_CONST accepts only one argument"
);
strmov
(
message
,
"IS_CONST accepts only one argument"
);
return
1
;
return
1
;
}
}
initid
->
ptr
=
(
args
->
args
[
0
]
!=
NULL
)
?
1
:
0
;
initid
->
ptr
=
(
char
*
)((
args
->
args
[
0
]
!=
NULL
)
?
1
:
0
)
;
return
0
;
return
0
;
}
}
char
*
is_const
(
UDF_INIT
*
initid
,
UDF_ARGS
*
args
,
char
*
result
,
unsigned
long
char
*
is_const
(
UDF_INIT
*
initid
,
UDF_ARGS
*
args
__attribute__
((
unused
)),
*
length
,
char
*
is_null
,
char
*
error
)
char
*
result
,
unsigned
long
*
length
,
char
*
is_null
,
char
*
error
__attribute__
((
unused
)))
{
{
if
(
initid
->
ptr
!=
0
)
{
if
(
initid
->
ptr
!=
0
)
{
sprintf
(
result
,
"const"
);
sprintf
(
result
,
"const"
);
...
...
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