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
e176c416
Commit
e176c416
authored
Mar 22, 2010
by
Mats Kindahl
Browse files
Options
Browse Files
Download
Plain Diff
Merging with mysql-5.1-bugfixing.
parents
45610a66
92c7521f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
mysql-test/r/udf.result
mysql-test/r/udf.result
+0
-2
mysql-test/t/udf.test
mysql-test/t/udf.test
+5
-2
No files found.
mysql-test/r/udf.result
View file @
e176c416
...
@@ -38,8 +38,6 @@ ERROR HY000: Can't initialize function 'reverse_lookup'; Wrong number of argumen
...
@@ -38,8 +38,6 @@ ERROR HY000: Can't initialize function 'reverse_lookup'; Wrong number of argumen
select reverse_lookup("127.0.0.1");
select reverse_lookup("127.0.0.1");
select reverse_lookup(127,0,0,1);
select reverse_lookup(127,0,0,1);
select reverse_lookup("localhost");
select reverse_lookup("localhost");
reverse_lookup("localhost")
NULL
select avgcost();
select avgcost();
ERROR HY000: Can't initialize function 'avgcost'; wrong number of arguments: AVGCOST() requires two arguments
ERROR HY000: Can't initialize function 'avgcost'; wrong number of arguments: AVGCOST() requires two arguments
select avgcost(100,23.76);
select avgcost(100,23.76);
...
...
mysql-test/t/udf.test
View file @
e176c416
...
@@ -51,14 +51,17 @@ select lookup("localhost");
...
@@ -51,14 +51,17 @@ select lookup("localhost");
--
error
ER_CANT_INITIALIZE_UDF
--
error
ER_CANT_INITIALIZE_UDF
select
reverse_lookup
();
select
reverse_lookup
();
# These two functions should return "localhost", but it's
# These two function
call
s should return "localhost", but it's
# depending on configuration, so just call them and don't log the result
# depending on configuration, so just call them and don't log the result
--
disable_result_log
--
disable_result_log
select
reverse_lookup
(
"127.0.0.1"
);
select
reverse_lookup
(
"127.0.0.1"
);
select
reverse_lookup
(
127
,
0
,
0
,
1
);
select
reverse_lookup
(
127
,
0
,
0
,
1
);
--
enable_result_log
# This function call may return different results depending on platform,
# so ignore results (see Bug#52060).
select
reverse_lookup
(
"localhost"
);
select
reverse_lookup
(
"localhost"
);
--
enable_result_log
--
error
ER_CANT_INITIALIZE_UDF
--
error
ER_CANT_INITIALIZE_UDF
select
avgcost
();
select
avgcost
();
--
error
ER_CANT_INITIALIZE_UDF
--
error
ER_CANT_INITIALIZE_UDF
...
...
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