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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
62102f54
Commit
62102f54
authored
Aug 09, 2007
by
msvensson@pilot.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.1-maint
into pilot.(none):/data/msvensson/mysql/my51-bug29804
parents
867ae4cc
9d06483f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
sql/udf_example.c
sql/udf_example.c
+3
-3
sql/udf_example.def
sql/udf_example.def
+1
-0
No files found.
sql/udf_example.c
View file @
62102f54
...
@@ -1115,15 +1115,15 @@ my_bool check_const_len_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
...
@@ -1115,15 +1115,15 @@ my_bool check_const_len_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
}
}
if
(
args
->
args
[
0
]
==
0
)
if
(
args
->
args
[
0
]
==
0
)
{
{
initid
->
ptr
=
"Not constant"
;
initid
->
ptr
=
(
char
*
)
"Not constant"
;
}
}
else
if
(
strlen
(
args
->
args
[
0
])
==
args
->
lengths
[
0
])
else
if
(
strlen
(
args
->
args
[
0
])
==
args
->
lengths
[
0
])
{
{
initid
->
ptr
=
"Correct length"
;
initid
->
ptr
=
(
char
*
)
"Correct length"
;
}
}
else
else
{
{
initid
->
ptr
=
"Wrong length"
;
initid
->
ptr
=
(
char
*
)
"Wrong length"
;
}
}
initid
->
max_length
=
100
;
initid
->
max_length
=
100
;
return
0
;
return
0
;
...
...
sql/udf_example.def
View file @
62102f54
...
@@ -23,3 +23,4 @@ EXPORTS
...
@@ -23,3 +23,4 @@ EXPORTS
avgcost
avgcost
is_const
is_const
is_const_init
is_const_init
check_const_len
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