summaryrefslogtreecommitdiff
path: root/sql/item_buff.cc
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-02-15 16:45:00 +0200
committerunknown <monty@mysql.com>2005-02-15 16:45:00 +0200
commit67b16d202b6e6912d6018685a0f7b0bb55cfbbad (patch)
tree16b9cc851452c212c3d986a1f88c4ae9a2f5d862 /sql/item_buff.cc
parent40ffce74eb09dc1fd59d9d67fd44688be7f92fca (diff)
downloadmariadb-git-67b16d202b6e6912d6018685a0f7b0bb55cfbbad.tar.gz
Fixed failing test cases 'row.test' when running with --ps-protocol
Simple optimzations done while reviewing code client/mysqltest.c: Added options --enable-ps-warnings and --disable-ps-warnings (to fix failing test case) mysql-test/t/row.test: Disable warnings that comes from 'parse' parth sql/field.cc: Removed calls to is_null() in field functions. (Not needed as NULL handling is done on the level above fields) Indentation fixes Removed calls to alloca() as buffer needed was quite small. sql/field.h: Indentation changes and comment fixes sql/filesort.cc: Simple optimization during code review sql/item.cc: Indentation fixes Removed some unnecessary tests (added DBUG_ASSERTS() instead) sql/item_buff.cc: Indentation fixes sql/my_decimal.cc: Indentation fixes Simple optimization Fixed compiler warning sql/sql_update.cc: Removed unnessessary assignment
Diffstat (limited to 'sql/item_buff.cc')
-rw-r--r--sql/item_buff.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/item_buff.cc b/sql/item_buff.cc
index 7c77f7fa3bc..af17d377e31 100644
--- a/sql/item_buff.cc
+++ b/sql/item_buff.cc
@@ -28,8 +28,7 @@ Item_buff *new_Item_buff(Item *item)
if (item->type() == Item::FIELD_ITEM &&
!(((Item_field *) item)->field->flags & BLOB_FLAG))
return new Item_field_buff((Item_field *) item);
- switch (item->result_type())
- {
+ switch (item->result_type()) {
case STRING_RESULT:
return new Item_str_buff((Item_field *) item);
case INT_RESULT: