1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

More comments

This commit is contained in:
Sergei Petrunia
2016-02-05 16:50:50 +03:00
parent e64b57a839
commit 30c9450af7
2 changed files with 44 additions and 6 deletions

View File

@ -299,7 +299,11 @@ bool JOIN::process_window_functions(List<Item> *curr_fields_list)
*/
item_win->advance_window();
/* Put the new value into temptable's field */
/*
Put the new value into temptable's field
TODO: Should this use item_win->update_field() call?
Regular aggegate function implementations seem to implement it.
*/
item_win->save_in_field(item_win->result_field, true);
err= tbl->file->ha_update_row(tbl->record[1], tbl->record[0]);
if (err && err != HA_ERR_RECORD_IS_THE_SAME)