summaryrefslogtreecommitdiff
path: root/sql/init.cc
diff options
context:
space:
mode:
authorunknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru>2007-01-31 10:07:56 +0400
committerunknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru>2007-01-31 10:07:56 +0400
commit86ed0e9806de37febafbd4664abf48ac6db3034d (patch)
tree6c9ed97252bdf7ef1a2212592492c3c907f573aa /sql/init.cc
parent7d4477f866d26b8bd8e941e6484d843cc30c83c8 (diff)
parentfaad73550c157388ffb7b1606e3f896ed7b276ac (diff)
downloadmariadb-git-86ed0e9806de37febafbd4664abf48ac6db3034d.tar.gz
Merge mysql.com:/home/ram/work/b19690/b19690.4.1
into mysql.com:/home/ram/work/b19690/b19690.5.0 mysql-test/r/type_float.result: Auto merged mysql-test/t/type_float.test: Auto merged sql/field.cc: Auto merged sql/item_cmpfunc.h: Auto merged sql/mysqld.cc: Auto merged sql/field.h: merging sql/init.cc: merging sql/item_cmpfunc.cc: merging sql/mysql_priv.h: merging sql/sql_select.cc: merging
Diffstat (limited to 'sql/init.cc')
-rw-r--r--sql/init.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/init.cc b/sql/init.cc
index 25856a1e1b4..ad55a2a8b24 100644
--- a/sql/init.cc
+++ b/sql/init.cc
@@ -44,5 +44,11 @@ void unireg_init(ulong options)
{ /* It's used by filesort... */
log_10[i]= nr ; nr*= 10.0;
}
+ /* Make a tab of powers of 0.1 */
+ for (i= 0, nr= 0.1; i < array_elements(log_01); i++)
+ {
+ log_01[i]= nr;
+ nr*= 0.1;
+ }
DBUG_VOID_RETURN;
}