1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Two small fixes

This commit is contained in:
Sinisa@sinisa.nasamreza.org
2003-08-30 18:21:24 +03:00
parent 8f39fb9ef8
commit b0a8931986
2 changed files with 2 additions and 10 deletions

View File

@@ -1,13 +1,5 @@
drop table if exists t1,t2;
create table t1 (a tinyint not null auto_increment, b blob not null, primary key (a)) type=isam;
Warnings:
Warning 1263 Data truncated for column 'b' at row 1
Warnings:
Warning 1263 Data truncated for column 'b' at row 1
Warnings:
Warning 1263 Data truncated for column 'b' at row 1
Warnings:
Warning 1263 Data truncated for column 'b' at row 1
delete from t1 where (a & 1);
select sum(length(b)) from t1;
sum(length(b))

View File

@@ -326,8 +326,8 @@ int st_select_lex_unit::exec()
We get this from the difference of between total number of possible
rows and actual rows added to the temporary table.
*/
add_rows+= (ulonglong) (thd->limit_found_rows - (table->file->records -
records_at_start));
add_rows+= (ha_rows) (thd->limit_found_rows - (ulonglong)
((table->file->records - records_at_start)));
}
}
}