summaryrefslogtreecommitdiff
path: root/sql/sql_window.h
diff options
context:
space:
mode:
authorVarun Gupta <varunraiko1803@gmail.com>2018-10-15 09:35:19 -0700
committerVarun Gupta <varunraiko1803@gmail.com>2018-10-16 08:11:26 -0700
commit97a37edc970f8619ffd23394b61fe310d705d0ef (patch)
tree8dad954c1cc548bde5be847599654ba29c39c0c2 /sql/sql_window.h
parent103b1df510599255f464de5c85a8b0ab1bb1283e (diff)
downloadmariadb-git-97a37edc970f8619ffd23394b61fe310d705d0ef.tar.gz
MDEV-17137: Syntax errors with VIEW using MEDIAN
The syntax error happened because we had not implemented a different print for percentile functions. The syntax is a bit different when we use percentile functions as window functions in comparision to normal window functions. Implemented a seperate print function for percentile functions
Diffstat (limited to 'sql/sql_window.h')
-rw-r--r--sql/sql_window.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_window.h b/sql/sql_window.h
index 392f89e8f03..bf59f00d764 100644
--- a/sql/sql_window.h
+++ b/sql/sql_window.h
@@ -147,6 +147,8 @@ class Window_spec : public Sql_alloc
}
void print(String *str, enum_query_type query_type);
+ void print_order(String *str, enum_query_type query_type);
+ void print_partition(String *str, enum_query_type query_type);
};