diff options
author | Varun Gupta <varunraiko1803@gmail.com> | 2017-07-10 01:12:56 +0530 |
---|---|---|
committer | Varun Gupta <varunraiko1803@gmail.com> | 2017-11-01 23:13:01 +0530 |
commit | 3393005e958de87909ac5fa7f8e6ca92f8cc8b21 (patch) | |
tree | f57ded0e820a5fa24f1dc0978d567bc09cf2802f /sql/sql_window.cc | |
parent | 275ce39f05c364ca25bb7ecaa6a0bb02df83bdc4 (diff) | |
download | mariadb-git-3393005e958de87909ac5fa7f8e6ca92f8cc8b21.tar.gz |
Ensured that the the element in the order by clause should have a numerical time, if not throw an error
Diffstat (limited to 'sql/sql_window.cc')
-rw-r--r-- | sql/sql_window.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_window.cc b/sql/sql_window.cc index d1628c46e2a..08e93dfcce2 100644 --- a/sql/sql_window.cc +++ b/sql/sql_window.cc @@ -321,6 +321,12 @@ setup_windows(THD *thd, Ref_ptr_array ref_pointer_array, TABLE_LIST *tables, win_func_item->update_used_tables(); } + li.rewind(); + while((win_func_item= li++)) + { + if (win_func_item->check_order_list()) + DBUG_RETURN(1); + } DBUG_RETURN(0); } |