summaryrefslogtreecommitdiff
path: root/sql/init.cc
diff options
context:
space:
mode:
authorunknown <ramil/ram@ramil.myoffice.izhnet.ru>2007-01-31 12:53:36 +0400
committerunknown <ramil/ram@ramil.myoffice.izhnet.ru>2007-01-31 12:53:36 +0400
commitdd1e0e7d6cf1c7c4c3cddf1f7436920f740a0e12 (patch)
tree2f6f9bd334f5e85e7faaa91f3debf91a9e3f7e89 /sql/init.cc
parent4c7aeb3676ba1a284f0e18ea1ef00b19a72f3c84 (diff)
parentabf7eb0627d1a652beaa2380dbb94c6ad0ae0a2a (diff)
downloadmariadb-git-dd1e0e7d6cf1c7c4c3cddf1f7436920f740a0e12.tar.gz
Merge mysql.com:/home/ram/work/b19690/b19690.5.0
into mysql.com:/home/ram/work/b19690/b19690.5.1 mysql-test/r/type_float.result: Auto merged mysql-test/t/type_float.test: Auto merged sql/field.cc: Auto merged sql/init.cc: Auto merged sql/item_cmpfunc.cc: Auto merged sql/item_cmpfunc.h: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/field.h: merging sql/item_sum.cc: 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 e129f98547e..ff236c03204 100644
--- a/sql/init.cc
+++ b/sql/init.cc
@@ -45,5 +45,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;
}