summaryrefslogtreecommitdiff
path: root/sql/item_windowfunc.h
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2016-03-16 01:08:09 +0200
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2016-03-16 01:09:53 +0200
commit333ac13be547eab0e133603335ecc9368bb10b94 (patch)
tree217ab4507b1bfaa2958626b479d71873218887d0 /sql/item_windowfunc.h
parent833304313d65f426323b10016616c3a6d951804b (diff)
downloadmariadb-git-333ac13be547eab0e133603335ecc9368bb10b94.tar.gz
Make sure to return the result value when calling Item_windowfunc::val_real()
This caused Item_windowfunc to return garbage.
Diffstat (limited to 'sql/item_windowfunc.h')
-rw-r--r--sql/item_windowfunc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h
index e316c6d712a..5f36a52c6e4 100644
--- a/sql/item_windowfunc.h
+++ b/sql/item_windowfunc.h
@@ -497,6 +497,7 @@ public:
res= window_func->val_real();
null_value= window_func->null_value;
}
+ return res;
}
longlong val_int()