1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Pull from mysql-next-mr-runtime.

This commit is contained in:
Alexander Nozdrin
2009-10-16 20:30:20 +04:00
27 changed files with 282 additions and 1113 deletions

View File

@ -499,3 +499,33 @@ DROP TABLE t1, t2;
--echo End of 5.0 tests.
--echo #
--echo # Bug#34898 "mysql_info() reports 0 warnings while
--echo # mysql_warning_count() reports 1"
--echo # Check that the number of warnings reported by
--echo # mysql_info() is correct.
--echo #
--disable_warnings
drop table if exists t1;
--enable_warnings
create table t1 (data varchar(4) not null);
set sql_mode='error_for_division_by_zero';
--echo #
--echo # Demonstrate that the number of warnings matches
--echo # the information in mysql_info().
--echo #
--enable_info
insert t1 (data) values ('letter'), (1/0);
update t1 set data='envelope' where 1/0 or 1;
insert t1 (data) values (default), (1/0), ('dead beef');
--disable_info
set sql_mode=default;
drop table t1;
--echo #
--echo # End of 5.4 tests
--echo #