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
0ef6127c
Commit
0ef6127c
authored
Oct 27, 2017
by
Varun Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Date-time fields are disabled currently for the result type of percentile function
parent
58a6e435
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
sql/item_windowfunc.cc
sql/item_windowfunc.cc
+2
-3
sql/share/errmsg-utf8.txt
sql/share/errmsg-utf8.txt
+2
-2
No files found.
sql/item_windowfunc.cc
View file @
0ef6127c
...
...
@@ -176,10 +176,9 @@ bool Item_window_func::check_result_type_of_order_item()
Item_result
rtype
=
window_spec
->
order_list
->
first
->
item
[
0
]
->
cmp_type
();
// TODO (varun) : support date type in percentile_cont function
if
(
rtype
!=
REAL_RESULT
&&
rtype
!=
INT_RESULT
&&
rtype
!=
DECIMAL_RESULT
&&
rtype
!=
TIME_RESULT
&&
window_func
()
->
sum_func
()
==
Item_sum
::
PERCENTILE_CONT_FUNC
)
rtype
!=
DECIMAL_RESULT
&&
rtype
!=
TIME_RESULT
)
{
my_error
(
ER_WRONG_TYPE_FOR_PERCENTILE_
CONT
,
MYF
(
0
));
my_error
(
ER_WRONG_TYPE_FOR_PERCENTILE_
FUNC
,
MYF
(
0
));
return
TRUE
;
}
setting_handler_for_percentile_functions
(
rtype
);
...
...
sql/share/errmsg-utf8.txt
View file @
0ef6127c
...
...
@@ -7788,8 +7788,8 @@ ER_UNKNOWN_COMPRESSION_METHOD
eng "Unknown compression method: %s"
ER_NOT_SINGLE_ELEMENT_ORDER_LIST
eng "Incorrect number of elements in the order list for '%s'"
ER_WRONG_TYPE_FOR_PERCENTILE_
CONT
eng "Numeric datatype is required for
Percentile_CONT
function"
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"
ER_ARGUMENT_OUT_OF_RANGE
...
...
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