Commit 0b1dda40 authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

manual types casting to satisfy gcc 3.2.1 compiler

parent 5fa6c458
...@@ -464,8 +464,8 @@ Item *create_func_cast(Item *a, Item_cast cast_type, CHARSET_INFO *cs) ...@@ -464,8 +464,8 @@ Item *create_func_cast(Item *a, Item_cast cast_type, CHARSET_INFO *cs)
switch (cast_type) { switch (cast_type) {
case ITEM_CAST_BINARY: res= new Item_func_binary(a); break; case ITEM_CAST_BINARY: res= new Item_func_binary(a); break;
case ITEM_CAST_CHAR: case ITEM_CAST_CHAR:
res= (cs == NULL) ? new Item_char_typecast(a) : res= (cs == NULL) ? (Item*) new Item_char_typecast(a) :
new Item_func_conv_charset(a,cs); (Item*) new Item_func_conv_charset(a,cs);
break; break;
case ITEM_CAST_SIGNED_INT: res= new Item_func_signed(a); break; case ITEM_CAST_SIGNED_INT: res= new Item_func_signed(a); break;
case ITEM_CAST_UNSIGNED_INT: res= new Item_func_unsigned(a); break; case ITEM_CAST_UNSIGNED_INT: res= new Item_func_unsigned(a); break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment