mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
d69250a969
Warning handling and initial prepared statement handling (last not complete yet) Changed a lot of functions that returned 0/1 to my_bool type. GRANT handling now uses read/write locks instead of mutex Change basic net functions to use THD instead of NET (needed for 4.1 protocol) Use my_sprintf instead of sprintf() + strlen() Added alloc_query() to be able to chare query initialization code with prepared statements. Cleanup handling of SHOW COUNT(*) WARNINGS and SELECT LAST_INSERT_ID() Note that the following test fails (will be fixed ASAP): sub_select, union, rpl_rotate_logs and rpl_mystery22
19 lines
367 B
Text
19 lines
367 B
Text
#
|
|
# This test should fail as MyISAM doesn't have rollback
|
|
#
|
|
|
|
drop table if exists t1;
|
|
|
|
create table t1 (n int not null primary key) type=myisam;
|
|
begin work;
|
|
insert into t1 values (4);
|
|
insert into t1 values (5);
|
|
rollback;
|
|
select @@warning_count;
|
|
select @@error_count;
|
|
show warnings;
|
|
show errors;
|
|
select * from t1;
|
|
select @@warning_count;
|
|
show warnings;
|
|
drop table t1;
|