summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <tsmith@ramayana.hindu.god>2007-12-06 16:11:26 -0700
committerunknown <tsmith@ramayana.hindu.god>2007-12-06 16:11:26 -0700
commit6c142012ddb3aaddc508f1bd93f0505b3f4cb406 (patch)
treecbbed519c8ffe90cd36e8ae272ff96f201bb8ae2 /sql
parenta24c025e27097af5a253458c6b3bdba3c47a0585 (diff)
downloadmariadb-git-6c142012ddb3aaddc508f1bd93f0505b3f4cb406.tar.gz
Fix compiler warning about wrong integer size (probably harmless)
sql/sql_select.cc: Fix compiler warning (probably harmless, wrong integer size)
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_select.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 2ca4b73a115..5699f1d1868 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -8991,7 +8991,7 @@ static Field *create_tmp_field_from_item(THD *thd, Item *item, TABLE *table,
{
uint8 dec= item->decimals;
uint8 intg= ((Item_decimal *) item)->decimal_precision() - dec;
- uint8 len= item->max_length;
+ uint32 len= item->max_length;
/*
Trying to put too many digits overall in a DECIMAL(prec,dec)