summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <davi@mysql.com/endora.local>2008-02-08 10:47:25 -0200
committerunknown <davi@mysql.com/endora.local>2008-02-08 10:47:25 -0200
commit0c551b72ded5140e00c0dbe7eadab172f298742f (patch)
tree437115416f69d37ec8350955750a1cdb5fe5b5b0 /sql
parent57c180c1037de9a96488228aa99382aa7a1927c1 (diff)
downloadmariadb-git-0c551b72ded5140e00c0dbe7eadab172f298742f.tar.gz
Manual merge of Bug 33798
mysql-test/extra/binlog_tests/binlog.test: Manual merge of binlog test case for Bug#33798 mysql-test/suite/binlog/r/binlog_row_binlog.result: Add test case result for Bug#33798 mysql-test/suite/binlog/r/binlog_stm_binlog.result: Add test case result for Bug#33798 sql/item.cc: Use new method which accepts a unsigned flag.
Diffstat (limited to 'sql')
-rw-r--r--sql/item.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 390e99fbde5..ab9243fcaf5 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -2926,10 +2926,7 @@ const String *Item_param::query_val_str(String* str) const
{
switch (state) {
case INT_VALUE:
- if (unsigned_flag)
- str->set((ulonglong) value.integer, &my_charset_bin);
- else
- str->set(value.integer, &my_charset_bin);
+ str->set_int(value.integer, unsigned_flag, &my_charset_bin);
break;
case REAL_VALUE:
str->set_real(value.real, NOT_FIXED_DEC, &my_charset_bin);