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
40887913
Commit
40887913
authored
Oct 27, 2017
by
Varun Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the error messages involving percentile functions
parent
0ef6127c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
sql/item_windowfunc.h
sql/item_windowfunc.h
+4
-4
sql/share/errmsg-utf8.txt
sql/share/errmsg-utf8.txt
+3
-3
No files found.
sql/item_windowfunc.h
View file @
40887913
...
...
@@ -766,7 +766,7 @@ class Item_sum_percentile_disc : public Item_sum_cume_dist,
prev_value
=
arg
->
val_real
();
if
(
prev_value
>
1
||
prev_value
<
0
)
{
my_error
(
ER_ARGUMENT_OUT_OF_RANGE
,
MYF
(
0
));
my_error
(
ER_ARGUMENT_OUT_OF_RANGE
,
MYF
(
0
)
,
func_name
()
);
return
true
;
}
first_call
=
false
;
...
...
@@ -776,7 +776,7 @@ class Item_sum_percentile_disc : public Item_sum_cume_dist,
if
(
prev_value
!=
arg_val
)
{
my_error
(
ER_ARGUMENT_NOT_CONSTANT
,
MYF
(
0
));
my_error
(
ER_ARGUMENT_NOT_CONSTANT
,
MYF
(
0
)
,
func_name
()
);
return
true
;
}
...
...
@@ -887,7 +887,7 @@ class Item_sum_percentile_cont : public Item_sum_cume_dist,
prev_value
=
arg
->
val_real
();
if
(
prev_value
>
1
||
prev_value
<
0
)
{
my_error
(
ER_ARGUMENT_OUT_OF_RANGE
,
MYF
(
0
));
my_error
(
ER_ARGUMENT_OUT_OF_RANGE
,
MYF
(
0
)
,
func_name
()
);
return
true
;
}
}
...
...
@@ -895,7 +895,7 @@ class Item_sum_percentile_cont : public Item_sum_cume_dist,
double
arg_val
=
arg
->
val_real
();
if
(
prev_value
!=
arg_val
)
{
my_error
(
ER_ARGUMENT_NOT_CONSTANT
,
MYF
(
0
));
my_error
(
ER_ARGUMENT_NOT_CONSTANT
,
MYF
(
0
)
,
func_name
()
);
return
true
;
}
...
...
sql/share/errmsg-utf8.txt
View file @
40887913
...
...
@@ -7791,8 +7791,8 @@ ER_NOT_SINGLE_ELEMENT_ORDER_LIST
ER_WRONG_TYPE_FOR_PERCENTILE_FUNC
eng "Numeric datatype is required for %s function"
ER_ARGUMENT_NOT_CONSTANT
eng "Argument to the
percentile functions is not a constant
"
eng "Argument to the
%s function is not a constant for a partition
"
ER_ARGUMENT_OUT_OF_RANGE
eng "Argument to the
percentile functions
does not belong to the range [0,1]"
eng "Argument to the
%s function
does not belong to the range [0,1]"
ER_WRONG_TYPE_OF_ARGUMENT
eng "Numeric values are only allowed as arguments to percentile functions"
\ No newline at end of file
eng "%s function only accepts arguments that can be converted to numerical types"
\ No newline at end of file
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