Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
ae911ef8
Commit
ae911ef8
authored
Feb 17, 2003
by
gluh@gluh.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix: for SHOW STATUS (when ssl is used)
Added ROW_RESULT to switchs(for documentation purposes)
parent
063668c0
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
3 deletions
+24
-3
sql/filesort.cc
sql/filesort.cc
+2
-0
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+1
-0
sql/item_func.cc
sql/item_func.cc
+9
-1
sql/item_sum.cc
sql/item_sum.cc
+4
-1
sql/log_event.cc
sql/log_event.cc
+4
-0
sql/sql_lex.cc
sql/sql_lex.cc
+1
-0
sql/sql_select.cc
sql/sql_select.cc
+2
-0
sql/sql_show.cc
sql/sql_show.cc
+1
-1
No files found.
sql/filesort.cc
View file @
ae911ef8
...
@@ -561,6 +561,7 @@ static void make_sortkey(register SORTPARAM *param,
...
@@ -561,6 +561,7 @@ static void make_sortkey(register SORTPARAM *param,
change_double_for_sort
(
value
,(
byte
*
)
to
);
change_double_for_sort
(
value
,(
byte
*
)
to
);
break
;
break
;
}
}
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
@@ -971,6 +972,7 @@ sortlength(SORT_FIELD *sortorder, uint s_length, bool *multi_byte_charset)
...
@@ -971,6 +972,7 @@ sortlength(SORT_FIELD *sortorder, uint s_length, bool *multi_byte_charset)
case
REAL_RESULT
:
case
REAL_RESULT
:
sortorder
->
length
=
sizeof
(
double
);
sortorder
->
length
=
sizeof
(
double
);
break
;
break
;
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
...
sql/item_cmpfunc.cc
View file @
ae911ef8
...
@@ -840,6 +840,7 @@ Item *Item_func_case::find_item(String *str)
...
@@ -840,6 +840,7 @@ Item *Item_func_case::find_item(String *str)
if
(
args
[
i
]
->
val
()
==
first_expr_real
&&
!
args
[
i
]
->
null_value
)
if
(
args
[
i
]
->
val
()
==
first_expr_real
&&
!
args
[
i
]
->
null_value
)
return
args
[
i
+
1
];
return
args
[
i
+
1
];
break
;
break
;
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
...
sql/item_func.cc
View file @
ae911ef8
...
@@ -251,6 +251,7 @@ Field *Item_func::tmp_table_field(TABLE *t_arg)
...
@@ -251,6 +251,7 @@ Field *Item_func::tmp_table_field(TABLE *t_arg)
else
else
res
=
new
Field_string
(
max_length
,
maybe_null
,
name
,
t_arg
,
charset
());
res
=
new
Field_string
(
max_length
,
maybe_null
,
name
,
t_arg
,
charset
());
break
;
break
;
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
@@ -910,6 +911,7 @@ String *Item_func_min_max::val_str(String *str)
...
@@ -910,6 +911,7 @@ String *Item_func_min_max::val_str(String *str)
}
}
return
res
;
return
res
;
}
}
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
@@ -1466,10 +1468,11 @@ bool udf_handler::get_arguments()
...
@@ -1466,10 +1468,11 @@ bool udf_handler::get_arguments()
to
+=
ALIGN_SIZE
(
sizeof
(
double
));
to
+=
ALIGN_SIZE
(
sizeof
(
double
));
}
}
break
;
break
;
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
;
break
;
}
}
}
}
return
0
;
return
0
;
...
@@ -1926,6 +1929,7 @@ longlong Item_func_benchmark::val_int()
...
@@ -1926,6 +1929,7 @@ longlong Item_func_benchmark::val_int()
case
STRING_RESULT
:
case
STRING_RESULT
:
(
void
)
args
[
0
]
->
val_str
(
&
tmp
);
(
void
)
args
[
0
]
->
val_str
(
&
tmp
);
break
;
break
;
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
@@ -2062,6 +2066,7 @@ Item_func_set_user_var::update()
...
@@ -2062,6 +2066,7 @@ Item_func_set_user_var::update()
(
void
)
val_str
(
&
tmp
);
(
void
)
val_str
(
&
tmp
);
break
;
break
;
}
}
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
@@ -2143,6 +2148,7 @@ Item_func_get_user_var::val_str(String *str)
...
@@ -2143,6 +2148,7 @@ Item_func_get_user_var::val_str(String *str)
return
NULL
;
return
NULL
;
}
}
break
;
break
;
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
@@ -2164,6 +2170,7 @@ double Item_func_get_user_var::val()
...
@@ -2164,6 +2170,7 @@ double Item_func_get_user_var::val()
return
(
double
)
*
(
longlong
*
)
entry
->
value
;
return
(
double
)
*
(
longlong
*
)
entry
->
value
;
case
STRING_RESULT
:
case
STRING_RESULT
:
return
atof
(
entry
->
value
);
// This is null terminated
return
atof
(
entry
->
value
);
// This is null terminated
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
@@ -2185,6 +2192,7 @@ longlong Item_func_get_user_var::val_int()
...
@@ -2185,6 +2192,7 @@ longlong Item_func_get_user_var::val_int()
return
*
(
longlong
*
)
entry
->
value
;
return
*
(
longlong
*
)
entry
->
value
;
case
STRING_RESULT
:
case
STRING_RESULT
:
return
strtoull
(
entry
->
value
,
NULL
,
10
);
// String is null terminated
return
strtoull
(
entry
->
value
,
NULL
,
10
);
// String is null terminated
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
...
sql/item_sum.cc
View file @
ae911ef8
...
@@ -387,6 +387,7 @@ double Item_sum_hybrid::val()
...
@@ -387,6 +387,7 @@ double Item_sum_hybrid::val()
return
(
double
)
sum_int
;
return
(
double
)
sum_int
;
case
REAL_RESULT
:
case
REAL_RESULT
:
return
sum
;
return
sum
;
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
@@ -422,6 +423,7 @@ Item_sum_hybrid::val_str(String *str)
...
@@ -422,6 +423,7 @@ Item_sum_hybrid::val_str(String *str)
else
else
str
->
set
((
longlong
)
sum_int
,
thd_charset
());
str
->
set
((
longlong
)
sum_int
,
thd_charset
());
break
;
break
;
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
@@ -467,6 +469,7 @@ bool Item_sum_min::add()
...
@@ -467,6 +469,7 @@ bool Item_sum_min::add()
}
}
}
}
break
;
break
;
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
@@ -513,11 +516,11 @@ bool Item_sum_max::add()
...
@@ -513,11 +516,11 @@ bool Item_sum_max::add()
}
}
}
}
break
;
break
;
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
break
;
break
;
}
}
return
0
;
return
0
;
}
}
...
...
sql/log_event.cc
View file @
ae911ef8
...
@@ -2004,6 +2004,7 @@ void User_var_log_event::pack_info(Protocol* protocol)
...
@@ -2004,6 +2004,7 @@ void User_var_log_event::pack_info(Protocol* protocol)
memcpy
(
buf
+
val_offset
+
1
,
val
,
val_len
);
memcpy
(
buf
+
val_offset
+
1
,
val
,
val_len
);
buf
[
val_offset
+
val_len
+
1
]
=
'\''
;
buf
[
val_offset
+
val_len
+
1
]
=
'\''
;
break
;
break
;
case
ROW_RESULT
:
default:
default:
DBUG_ASSERT
(
1
);
DBUG_ASSERT
(
1
);
return
;
return
;
...
@@ -2069,6 +2070,7 @@ int User_var_log_event::write_data(IO_CACHE* file)
...
@@ -2069,6 +2070,7 @@ int User_var_log_event::write_data(IO_CACHE* file)
case
STRING_RESULT
:
case
STRING_RESULT
:
pos
=
val
;
pos
=
val
;
break
;
break
;
case
ROW_RESULT
:
default:
default:
DBUG_ASSERT
(
1
);
DBUG_ASSERT
(
1
);
return
0
;
return
0
;
...
@@ -2121,6 +2123,7 @@ void User_var_log_event::print(FILE* file, bool short_form, char* last_db)
...
@@ -2121,6 +2123,7 @@ void User_var_log_event::print(FILE* file, bool short_form, char* last_db)
case
STRING_RESULT
:
case
STRING_RESULT
:
fprintf
(
file
,
":='%s';
\n
"
,
val
);
fprintf
(
file
,
":='%s';
\n
"
,
val
);
break
;
break
;
case
ROW_RESULT
:
default:
default:
DBUG_ASSERT
(
1
);
DBUG_ASSERT
(
1
);
return
;
return
;
...
@@ -2165,6 +2168,7 @@ int User_var_log_event::exec_event(struct st_relay_log_info* rli)
...
@@ -2165,6 +2168,7 @@ int User_var_log_event::exec_event(struct st_relay_log_info* rli)
case
STRING_RESULT
:
case
STRING_RESULT
:
it
=
new
Item_string
(
val
,
val_len
,
charset
);
it
=
new
Item_string
(
val
,
val_len
,
charset
);
break
;
break
;
case
ROW_RESULT
:
default:
default:
DBUG_ASSERT
(
1
);
DBUG_ASSERT
(
1
);
return
0
;
return
0
;
...
...
sql/sql_lex.cc
View file @
ae911ef8
...
@@ -207,6 +207,7 @@ static int find_keyword(LEX *lex, uint len, bool function)
...
@@ -207,6 +207,7 @@ static int find_keyword(LEX *lex, uint len, bool function)
return
(
udf
->
type
==
UDFTYPE_FUNCTION
)
?
UDF_FLOAT_FUNC
:
UDA_FLOAT_SUM
;
return
(
udf
->
type
==
UDFTYPE_FUNCTION
)
?
UDF_FLOAT_FUNC
:
UDA_FLOAT_SUM
;
case
INT_RESULT
:
case
INT_RESULT
:
return
(
udf
->
type
==
UDFTYPE_FUNCTION
)
?
UDF_INT_FUNC
:
UDA_INT_SUM
;
return
(
udf
->
type
==
UDFTYPE_FUNCTION
)
?
UDF_INT_FUNC
:
UDA_INT_SUM
;
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
...
sql/sql_select.cc
View file @
ae911ef8
...
@@ -4007,6 +4007,7 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
...
@@ -4007,6 +4007,7 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
item
->
name
,
table
,
item
->
charset
());
item
->
name
,
table
,
item
->
charset
());
return
new
Field_string
(
item_sum
->
max_length
,
maybe_null
,
return
new
Field_string
(
item_sum
->
max_length
,
maybe_null
,
item
->
name
,
table
,
item
->
charset
());
item
->
name
,
table
,
item
->
charset
());
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
@@ -4067,6 +4068,7 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
...
@@ -4067,6 +4068,7 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
new_field
=
new
Field_string
(
item
->
max_length
,
maybe_null
,
new_field
=
new
Field_string
(
item
->
max_length
,
maybe_null
,
item
->
name
,
table
,
item
->
str_value
.
charset
());
item
->
name
,
table
,
item
->
str_value
.
charset
());
break
;
break
;
case
ROW_RESULT
:
default:
default:
// This case should never be choosen
// This case should never be choosen
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
0
);
...
...
sql/sql_show.cc
View file @
ae911ef8
...
@@ -1664,7 +1664,7 @@ int mysqld_show(THD *thd, const char *wild, show_var_st *variables,
...
@@ -1664,7 +1664,7 @@ int mysqld_show(THD *thd, const char *wild, show_var_st *variables,
pos
=
"Unknown"
;
pos
=
"Unknown"
;
break
;
break
;
}
}
pos
=
strend
(
pos
);
end
=
strend
(
pos
);
break
;
break
;
/* First group - functions relying on SSL */
/* First group - functions relying on SSL */
case
SHOW_SSL_GET_VERSION
:
case
SHOW_SSL_GET_VERSION
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment