mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
Merge work:/home/bk/mysql-4.1
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.1
This commit is contained in:
commit
17142f39d3
3 changed files with 9 additions and 3 deletions
|
@ -329,7 +329,11 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
|
|||
{
|
||||
*pos=ft_keysegs[j];
|
||||
pos[0].language= pos[-1].language;
|
||||
pos[0].charset= pos[-1].charset;
|
||||
if (!(pos[0].charset= pos[-1].charset))
|
||||
{
|
||||
my_errno=HA_ERR_CRASHED;
|
||||
goto err;
|
||||
}
|
||||
pos++;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ create table t1 (i int, j int);
|
|||
insert into t1 values (1,2), (3,4), (5,6), (7,8);
|
||||
select count(*) from t1 procedure analyse();
|
||||
Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
|
||||
-6510615555426900571 -6510615555426900571 -6510615555426900571 -6510615555426900571
|
||||
count(*) 4 4 1 1 0 0 4.0000 0.0000 ENUM('4') NOT NULL
|
||||
select * from t1 procedure analyse();
|
||||
Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
|
||||
t1.i 1 7 1 1 0 0 4.0000 2.2361 ENUM('1','3','5','7') NOT NULL
|
||||
|
|
|
@ -732,7 +732,9 @@ JOIN::exec()
|
|||
result->send_fields(fields_list,1);
|
||||
if (!having || having->val_int())
|
||||
{
|
||||
if (do_send_rows && result->send_data(fields_list))
|
||||
if (do_send_rows && (procedure ? (procedure->send_row(fields_list) ||
|
||||
procedure->end_of_records())
|
||||
: result->send_data(fields_list)))
|
||||
error= 1;
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue