diff options
author | unknown <holyfoot@deer.(none)> | 2006-03-01 15:50:15 +0400 |
---|---|---|
committer | unknown <holyfoot@deer.(none)> | 2006-03-01 15:50:15 +0400 |
commit | b17bb278f760bdd646192eb6bff51ea5ad5c3975 (patch) | |
tree | ea3d6bfe83560fbe84148a76e7d545dbe09c3d0c /sql/item_cmpfunc.cc | |
parent | 8a061aa6e3bed150e1e8c45e10369cbf79700911 (diff) | |
download | mariadb-git-b17bb278f760bdd646192eb6bff51ea5ad5c3975.tar.gz |
bug #9088 (bigint WHERE fails)
mysql-test/r/bigint.result:
test result
mysql-test/t/bigint.test:
testcase
sql/item.h:
unsigned_arg is a separate parameter now
sql/item_cmpfunc.cc:
we can get unsigned field from the signed Item - from string
like '1234'
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r-- | sql/item_cmpfunc.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index d812ce913c5..7ba8a536ac7 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -216,7 +216,8 @@ static bool convert_constant_item(THD *thd, Field *field, Item **item) field->table->in_use->variables.sql_mode|= MODE_INVALID_DATES; if (!(*item)->save_in_field(field, 1) && !((*item)->null_value)) { - Item *tmp=new Item_int_with_ref(field->val_int(), *item); + Item *tmp=new Item_int_with_ref(field->val_int(), *item, + test(field->flags & UNSIGNED_FLAG)); field->table->in_use->variables.sql_mode= orig_sql_mode; if (tmp) thd->change_item_tree(item, tmp); |