diff options
author | unknown <serg@serg.mylan> | 2004-09-07 15:18:53 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-09-07 15:18:53 +0200 |
commit | 77a86154880e0e4b8528f2363317c480dff62fe0 (patch) | |
tree | eb69e64fb069e7468a92e59eca620860f68aff61 /sql/sql_analyse.cc | |
parent | b5c6ac6a03efa7c56795a37f9b35a140e8b7af1d (diff) | |
parent | 6b1444d7ba70a286f3fc543ab5bc8927106f5638 (diff) | |
download | mariadb-git-77a86154880e0e4b8528f2363317c480dff62fe0.tar.gz |
merged
BitKeeper/etc/ignore:
auto-union
client/mysqlcheck.c:
Auto merged
myisammrg/myrg_open.c:
Auto merged
scripts/mysqld_safe.sh:
Auto merged
sql/sql_analyse.cc:
Auto merged
Diffstat (limited to 'sql/sql_analyse.cc')
-rw-r--r-- | sql/sql_analyse.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_analyse.cc b/sql/sql_analyse.cc index 3f75dadb6f0..1e0aebbc1ec 100644 --- a/sql/sql_analyse.cc +++ b/sql/sql_analyse.cc @@ -799,6 +799,13 @@ void field_real::get_opt_type(String *answer, if (min_arg >= 0) answer->append(" UNSIGNED"); } + else if (item->decimals == NOT_FIXED_DEC) + { + if (min_arg >= -FLT_MAX && max_arg <= FLT_MAX) + answer->append("FLOAT", 5); + else + answer->append("DOUBLE", 6); + } else { if (min_arg >= -FLT_MAX && max_arg <= FLT_MAX) |