diff options
author | tomas@poseidon.ndb.mysql.com <> | 2005-07-15 14:14:59 +0200 |
---|---|---|
committer | tomas@poseidon.ndb.mysql.com <> | 2005-07-15 14:14:59 +0200 |
commit | b144b920a0b40dbb56e104b51eb4a8e39461db9a (patch) | |
tree | a7a57277d1d21e7ca34467091cf7472105d66323 /sql | |
parent | a4a5bc42a6886d6865d95e2bb84349da53991348 (diff) | |
parent | cd590a6a02472567b43f5182eccbf86d98b02155 (diff) | |
download | mariadb-git-b144b920a0b40dbb56e104b51eb4a8e39461db9a.tar.gz |
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-new
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_prepare.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index f7e2bd0467e..60f4e2c86df 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -306,24 +306,28 @@ static void set_param_int64(Item_param *param, uchar **pos, ulong len) static void set_param_float(Item_param *param, uchar **pos, ulong len) { + float data; #ifndef EMBEDDED_LIBRARY if (len < 4) return; -#endif - float data; float4get(data,*pos); +#else + data= *(float*) *pos; +#endif param->set_double((double) data); *pos+= 4; } static void set_param_double(Item_param *param, uchar **pos, ulong len) { + double data; #ifndef EMBEDDED_LIBRARY if (len < 8) return; -#endif - double data; float8get(data,*pos); +#else + data= *(double*) *pos; +#endif param->set_double((double) data); *pos+= 8; } |