diff options
author | unknown <bell@sanja.is.com.ua> | 2004-04-08 11:07:37 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-04-08 11:07:37 +0300 |
commit | d57ffe071a7ba174c076052fe89279a30c067bab (patch) | |
tree | 8d2ce75c1d7d8c83d1e60078644e059e1ec80acc /sql/item.cc | |
parent | d5135aff3ad8af11279927185cecda65a6291dd1 (diff) | |
download | mariadb-git-d57ffe071a7ba174c076052fe89279a30c067bab.tar.gz |
field->store resuts passing is fixed for REAL and INT for Item_param (BUG3223)
sql/item.cc:
field->store resuts passing is fixed for REAL and INT
tests/client_test.c:
removed debugging commnet
fixed type casting
test for BUG#3223
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item.cc b/sql/item.cc index 65e1e67c7c6..adaae50f0d2 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -689,12 +689,12 @@ int Item_param::save_in_field(Field *field, bool no_conversions) if (item_result_type == INT_RESULT) { longlong nr=val_int(); - return (field->store(nr)) ? -1 : 0; + return field->store(nr); } if (item_result_type == REAL_RESULT) { double nr=val(); - return (field->store(nr)) ? -1 : 0; + return field->store(nr); } if (item_is_time) { |