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
b0b87a11
Commit
b0b87a11
authored
Oct 06, 2003
by
bell@laptop.sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after review patch (SCRUM)
parent
6a1ebb30
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
12 deletions
+7
-12
sql/sql_parse.cc
sql/sql_parse.cc
+0
-2
sql/udf_example.cc
sql/udf_example.cc
+0
-3
tests/udf_test
tests/udf_test
+1
-1
tests/udf_test.res
tests/udf_test.res
+6
-6
No files found.
sql/sql_parse.cc
View file @
b0b87a11
...
...
@@ -2939,8 +2939,6 @@ mysql_execute_command(THD *thd)
break
;
#ifdef HAVE_DLOPEN
sp_head
*
sph
=
sp_find_function
(
thd
,
&
lex
->
udf
.
name
);
// close & unlock table opened by sp_find_function
close_thread_tables
(
thd
);
if
(
sph
)
{
net_printf
(
thd
,
ER_UDF_EXISTS
,
lex
->
udf
.
name
.
str
);
...
...
sql/udf_example.cc
View file @
b0b87a11
...
...
@@ -991,7 +991,6 @@ avgcost( UDF_INIT* initid, UDF_ARGS* args, char* is_null, char* error )
extern
"C"
{
my_bool
myfunc_argument_name_init
(
UDF_INIT
*
initid
,
UDF_ARGS
*
args
,
char
*
message
);
void
myfunc_argument_name_deinit
(
UDF_INIT
*
initid
);
char
*
myfunc_argument_name
(
UDF_INIT
*
initid
,
UDF_ARGS
*
args
,
char
*
result
,
unsigned
long
*
length
,
char
*
null_value
,
char
*
error
);
...
...
@@ -1011,8 +1010,6 @@ my_bool myfunc_argument_name_init(UDF_INIT *initid, UDF_ARGS *args,
return
0
;
}
void
myfunc_argument_name_deinit
(
UDF_INIT
*
initid
)
{}
char
*
myfunc_argument_name
(
UDF_INIT
*
initid
,
UDF_ARGS
*
args
,
char
*
result
,
unsigned
long
*
length
,
char
*
null_value
,
char
*
error
)
...
...
tests/udf_test
View file @
b0b87a11
...
...
@@ -21,7 +21,7 @@ create temporary table t1 (a int,b double);
insert into t1 values (1,5),(1,4),(2,8),(3,9),(4,11);
select avgcost(a,b) from t1;
select avgcost(a,b) from t1 group by a;
select a, myfunc_argument_name(a) from t1;
select a, myfunc_argument_name(a)
, myfunc_argument_name(a as b)
from t1;
drop table t1;
DROP FUNCTION metaphon;
...
...
tests/udf_test.res
View file @
b0b87a11
...
...
@@ -116,12 +116,12 @@ avgcost(a,b)
select a, myfunc_argument_name(a) from t1;
--------------
a myfunc_argument_name(a)
1 a
1 a
2 a
3 a
4 a
a myfunc_argument_name(a)
myfunc_argument_name(a as b)
1 a
b
1 a
b
2 a
b
3 a
b
4 a
b
5 rows in set
--------------
...
...
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