diff options
author | unknown <gshchepa/uchum@gleb.loc> | 2007-07-07 20:14:06 +0500 |
---|---|---|
committer | unknown <gshchepa/uchum@gleb.loc> | 2007-07-07 20:14:06 +0500 |
commit | a0336ad7d8f28b8de5a2b01ec285634952692abb (patch) | |
tree | a95fb8d593c69b8db4fa05ae09a5b11c223c117c /sql/spatial.cc | |
parent | bc52d1d6e306e5fa915d5ebd4db673f2ca552329 (diff) | |
parent | 8195a213c2fadfb185e755ce6dda2162df1a5529 (diff) | |
download | mariadb-git-a0336ad7d8f28b8de5a2b01ec285634952692abb.tar.gz |
Merge gleb.loc:/home/uchum/work/bk/5.0-opt
into gleb.loc:/home/uchum/work/bk/5.1-opt
mysql-test/r/gis.result:
Auto merged
mysql-test/r/view.result:
Auto merged
mysql-test/t/gis.test:
Auto merged
mysql-test/t/loaddata.test:
Auto merged
sql/item.h:
Auto merged
sql/spatial.cc:
Auto merged
sql/sql_class.cc:
Auto merged
sql/sql_class.h:
Auto merged
mysql-test/r/loaddata.result:
Merge with 5.0-opt.
mysql-test/t/view.test:
Merge with 5.0-opt.
Diffstat (limited to 'sql/spatial.cc')
-rw-r--r-- | sql/spatial.cc | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/sql/spatial.cc b/sql/spatial.cc index e0680ed182c..97e5fcfa27a 100644 --- a/sql/spatial.cc +++ b/sql/spatial.cc @@ -17,7 +17,28 @@ #ifdef HAVE_SPATIAL -#define MAX_DIGITS_IN_DOUBLE 16 +/* + exponential notation : + 1 sign + 1 number before the decimal point + 1 decimal point + 14 number of significant digits (see String::qs_append(double)) + 1 'e' sign + 1 exponent sign + 3 exponent digits + == + 22 + + "f" notation : + 1 optional 0 + 1 sign + 14 number significant digits (see String::qs_append(double) ) + 1 decimal point + == + 17 +*/ + +#define MAX_DIGITS_IN_DOUBLE 22 /***************************** Gis_class_info *******************************/ |