summaryrefslogtreecommitdiff
path: root/sql/mysql_priv.h
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2005-05-20 01:04:08 +0500
committerunknown <ramil@mysql.com>2005-05-20 01:04:08 +0500
commit4482604ec687e8ec46fdaf90c63e141e7ef2d502 (patch)
tree5e6d9435d32b26b1324c1287df3626c0e93da8c0 /sql/mysql_priv.h
parent9c1bc4252f925a6cf43433492a49f3107ec1b67a (diff)
downloadmariadb-git-4482604ec687e8ec46fdaf90c63e141e7ef2d502.tar.gz
hf's fix for bug #9060 (FORMAT returns incorrect result)
we need proper rounding there mysql-test/r/func_math.result: test result fixed mysql-test/t/func_math.test: test case added sql/item_func.cc: my_double_round implementation added sql/item_strfunc.cc: my_double_round used sql/mysql_priv.h: my_double_round interface
Diffstat (limited to 'sql/mysql_priv.h')
-rw-r--r--sql/mysql_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h
index d46ee655165..645e835d9ca 100644
--- a/sql/mysql_priv.h
+++ b/sql/mysql_priv.h
@@ -1251,6 +1251,7 @@ ha_rows filesort(THD *thd, TABLE *form,struct st_sort_field *sortorder,
ha_rows max_rows, ha_rows *examined_rows);
void filesort_free_buffers(TABLE *table);
void change_double_for_sort(double nr,byte *to);
+double my_double_round(double value, int dec, bool truncate);
int get_quick_record(SQL_SELECT *select);
int calc_weekday(long daynr,bool sunday_first_day_of_week);
uint calc_week(TIME *l_time, uint week_behaviour, uint *year);